drools-eclipse/org.jboss.tools.runtime.drools.detector/src/org/jboss/tools/runtime/handlers/DroolsHandler.java
@Override
    public void initializeRuntimes(List<RuntimeDefinition> serverDefinitions) {
        IRuntime[] existingRuntimes = DroolsRuntimeManager.getDefault().getConfiguredRuntimes();
        List<DroolsRuntime> droolsRuntimes = new ArrayList<DroolsRuntime>();
        if (existingRuntimes != null) {
            for (IRuntime runtime : existingRuntimes) {
            	if (runtime instanceof DroolsRuntime)
            		droolsRuntimes.add((DroolsRuntime) runtime);
            }
        }
        initializeInternal(serverDefinitions, droolsRuntimes);
        if (droolsRuntimes.size() > 0) {
            DroolsRuntime[] dra = droolsRuntimes.toArray(new DroolsRuntime[0]);
            DroolsRuntimeManager.getDefault().setRuntimes(dra);
        }

    }
@Override
    public void initializeRuntimes(List<RuntimeDefinition> serverDefinitions) {
        IRuntime[] existingRuntimes = DroolsRuntimeManager.getDefault().getConfiguredRuntimes();
        List<DroolsRuntime> droolsRuntimes = new ArrayList<DroolsRuntime>();
        if (existingRuntimes != null) {
            for (IRuntime runtime : existingRuntimes) {
            	if (runtime instanceof DroolsRuntime)
            		droolsRuntimes.add((DroolsRuntime) runtime);
            }
        }
        initializeInternal(serverDefinitions, droolsRuntimes);
        if (droolsRuntimes.size() > 0) {
            DroolsRuntime[] dra = droolsRuntimes.toArray(new DroolsRuntime[0]);
            DroolsRuntimeManager.getDefault().setRuntimes(dra);
        }

    }
@ Override public void initializeRuntimes ( List < RuntimeDefinition > serverDefinitions ) { IRuntime [ ] existingRuntimes = DroolsRuntimeManager . getDefault ( ) . getConfiguredRuntimes ( ) ; List < DroolsRuntime > droolsRuntimes = new ArrayList < DroolsRuntime > ( ) ; if ( existingRuntimes != null ) { for ( IRuntime runtime : existingRuntimes ) { if ( runtime instanceof DroolsRuntime ) droolsRuntimes . add ( ( DroolsRuntime ) runtime ) ; } } initializeInternal ( serverDefinitions , droolsRuntimes ) ; if ( droolsRuntimes . size ( ) > 0 ) { DroolsRuntime [ ] dra = droolsRuntimes . toArray ( new DroolsRuntime [ 0 ] ) ; DroolsRuntimeManager . getDefault ( ) . setRuntimes ( dra ) ; } }
$NON-NLS-1$
$NON - NLS - 1$