Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2012-08-20 11:41:45 -0400
committerMike Rennie2012-08-20 11:42:41 -0400
commit612faf0826c2d2c33aa15adbd8893faf51585ca0 (patch)
tree6fa1ac6bda84771e6158239eb76a7dead3386b0c /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent96c56ca6cf72618cf338508794a130f7871e84ec (diff)
downloadeclipse.platform.debug-612faf0826c2d2c33aa15adbd8893faf51585ca0.tar.gz
eclipse.platform.debug-612faf0826c2d2c33aa15adbd8893faf51585ca0.tar.xz
eclipse.platform.debug-612faf0826c2d2c33aa15adbd8893faf51585ca0.zip
Revert "Bug 385282 - Variables view is sometimes empty"v20120820-154241I20120904-0800I20120828-0800I20120821-0800
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java20
1 files changed, 7 insertions, 13 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 734d6bdd6..29c6d6202 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,7 +7,6 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
- *
*******************************************************************************/
package org.eclipse.debug.ui;
@@ -285,7 +284,13 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
* @see IPage#setFocus()
*/
public void setFocus() {
- internalSetFocus();
+ Viewer viewer= getViewer();
+ if (viewer != null) {
+ Control c = viewer.getControl();
+ if (!c.isFocusControl()) {
+ c.setFocus();
+ }
+ }
}
}
@@ -343,7 +348,6 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
showMessage(fEarlyMessage);
fEarlyMessage= null;
}
- internalSetFocus();
}
/**
@@ -998,16 +1002,6 @@ 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();
- }
- }
- }
}

Back to the top