Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2010-11-02 15:02:39 +0000
committerDarin Wright2010-11-02 15:02:39 +0000
commit7eb81bde425bd9e41e81f6c7ba4817958383f7c0 (patch)
tree38f3dd547145b9653f2413100ec02324106086ce
parent3555284de5c0f7fb279b506a323f78e8cb6225fe (diff)
downloadeclipse.platform.debug-7eb81bde425bd9e41e81f6c7ba4817958383f7c0.tar.gz
eclipse.platform.debug-7eb81bde425bd9e41e81f6c7ba4817958383f7c0.tar.xz
eclipse.platform.debug-7eb81bde425bd9e41e81f6c7ba4817958383f7c0.zip
Bug 329246 - OpenBreakpointMarkerAction class gets the Editor ID and then doesn't consider it when opening the editor
Bug 329253 - OpenBreakpointMarkerAction calls "internal" setFocus() method on IWorkbenchParts
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/OpenBreakpointMarkerAction.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/OpenBreakpointMarkerAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/OpenBreakpointMarkerAction.java
index 50cccc6d7..32f01bf9f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/OpenBreakpointMarkerAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/OpenBreakpointMarkerAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -69,14 +69,13 @@ public class OpenBreakpointMarkerAction extends SelectionProviderAction {
String editorId = fgPresentation.getEditorId(input, breakpoint);
if (editorId != null) {
try {
- part= page.openEditor(input, editorId);
+ part= page.openEditor(input, editorId, true, IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID);
} catch (PartInitException e) {
DebugUIPlugin.errorDialog(dwindow.getShell(), ActionMessages.OpenBreakpointMarkerAction_Go_to_Breakpoint_1, ActionMessages.OpenBreakpointMarkerAction_Exceptions_occurred_attempting_to_open_the_editor_for_the_breakpoint_resource_2, e); //
}
}
}
if (part != null) {
- part.setFocus();
IDE.gotoMarker(part, breakpoint.getMarker());
}
}

Back to the top