1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

Change menu group marker and code cleanup

This commit is contained in:
Anton Leherbauer 2007-05-23 11:55:13 +00:00
parent 47da7cb369
commit bee53bc27b
2 changed files with 2 additions and 33 deletions

View file

@ -1632,7 +1632,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
getSourceViewer().revealRange(start, length); getSourceViewer().revealRange(start, length);
getSourceViewer().setSelectedRange(start, length); getSourceViewer().setSelectedRange(start, length);
} }
updateStatusField(CTextEditorActionConstants.STATUS_CURSOR_POS); updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION);
} }
return; return;
} catch (IllegalArgumentException x) { } catch (IllegalArgumentException x) {
@ -1913,7 +1913,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
menu.add(new GroupMarker(ICommonMenuConstants.GROUP_TOP)); menu.add(new GroupMarker(ICommonMenuConstants.GROUP_TOP));
// separator for debug related actions (similar to ruler context menu) // separator for debug related actions (similar to ruler context menu)
menu.add(new Separator(IContextMenuConstants.GROUP_DEBUG)); menu.add(new Separator(IContextMenuConstants.GROUP_DEBUG));
menu.add(new Separator(IContextMenuConstants.GROUP_DEBUG+".end")); //$NON-NLS-1$ menu.add(new GroupMarker(IContextMenuConstants.GROUP_DEBUG+".end")); //$NON-NLS-1$
super.editorContextMenuAboutToShow(menu); super.editorContextMenuAboutToShow(menu);

View file

@ -1,31 +0,0 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* QNX Software Systems - Initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.internal.ui.editor;
import org.eclipse.ui.IWorkbenchActionConstants;
public interface CTextEditorActionConstants extends IWorkbenchActionConstants {
/**
* Status category "input position".
*/
static final String STATUS_CURSOR_POS= "CursorPosition"; //$NON-NLS-1$
/**
* Status category "input mode".
*/
static final String STATUS_INPUT_MODE= "InputMode"; //$NON-NLS-1$
}