Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2006-02-09 13:36:59 -0500
committerDarin Swanson2006-02-09 13:36:59 -0500
commit4c77ff2f72660c8d1b27b0aeae35e3de2256baeb (patch)
treee578919066f97f5320dd0a6bc7d7614b51de510c /org.eclipse.ui.console
parent506c05a509a2d9103098522d9e8ad9753d254f3c (diff)
downloadeclipse.platform.debug-4c77ff2f72660c8d1b27b0aeae35e3de2256baeb.tar.gz
eclipse.platform.debug-4c77ff2f72660c8d1b27b0aeae35e3de2256baeb.tar.xz
eclipse.platform.debug-4c77ff2f72660c8d1b27b0aeae35e3de2256baeb.zip
The variable view cannot be null
The method run(ISafeRunnable) from the type Platform is deprecated
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java
index d235c9ecf..57827384a 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java
@@ -24,6 +24,7 @@ import org.eclipse.core.runtime.ISafeRunnable;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.ListenerList;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.SafeRunner;
import org.eclipse.core.runtime.Status;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IViewPart;
@@ -105,7 +106,7 @@ public class ConsoleManager implements IConsoleManager {
IViewPart part = page.findView(IConsoleConstants.ID_CONSOLE_VIEW);
if (part != null && part instanceof IConsoleView) {
ConsoleView view = (ConsoleView) part;
- if (view != null && list.contains(view.getConsole())) {
+ if (list.contains(view.getConsole())) {
Control control = view.getCurrentPage().getControl();
if (!control.isDisposed()) {
control.redraw();
@@ -168,7 +169,7 @@ public class ConsoleManager implements IConsoleManager {
Object[] copiedListeners= fListeners.getListeners();
for (int i= 0; i < copiedListeners.length; i++) {
fListener = (IConsoleListener)copiedListeners[i];
- Platform.run(this);
+ SafeRunner.run(this);
}
fChanged = null;
fListener = null;

Back to the top