Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2002-09-12 14:38:33 +0000
committerDani Megert2002-09-12 14:38:33 +0000
commit08ce9a9148ac49be06f37fe2bec345674a7b6fe6 (patch)
treec9e059aeb2abcd37147278efe14d0f09b17d27c3
parent4dc7613af5c182c7b47f5f16355e34c60efc578c (diff)
downloadeclipse.platform.text-08ce9a9148ac49be06f37fe2bec345674a7b6fe6.tar.gz
eclipse.platform.text-08ce9a9148ac49be06f37fe2bec345674a7b6fe6.tar.xz
eclipse.platform.text-08ce9a9148ac49be06f37fe2bec345674a7b6fe6.zip
Restructuring of context menu
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java10
-rw-r--r--org.eclipse.search/search/org/eclipse/search/ui/IContextMenuConstants.java5
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 38d70b99f..f24a3bdd7 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 e5932d173..6e2e32772 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 <code>"group.properties"</code>).
*/
public static final String GROUP_PROPERTIES= "group.properties"; //$NON-NLS-1$
+
+ /**
+ * Pop-up menu: name of group for remove match actions (value <code>"group.removeMatches"</code>).
+ */
+ public static final String GROUP_REMOVE_MATCHES= "group.removeMatches";
} \ No newline at end of file

Back to the top