[jbosstools-commits] JBoss Tools SVN: r39345 - branches/jbosstools-3.3.0.Beta1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Wed Mar 7 12:02:26 EST 2012
Author: snjeza
Date: 2012-03-07 12:02:26 -0500 (Wed, 07 Mar 2012)
New Revision: 39345
Modified:
branches/jbosstools-3.3.0.Beta1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java
Log:
JBIDE-10244 Cleaning up Runtime plugin
Modified: branches/jbosstools-3.3.0.Beta1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java
===================================================================
--- branches/jbosstools-3.3.0.Beta1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java 2012-03-07 16:47:36 UTC (rev 39344)
+++ branches/jbosstools-3.3.0.Beta1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java 2012-03-07 17:02:26 UTC (rev 39345)
@@ -10,6 +10,7 @@
************************************************************************************/
package org.jboss.tools.runtime.ui;
+import java.util.HashSet;
import java.util.List;
import java.util.Set;
@@ -54,7 +55,15 @@
Display.getDefault().asyncExec(new Runnable() {
public void run() {
Shell shell = Display.getCurrent().getActiveShell();
- RuntimeUIActivator.refreshRuntimes(shell, RuntimeUIActivator.getDefault().getRuntimePaths(), null, false, 7);
+ Set<RuntimePath> runtimePaths = new HashSet<RuntimePath>();
+ for (RuntimePath runtimePath:RuntimeUIActivator.getDefault().getRuntimePaths()) {
+ if (runtimePath.isScanOnEveryStartup() || firstStart) {
+ runtimePaths.add(runtimePath);
+ }
+ }
+ if (runtimePaths.size() > 0) {
+ RuntimeUIActivator.refreshRuntimes(shell, runtimePaths, null, false, 7);
+ }
}
});
}
More information about the jbosstools-commits
mailing list