Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2006-10-24 22:10:39 +0000
committerDarin Wright2006-10-24 22:10:39 +0000
commit52e4cbedce96b4b241822ffed54994de1c56bbc0 (patch)
treeee8026bfc0a240d7aca7e666b516ebf538eefc28 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
parent041c646c4b1653c005dd63ae094a1fdedd7a2114 (diff)
downloadeclipse.platform.debug-52e4cbedce96b4b241822ffed54994de1c56bbc0.tar.gz
eclipse.platform.debug-52e4cbedce96b4b241822ffed54994de1c56bbc0.tar.xz
eclipse.platform.debug-52e4cbedce96b4b241822ffed54994de1c56bbc0.zip
Bug 160932 API for debug context and debug commands
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
index bea3d3461..7fa14bec3 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
@@ -14,7 +14,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.model.ISuspendResume;
import org.eclipse.debug.internal.ui.contexts.DebugContextManager;
import org.eclipse.debug.internal.ui.contexts.provisional.IDebugContextListener;
-import org.eclipse.debug.internal.ui.contexts.provisional.IDebugContextManager;
+import org.eclipse.debug.internal.ui.contexts.provisional.IDebugContextService;
import org.eclipse.debug.ui.actions.IRunToLineTarget;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
@@ -63,7 +63,7 @@ public class RetargetRunToLineAction extends RetargetAction {
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
public void dispose() {
- DebugContextManager.getDefault().removeDebugContextListener(fContextListener, fWindow);
+ DebugContextManager.getDefault().getContextService(fWindow).removeDebugContextListener(fContextListener);
super.dispose();
}
/* (non-Javadoc)
@@ -71,9 +71,9 @@ public class RetargetRunToLineAction extends RetargetAction {
*/
public void init(IWorkbenchWindow window) {
super.init(window);
- IDebugContextManager manager = DebugContextManager.getDefault();
- manager.addDebugContextListener(fContextListener, window);
- ISelection activeContext = manager.getActiveContext(window);
+ IDebugContextService service = DebugContextManager.getDefault().getContextService(window);
+ service.addDebugContextListener(fContextListener);
+ ISelection activeContext = service.getActiveContext();
fContextListener.contextActivated(activeContext, null);
}

Back to the top