Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2001-09-20 14:29:08 +0000
committerDarin Wright2001-09-20 14:29:08 +0000
commit2790c0a41d4d5102db9eb9714960039d20f85bc1 (patch)
treef1ebc8f53ca71ebae3d78dfef127fbd792825cd1 /org.eclipse.debug.ui
parent9fdad95e284a62cd587d320321008683407f5ec1 (diff)
downloadeclipse.platform.debug-2790c0a41d4d5102db9eb9714960039d20f85bc1.tar.gz
eclipse.platform.debug-2790c0a41d4d5102db9eb9714960039d20f85bc1.tar.xz
eclipse.platform.debug-2790c0a41d4d5102db9eb9714960039d20f85bc1.zip
1GKD6NB: ITPDUI:ALL - ClassCastException - double click on method entry BP
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java38
1 files changed, 1 insertions, 37 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 991527358..c38e785e9 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
@@ -119,43 +119,7 @@ public class BreakpointsView extends AbstractDebugView implements IDoubleClickLi
* This will only occur for selections containing a single existing breakpoint.
*/
public void openMarkerForCurrentSelection() {
- IStructuredSelection selection= (IStructuredSelection) fViewer.getSelection();
- if (selection.size() != 1) {
- //Single selection only
- return;
- }
- //Get the selected marker
- IMarker breakpoint= (IMarker) selection.getFirstElement();
- if (!breakpoint.exists()) {
- return;
- }
- IWorkbenchWindow dwindow= getSite().getWorkbenchWindow();
- IWorkbenchPage page= dwindow.getActivePage();
- if (page == null) {
- return;
- }
-
- openEditorForBreakpoint(breakpoint, page);
- }
-
- /**
- * Open an editor for the breakpoint.
- */
- protected void openEditorForBreakpoint(IMarker marker, IWorkbenchPage page) {
- IBreakpoint breakpoint= getBreakpointManager().getBreakpoint(marker);
- String id= breakpoint.getModelIdentifier();
- IDebugModelPresentation presentation= getPresentation(id);
- IEditorInput input= presentation.getEditorInput(marker);
- String editorId= presentation.getEditorId(input, marker);
- if (input != null) {
- try {
- IEditorPart editor;
- editor= page.openEditor(input, editorId);
- editor.gotoMarker(marker);
- } catch (PartInitException e) {
- DebugUIUtils.logError(e);
- }
- }
+ fOpenMarkerAction.run();
}
/**

Back to the top