Author: dgolovin
Date: 2012-09-11 20:38:19 -0400 (Tue, 11 Sep 2012)
New Revision: 43612
Modified:
trunk/seam/tests/org.jboss.tools.runtime.seam.detector.test/src/org/jboss/tools/runtime/seam/detector/test/SeamRuntimeDetectionTest.java
Log:
fixed compilation errors in seam.detector.test after refactoring
Modified:
trunk/seam/tests/org.jboss.tools.runtime.seam.detector.test/src/org/jboss/tools/runtime/seam/detector/test/SeamRuntimeDetectionTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.runtime.seam.detector.test/src/org/jboss/tools/runtime/seam/detector/test/SeamRuntimeDetectionTest.java 2012-09-12
00:25:40 UTC (rev 43611)
+++
trunk/seam/tests/org.jboss.tools.runtime.seam.detector.test/src/org/jboss/tools/runtime/seam/detector/test/SeamRuntimeDetectionTest.java 2012-09-12
00:38:19 UTC (rev 43612)
@@ -285,13 +285,13 @@
List<RuntimeDefinition> serverDefinitions = locator
.searchForRuntimes(runtimePath.getPath(),
new NullProgressMonitor());
-
- // Shouldn't this be done by the framework somehow??
- runtimePath.getRuntimeDefinitions().clear();
- for (RuntimeDefinition serverDefinition : serverDefinitions) {
- serverDefinition.setRuntimePath(runtimePath);
- }
- runtimePath.getRuntimeDefinitions().addAll(serverDefinitions);
+//
+// // Shouldn't this be done by the framework somehow??
+// runtimePath.getRuntimeDefinitions().clear();
+// for (RuntimeDefinition serverDefinition : serverDefinitions) {
+// serverDefinition.setRuntimePath(runtimePath);
+// }
+// runtimePath.getRuntimeDefinitions().addAll(serverDefinitions);
return serverDefinitions;
}
@@ -301,11 +301,11 @@
return runtimePath;
}
private void setRuntimePaths(RuntimePath runtimePath, boolean save) {
- Set<RuntimePath> runtimePaths =
RuntimeUIActivator.getDefault().getRuntimePaths();
- runtimePaths.clear();
- runtimePaths.add(runtimePath);
+ //Set<RuntimePath> runtimePaths =
RuntimeUIActivator.getDefault().getRuntimePaths();
+ //runtimePaths.clear();
+ //runtimePaths.add(runtimePath);
if( save )
- RuntimeUIActivator.getDefault().saveRuntimePaths();
+ RuntimeUIActivator.getDefault().saveRuntimePreferences();
}
Show replies by date