Author: snjeza
Date: 2012-05-15 09:40:29 -0400 (Tue, 15 May 2012)
New Revision: 41026
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java
Log:
JBIDE-11125 - Runtime download should be able to work in background
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java
===================================================================
---
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java 2012-05-15
13:40:25 UTC (rev 41025)
+++
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java 2012-05-15
13:40:29 UTC (rev 41026)
@@ -21,6 +21,7 @@
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IStartup;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.runtime.core.JBossRuntimeLocator;
import org.jboss.tools.runtime.core.model.RuntimePath;
import org.jboss.tools.runtime.core.model.RuntimeDefinition;
@@ -54,7 +55,7 @@
if (exists) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
- Shell shell = Display.getCurrent().getActiveShell();
+ Shell shell = PlatformUI.getWorkbench().getModalDialogShellProvider().getShell();
Set<RuntimePath> runtimePaths = new HashSet<RuntimePath>();
for (RuntimePath runtimePath:RuntimeUIActivator.getDefault().getRuntimePaths()) {
if (runtimePath.isScanOnEveryStartup() || firstStart) {
Show replies by date