From bee53bc27ba54a2682a4911df82e3c5bcc413813 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 23 May 2007 11:55:13 +0000 Subject: [PATCH] Change menu group marker and code cleanup --- .../cdt/internal/ui/editor/CEditor.java | 4 +-- .../ui/editor/CTextEditorActionConstants.java | 31 ------------------- 2 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CTextEditorActionConstants.java diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java index de5775cc64e..883cc0d2364 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java @@ -1632,7 +1632,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC getSourceViewer().revealRange(start, length); getSourceViewer().setSelectedRange(start, length); } - updateStatusField(CTextEditorActionConstants.STATUS_CURSOR_POS); + updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION); } return; } catch (IllegalArgumentException x) { @@ -1913,7 +1913,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC menu.add(new GroupMarker(ICommonMenuConstants.GROUP_TOP)); // separator for debug related actions (similar to ruler context menu) 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); diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CTextEditorActionConstants.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CTextEditorActionConstants.java deleted file mode 100644 index b65e77ac9a1..00000000000 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CTextEditorActionConstants.java +++ /dev/null @@ -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$ - -} - -