[jbosstools-commits] JBoss Tools SVN: r43651 - 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
Thu Sep 13 10:21:25 EDT 2012


Author: snjeza
Date: 2012-09-13 10:21:25 -0400 (Thu, 13 Sep 2012)
New Revision: 43651

Modified:
   trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java
Log:
JBIDE-12607 - Add button in Runtime Detection preference page doesn't work

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-13 14:18:02 UTC (rev 43650)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/preferences/RuntimePreferencePage.java	2012-09-13 14:21:25 UTC (rev 43651)
@@ -395,8 +395,11 @@
 		RuntimeUIActivator.launchSearchRuntimePathDialog(getShell(), 
 				new RuntimePath[]{runtimePath}, true, 15);
 		configureSearch();
+		RuntimeUIActivator.getDefault().getModel().addRuntimePath(runtimePath);
+		runtimePaths = RuntimeUIActivator.getRuntimePaths();
 		runtimePathViewer.setInput(runtimePath.getRuntimeDefinitions());
 		runtimePathViewer.refresh();
+		
 	}
 	
 	private void removedPressed() {



More information about the jbosstools-commits mailing list