Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-07-16 12:00:01 +0000
committerDarin Swanson2001-07-16 12:00:01 +0000
commitd83b8ed9434c44b796b46bbc2d664b14da66d15f (patch)
treed66896169238e6e5699559b942c0b873696af864
parentec68314a468770bfedb587db231137297d5ef8c4 (diff)
downloadeclipse.platform.debug-d83b8ed9434c44b796b46bbc2d664b14da66d15f.tar.gz
eclipse.platform.debug-d83b8ed9434c44b796b46bbc2d664b14da66d15f.tar.xz
eclipse.platform.debug-d83b8ed9434c44b796b46bbc2d664b14da66d15f.zip
1G1C1BX
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java40
1 files changed, 39 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java
index ddb930630..b1c64a9dd 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java
@@ -5,7 +5,24 @@ package org.eclipse.debug.internal.ui;
* All Rights Reserved.
*/
-import org.eclipse.core.resources.IMarker; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.IBreakpointManager; import org.eclipse.debug.ui.IDebugModelPresentation; import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.jface.action.*; import org.eclipse.jface.viewers.*; import org.eclipse.swt.SWT; import org.eclipse.swt.events.KeyAdapter; import org.eclipse.swt.events.KeyEvent; import org.eclipse.swt.widgets.Composite; import org.eclipse.ui.*; import org.eclipse.ui.help.ViewContextComputer; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.ui.model.WorkbenchViewerSorter;
+import java.util.*;
+
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.debug.core.DebugPlugin;
+import org.eclipse.debug.core.IBreakpointManager;
+import org.eclipse.debug.ui.IDebugModelPresentation;
+import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.jface.action.*;
+import org.eclipse.jface.viewers.*;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.KeyAdapter;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.*;
+import org.eclipse.ui.help.ViewContextComputer;
+import org.eclipse.ui.help.WorkbenchHelp;
+import org.eclipse.ui.model.WorkbenchViewerSorter;
+import org.eclipse.ui.texteditor.IUpdate;
/**
* This view shows the breakpoints registered with the breakpoint manager
@@ -22,6 +39,7 @@ public class BreakpointsView extends AbstractDebugView implements IDoubleClickLi
private RemoveAllBreakpointsAction fRemoveAllBreakpointsAction;
private EnableDisableBreakpointAction fEnableDisableBreakpointAction;
private ShowQualifiedAction fShowQualifiedNamesAction;
+ private List fContributedActions = new ArrayList(0);
/**
* @see IWorkbenchPart
@@ -151,6 +169,7 @@ public class BreakpointsView extends AbstractDebugView implements IDoubleClickLi
* Adds items to the context menu
*/
protected void fillContextMenu(IMenuManager menu) {
+ updateContributedActions();
menu.add(new Separator(IDebugUIConstants.EMPTY_NAVIGATION_GROUP));
menu.add(new Separator(IDebugUIConstants.NAVIGATION_GROUP));
menu.add(fOpenMarkerAction);
@@ -166,6 +185,25 @@ public class BreakpointsView extends AbstractDebugView implements IDoubleClickLi
}
/**
+ * Add an action to the contributed actions collection
+ */
+ public void addContributedAction(IUpdate update) {
+ fContributedActions.add(update);
+ }
+
+ /**
+ * Update the contributed actions that the BreakpointsView knows about.
+ * This gives contributed actions a chance to refresh their state.
+ */
+ protected void updateContributedActions() {
+ Iterator actions= fContributedActions.iterator();
+ while (actions.hasNext()) {
+ IUpdate update= (IUpdate)actions.next();
+ update.update();
+ }
+ }
+
+ /**
* @see IDoubleClickListener
*/
public void doubleClick(DoubleClickEvent event) {

Back to the top