aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2013-01-22 11:40:19 (EST)
committerDani Megert2013-01-22 11:40:19 (EST)
commit3332e80e12f74593035f2619be3300260af7f1f6 (patch)
tree06d2722e061d4d281c780528de501a47da5bc1e2
parent600c40cc2aa48880381806d90296c4b5591c6705 (diff)
downloadeclipse.platform.debug-3332e80e12f74593035f2619be3300260af7f1f6.zip
eclipse.platform.debug-3332e80e12f74593035f2619be3300260af7f1f6.tar.gz
eclipse.platform.debug-3332e80e12f74593035f2619be3300260af7f1f6.tar.bz2
starts IStartup plug-ins before it is fully initialized (was: Race condition in DebugUIPlugin.start() can cause Debug plugins to not get loaded properly)
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java
index 65704a3..b2a9e55 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 IBM Corporation and others.
+ * Copyright (c) 2007, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -549,7 +549,9 @@ public class LaunchingResourceManager implements IPropertyChangeListener, IWindo
// initialize for already open windows
IWorkbenchWindow[] workbenchWindows = workbench.getWorkbenchWindows();
for (int i = 0; i < workbenchWindows.length; i++) {
- windowOpened(workbenchWindows[i]);
+ if (workbenchWindows[i].getSelectionService() != null) {
+ windowOpened(workbenchWindows[i]);
+ }
}
}
DebugUIPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this);