Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-05-21 14:43:27 +0000
committerDarin Swanson2001-05-21 14:43:27 +0000
commit1f4a0fdc7b4df705e11e3febd7f17b368d09e910 (patch)
tree22002ff391a6fa0ce67c4c2cd0ff89a920e349f7
parent50a9d3b1a297f9fae78f6c49d63bc9f9caadd36e (diff)
downloadeclipse.platform.debug-1f4a0fdc7b4df705e11e3febd7f17b368d09e910.tar.gz
eclipse.platform.debug-1f4a0fdc7b4df705e11e3febd7f17b368d09e910.tar.xz
eclipse.platform.debug-1f4a0fdc7b4df705e11e3febd7f17b368d09e910.zip
1GE34CZ
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java
index 04676cfd7..3ea8ad952 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java
@@ -6,13 +6,7 @@ package org.eclipse.debug.ui;
* (c) Copyright IBM Corp 2000
*/
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.internal.ui.*;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.graphics.Image;
+import org.eclipse.debug.core.model.IValue; import org.eclipse.debug.internal.ui.*; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.swt.graphics.Image; import org.eclipse.ui.*;
/**
* This class provides utilities for clients of the debug UI.
@@ -46,7 +40,9 @@ public class DebugUITools {
if (view == null) {
// open a new view
try {
+ IWorkbenchPart activePart= p.getActivePart();
view= (InspectorView) p.showView(IDebugUIConstants.ID_INSPECTOR_VIEW);
+ p.activate(activePart);
} catch (PartInitException e) {
DebugUIUtils.logError(e);
return;
@@ -54,7 +50,7 @@ public class DebugUITools {
}
InspectItem item = new InspectItem(label, value);
view.addToInspector(item);
- p.activate(view);
+ p.bringToTop(view);
}
/**

Back to the top