Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Chuong2011-02-07 14:48:39 -0500
committerPatrick Chuong2011-02-07 14:48:39 -0500
commit2f04b81343a5bb24327e06b7ac4b84e4c9b0d5b4 (patch)
treed7c7151a210a1908d217ade4c1863471b2928db7 /debug/org.eclipse.cdt.debug.ui
parent3806bba6bc0f4e165bd5e132ce2407995b1ce400 (diff)
downloadorg.eclipse.cdt-2f04b81343a5bb24327e06b7ac4b84e4c9b0d5b4.tar.gz
org.eclipse.cdt-2f04b81343a5bb24327e06b7ac4b84e4c9b0d5b4.tar.xz
org.eclipse.cdt-2f04b81343a5bb24327e06b7ac4b84e4c9b0d5b4.zip
Bug 312121 - [breakpoints] Show fullpath not working in breakpoints view for other breakpoint type
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java
index 642ad191b6..5f8a8d328e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java
@@ -16,8 +16,11 @@ import org.eclipse.cdt.debug.internal.core.ICDebugInternalConstants;
import org.eclipse.cdt.debug.internal.ui.CDebugModelPresentation;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.debug.core.DebugPlugin;
+import org.eclipse.debug.core.IBreakpointManager;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchManager;
+import org.eclipse.debug.core.model.IBreakpoint;
+import org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsView;
import org.eclipse.debug.internal.ui.views.launch.LaunchView;
import org.eclipse.debug.ui.IDebugModelPresentation;
import org.eclipse.debug.ui.IDebugView;
@@ -100,6 +103,21 @@ public class ShowFullPathsAction extends ViewFilterAction {
}
}
}
+
+ // Breakpoints view
+ else if (view instanceof BreakpointsView) {
+ IBreakpointManager bkptmgr = DebugPlugin.getDefault().getBreakpointManager();
+ IBreakpoint[] bkpts = bkptmgr.getBreakpoints();
+ for (IBreakpoint bkpt : bkpts) {
+ try {
+ Object attr = bkpt.getMarker().getAttribute(ICDebugInternalConstants.ATTR_CAPABLE_OF_SHOW_FULL_PATHS);
+ if (attr != null) {
+ setEnabled(true);
+ return;
+ }
+ } catch (Exception e) {/* ignore */}
+ }
+ }
super.selectionChanged(action, selection);
}
}

Back to the top