aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongwei Zhao2012-07-17 14:19:36 (EDT)
committerMike Rennie2012-07-17 14:19:36 (EDT)
commit367e5b38f2ef3b70e1d09ee89d8b288270d6df58 (patch)
tree1c3dbc42a50c30abbc4147715e1fb6f558acbabd
parentefd7c3127870daab51ebfbc3a2e9b5f262651d1b (diff)
downloadeclipse.platform.debug-367e5b38f2ef3b70e1d09ee89d8b288270d6df58.zip
eclipse.platform.debug-367e5b38f2ef3b70e1d09ee89d8b288270d6df58.tar.gz
eclipse.platform.debug-367e5b38f2ef3b70e1d09ee89d8b288270d6df58.tar.bz2
Bug 385282 - Variables view is sometimes empty
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java20
1 files changed, 13 insertions, 7 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
index 29c6d62..734d6bd 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ *
*******************************************************************************/
package org.eclipse.debug.ui;
@@ -284,13 +285,7 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
* @see IPage#setFocus()
*/
public void setFocus() {
- Viewer viewer= getViewer();
- if (viewer != null) {
- Control c = viewer.getControl();
- if (!c.isFocusControl()) {
- c.setFocus();
- }
- }
+ internalSetFocus();
}
}
@@ -348,6 +343,7 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
showMessage(fEarlyMessage);
fEarlyMessage= null;
}
+ internalSetFocus();
}
/**
@@ -1002,6 +998,16 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
}
return new HashMap();
}
+
+ private void internalSetFocus() {
+ Viewer viewer= getViewer();
+ if (viewer != null) {
+ Control c = viewer.getControl();
+ if (!c.isFocusControl()) {
+ c.setFocus();
+ }
+ }
+ }
}