From 08ce9a9148ac49be06f37fe2bec345674a7b6fe6 Mon Sep 17 00:00:00 2001 From: Dani Megert Date: Thu, 12 Sep 2002 14:38:33 +0000 Subject: Restructuring of context menu --- .../org/eclipse/search/internal/ui/SearchResultViewer.java | 10 +++++----- .../search/org/eclipse/search/ui/IContextMenuConstants.java | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java index 38d70b99f4a..f24a3bdd7fc 100644 --- a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java +++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java @@ -298,19 +298,19 @@ public class SearchResultViewer extends TableViewer { fContextMenuContributor.fill(menu, this); if (!selection.isEmpty()) { - menu.appendToGroup(IContextMenuConstants.GROUP_ADDITIONS, fCopyToClipboardAction); + menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, fCopyToClipboardAction); menu.appendToGroup(IContextMenuConstants.GROUP_GOTO, fGotoMarkerActionProxy); if (enableRemoveMatchMenuItem()) - menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, new RemoveMatchAction(this)); - menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, new RemoveResultAction(this, true)); + menu.appendToGroup(IContextMenuConstants.GROUP_REMOVE_MATCHES, new RemoveMatchAction(this)); + menu.appendToGroup(IContextMenuConstants.GROUP_REMOVE_MATCHES, new RemoveResultAction(this, true)); if (isPotentialMatchSelected()) - menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, new RemovePotentialMatchesAction(fOuterPart.getViewSite())); + menu.appendToGroup(IContextMenuConstants.GROUP_REMOVE_MATCHES, new RemovePotentialMatchesAction(fOuterPart.getViewSite())); } // If we have elements if (getItemCount() > 0) - menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, new RemoveAllResultsAction()); + menu.appendToGroup(IContextMenuConstants.GROUP_REMOVE_MATCHES, new RemoveAllResultsAction()); menu.appendToGroup(IContextMenuConstants.GROUP_VIEWER_SETUP, fSearchAgainAction); if (!selection.isEmpty()) diff --git a/org.eclipse.search/search/org/eclipse/search/ui/IContextMenuConstants.java b/org.eclipse.search/search/org/eclipse/search/ui/IContextMenuConstants.java index e5932d17387..6e2e32772de 100644 --- a/org.eclipse.search/search/org/eclipse/search/ui/IContextMenuConstants.java +++ b/org.eclipse.search/search/org/eclipse/search/ui/IContextMenuConstants.java @@ -99,4 +99,9 @@ public interface IContextMenuConstants { * Pop-up menu: name of group for properties actions (value "group.properties"). */ public static final String GROUP_PROPERTIES= "group.properties"; //$NON-NLS-1$ + + /** + * Pop-up menu: name of group for remove match actions (value "group.removeMatches"). + */ + public static final String GROUP_REMOVE_MATCHES= "group.removeMatches"; } \ No newline at end of file -- cgit v1.2.3