Author: snjeza
Date: 2010-12-12 14:36:23 -0500 (Sun, 12 Dec 2010)
New Revision: 27387
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java
Log:
JBIDE-7795 Search for JBoss runtimes does not add drools runtime properly
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java
===================================================================
---
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java 2010-12-11
19:57:12 UTC (rev 27386)
+++
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java 2010-12-12
19:36:23 UTC (rev 27387)
@@ -23,7 +23,13 @@
public class DroolsHandler implements
IJBossRuntimePersistanceHandler,IJBossRuntimePluginConstants {
public void initializeRuntimes(List<ServerDefinition> serverDefinitions) {
+ DroolsRuntime[] existingRuntimes = DroolsRuntimeManager.getDroolsRuntimes();
List<DroolsRuntime> droolsRuntimes = new ArrayList<DroolsRuntime>();
+ if (existingRuntimes != null) {
+ for (DroolsRuntime runtime:existingRuntimes) {
+ droolsRuntimes.add(runtime);
+ }
+ }
for (ServerDefinition serverDefinition : serverDefinitions) {
String type = serverDefinition.getType();
if (!droolsExists(serverDefinition)) {
Show replies by date