[jbosstools-commits] JBoss Tools SVN: r44012 - trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Sep 25 13:34:51 EDT 2012


Author: snjeza
Date: 2012-09-25 13:34:51 -0400 (Tue, 25 Sep 2012)
New Revision: 44012

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-09-25 17:00:53 UTC (rev 44011)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java	2012-09-25 17:34:51 UTC (rev 44012)
@@ -396,13 +396,11 @@
 		RuntimeUIActivator.launchSearchRuntimePathDialog(getShell(), 
 				new RuntimePath[]{runtimePath}, true, 15);
 		configureSearch();
-		//RuntimeUIActivator.getDefault().getModel().addRuntimePath(runtimePath);
-		//runtimePaths = RuntimeUIActivator.getRuntimePaths();
-		//runtimePathViewer.setInput(runtimePath.getRuntimeDefinitions());
 		RuntimePath[] newRuntimePaths = new RuntimePath[runtimePaths.length+1];
 		System.arraycopy(runtimePaths, 0, newRuntimePaths, 0, runtimePaths.length);
 		newRuntimePaths[runtimePaths.length] = runtimePath;
 		runtimePaths = newRuntimePaths;
+		runtimePathViewer.setInput(runtimePath);
 		runtimePathViewer.refresh();
 		
 	}



More information about the jbosstools-commits mailing list