Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/RemoveFromWorkingSetAction.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/RemoveFromWorkingSetAction.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/RemoveFromWorkingSetAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/RemoveFromWorkingSetAction.java
index d47318f68..6a3bfa55b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/RemoveFromWorkingSetAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/RemoveFromWorkingSetAction.java
@@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * IBM Corporation - initial API and implementation
+ * IBM Corporation - initial API and implementation
* Freescale Semiconductor - bug 287863
* Patrick Chuong (Texas Instruments) - Improve usability of the breakpoint view (Bug 238956)
*******************************************************************************/
@@ -28,19 +28,19 @@ import org.eclipse.jface.viewers.TreePath;
* Removes a breakpoint from a breakpoint working set.
*/
public class RemoveFromWorkingSetAction extends BreakpointSelectionAction {
-
+
private BreakpointSetElement[] fBreakpoints;
/**
* Constructs action to remove breakpoints from a category.
- *
+ *
* @param view
*/
public RemoveFromWorkingSetAction(BreakpointsView view) {
- super(BreakpointGroupMessages.RemoveFromWorkingSetAction_0, view);
+ super(BreakpointGroupMessages.RemoveFromWorkingSetAction_0, view);
}
-
+
/* (non-Javadoc)
* @see org.eclipse.jface.action.IAction#run()
*/
@@ -52,19 +52,19 @@ public class RemoveFromWorkingSetAction extends BreakpointSelectionAction {
}
}
}
-
+
protected static class BreakpointSetElement {
- BreakpointSetElement(IBreakpoint b, IBreakpointContainer c) { breakpoint = b; container = c; }
+ BreakpointSetElement(IBreakpoint b, IBreakpointContainer c) { breakpoint = b; container = c; }
IBreakpoint breakpoint;
IBreakpointContainer container;
}
-
+
/**
* Returns a array of breakpoint/container pairs for the selection
- *
+ *
* All the returned elements contain a breakpoint and a working set container the breakpoint is contained and the breakpoint
* can be removed from.
- *
+ *
* @param selection
* @return
*/
@@ -75,19 +75,19 @@ public class RemoveFromWorkingSetAction extends BreakpointSelectionAction {
TreePath[] paths = tSel.getPaths();
for (int i = 0; i < paths.length; i++) {
- TreePath path = paths[i];
-
+ TreePath path = paths[i];
+
// We can remove Breakpoints from their working set if any of their parents is a non "Other" breakpoint working set
- IBreakpoint breakpoint = (IBreakpoint)DebugPlugin.getAdapter(path.getLastSegment(), IBreakpoint.class);
+ IBreakpoint breakpoint = (IBreakpoint)DebugPlugin.getAdapter(path.getLastSegment(), IBreakpoint.class);
if (breakpoint != null) {
TreePath parents = path.getParentPath();
-
+
for (int j = 0; j < parents.getSegmentCount(); j++) {
Object parent = parents.getSegment(j);
-
+
if (parent instanceof IBreakpointContainer) {
IBreakpointContainer container = (IBreakpointContainer)parent;
-
+
// Test if this is a working set container.
if (container.getCategory() instanceof WorkingSetCategory) {
// Test if this container allows to remove this breakpoint.
@@ -102,7 +102,7 @@ public class RemoveFromWorkingSetAction extends BreakpointSelectionAction {
}
return res.toArray(new BreakpointSetElement[res.size()]);
}
-
+
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#isEnabled()
*/
@@ -113,7 +113,7 @@ public class RemoveFromWorkingSetAction extends BreakpointSelectionAction {
}
return false;
}
-
+
/* (non-Javadoc)
* @see org.eclipse.ui.actions.BaseSelectionListenerAction#updateSelection(org.eclipse.jface.viewers.IStructuredSelection)
*/

Back to the top