Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2008-12-04 17:14:52 +0000
committerDarin Wright2008-12-04 17:14:52 +0000
commita120f3ad6ab7f1e71180835b1750fe94ad39d40a (patch)
tree50d46362e43411b061d662a1387d2765568349f0 /org.eclipse.ui.console
parent2422b75fa31d7df947e4592f979307714ad11b66 (diff)
downloadeclipse.platform.debug-a120f3ad6ab7f1e71180835b1750fe94ad39d40a.tar.gz
eclipse.platform.debug-a120f3ad6ab7f1e71180835b1750fe94ad39d40a.tar.xz
eclipse.platform.debug-a120f3ad6ab7f1e71180835b1750fe94ad39d40a.zip
Bug 257537 ConsolePlugin should consider modifying its getStandardDisplay() method
Diffstat (limited to 'org.eclipse.ui.console')
-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..df35a076f 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 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