Author: snjeza
Date: 2012-10-18 12:42:17 -0400 (Thu, 18 Oct 2012)
New Revision: 44582
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12716 - Remove button does not work properly
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
===================================================================
---
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-10-18
16:08:53 UTC (rev 44581)
+++
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java 2012-10-18
16:42:17 UTC (rev 44582)
@@ -420,6 +420,8 @@
newRuntimePaths[i++] = path;
}
runtimePaths = newRuntimePaths;
+ RuntimeUIActivator.getDefault().getModel().setRuntimePaths(runtimePaths);
+ RuntimeUIActivator.getDefault().saveRuntimePreferences();
runtimePathViewer.setInput(runtimePaths);
configureSearch();
runtimePathViewer.refresh();
@@ -457,6 +459,8 @@
runtimePath = runtimePathClone;
l.add(runtimePath);
runtimePaths = (RuntimePath[]) l.toArray(new RuntimePath[l.size()]);
+ RuntimeUIActivator.getDefault().getModel().setRuntimePaths(runtimePaths);
+ RuntimeUIActivator.getDefault().saveRuntimePreferences();
configureSearch();
runtimePathViewer.refresh();
}
Show replies by date