Author: snjeza
Date: 2011-01-18 08:52:13 -0500 (Tue, 18 Jan 2011)
New Revision: 28353
Modified:
branches/jbosstools-3.2.0.CR1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java
Log:
JBIDE-8125 [JBossTools Runtimes] no runtimes except for server runtime are added
Modified:
branches/jbosstools-3.2.0.CR1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java
===================================================================
---
branches/jbosstools-3.2.0.CR1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java 2011-01-18
13:48:03 UTC (rev 28352)
+++
branches/jbosstools-3.2.0.CR1/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java 2011-01-18
13:52:13 UTC (rev 28353)
@@ -235,9 +235,10 @@
protected void okPressed() {
getShell().setCursor(Display.getCurrent().getSystemCursor(SWT.CURSOR_WAIT));
Set<IRuntimeDetector> detectors = RuntimeCoreActivator.getRuntimeDetectors();
+ List<ServerDefinition> definitions = getServerDefinitions(true);
for( IRuntimeDetector detector:detectors) {
if (detector.isEnabled()) {
- detector.initializeRuntimes(getServerDefinitions(true));
+ detector.initializeRuntimes(definitions);
}
}
getShell().setCursor(null);
Show replies by date