Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2005-01-21 19:39:52 +0000
committerDarin Wright2005-01-21 19:39:52 +0000
commit267775a5dea945c5b597ef2f151b433140a44dbd (patch)
treebdd91e8d3324953bd73bfc02777c3b4a117ab994 /org.eclipse.debug.ui
parent94ed56539a97ccb659f2d74f572be612b5edc9b8 (diff)
downloadeclipse.platform.debug-267775a5dea945c5b597ef2f151b433140a44dbd.tar.gz
eclipse.platform.debug-267775a5dea945c5b597ef2f151b433140a44dbd.tar.xz
eclipse.platform.debug-267775a5dea945c5b597ef2f151b433140a44dbd.zip
Bug 82868 - [Breakpoint Groups] Custom working set dialog
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/plugin.properties4
-rw-r--r--org.eclipse.debug.ui/plugin.xml7
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/WorkingSetsAction.java38
3 files changed, 48 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/plugin.properties b/org.eclipse.debug.ui/plugin.properties
index baad85b68..03cd7feaf 100644
--- a/org.eclipse.debug.ui/plugin.properties
+++ b/org.eclipse.debug.ui/plugin.properties
@@ -59,7 +59,7 @@ EnableBreakpointsAction.label=&Enable
ExpandAll.label=Expand All
ExpandAll.tooltip=Expand All
ExpressionView.name=Expressions
-GroupBy.label=&Show
+GroupBy.label=S&how
GroupBy.tooltip=Show
LinkWithDebugView.label=Link with Debug View
LinkWithDebugView.tooltip=Link with Debug View
@@ -302,6 +302,8 @@ setDefaultGroup.label=&Select Default Working Set...
setDefaultGroup.tooltip=Setlect Default Working Set
clearDefaultGroup.label=&Deselect Default Working Set
clearDefaultGroup.tooltip=Deselect Default Working Set
+workingSets.label=&Working Sets...
+workingSets.tooltip=Manage Working Sets
editGroup.label=&Edit Working Set...
ToggleDefault.label=Defaul&t Working Set
diff --git a/org.eclipse.debug.ui/plugin.xml b/org.eclipse.debug.ui/plugin.xml
index 69c3fb0aa..c12c749ad 100644
--- a/org.eclipse.debug.ui/plugin.xml
+++ b/org.eclipse.debug.ui/plugin.xml
@@ -723,6 +723,13 @@
tooltip="%ExpandAll.tooltip">
</action>
<action
+ label="%workingSets.label"
+ tooltip="%workingSets.tooltip"
+ class="org.eclipse.debug.internal.ui.actions.breakpointGroups.WorkingSetsAction"
+ style="push"
+ menubarPath="defaultBreakpointGroup"
+ id="org.eclipse.debug.ui.breakpointsView.toolbar.workingSets"/>
+ <action
id="org.eclipse.debug.ui.breakpointsView.toolbar.clearDefaultBreakpointGroup"
menubarPath="defaultBreakpointGroup"
class="org.eclipse.debug.internal.ui.actions.breakpointGroups.ClearDefaultBreakpointGroupAction"
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/WorkingSetsAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/WorkingSetsAction.java
new file mode 100644
index 000000000..8f0fa8619
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/WorkingSetsAction.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial implementation
+ *******************************************************************************/
+package org.eclipse.debug.internal.ui.actions.breakpointGroups;
+
+import org.eclipse.debug.internal.ui.DebugUIPlugin;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.dialogs.IWorkingSetSelectionDialog;
+
+/**
+ * Allows the user to manage working sets.
+ */
+public class WorkingSetsAction extends AbstractBreakpointsViewAction {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ IWorkingSetSelectionDialog selectionDialog = PlatformUI.getWorkbench().getWorkingSetManager().createWorkingSetSelectionDialog(DebugUIPlugin.getShell(), false);
+ selectionDialog.open();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ }
+
+}

Back to the top