Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2008-12-04 17:31:30 +0000
committerDarin Wright2008-12-04 17:31:30 +0000
commit01341bb2f2546a929fc741fab1f253fa40083731 (patch)
treebceb5110d2bff1422eb5aab2619105c927f81ed3
parent3c51ff888064c1069a57348d548508d1c45c80be (diff)
downloadeclipse.platform.debug-01341bb2f2546a929fc741fab1f253fa40083731.tar.gz
eclipse.platform.debug-01341bb2f2546a929fc741fab1f253fa40083731.tar.xz
eclipse.platform.debug-01341bb2f2546a929fc741fab1f253fa40083731.zip
Bug 257537 - ConsolePlugin should consider modifying its getStandardDisplay() method
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/console/ConsolePlugin.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/ConsolePlugin.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/ConsolePlugin.java
index 81845aa31..1e2af67c2 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/ConsolePlugin.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/ConsolePlugin.java
@@ -19,6 +19,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.console.ConsoleManager;
import org.eclipse.ui.internal.console.ConsolePluginImages;
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -115,16 +116,10 @@ public class ConsolePlugin extends AbstractUIPlugin {
}
/**
- * Returns the standard display to be used. The method first checks, if
- * the thread calling this method has an associated display. If so, this
- * display is returned. Otherwise the method returns the default display.
+ * Returns the workbench's display.
*/
public static Display getStandardDisplay() {
- Display display= Display.getCurrent();
- if (display == null) {
- display= Display.getDefault();
- }
- return display;
+ return PlatformUI.getWorkbench().getDisplay();
}
/**

Back to the top