Author: akazakov
Date: 2011-03-29 21:09:22 -0400 (Tue, 29 Mar 2011)
New Revision: 30135
Modified:
branches/3.2.helios/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
Log:
https://issues.jboss.org/browse/JBIDE-8626
Modified:
branches/3.2.helios/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
===================================================================
---
branches/3.2.helios/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2011-03-30
01:02:56 UTC (rev 30134)
+++
branches/3.2.helios/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2011-03-30
01:09:22 UTC (rev 30135)
@@ -14,7 +14,6 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import java.util.Map;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
@@ -67,7 +66,6 @@
GridLayout gl = new GridLayout(COLUMNS, false);
root.setLayout(gl);
seamRuntimes.doFillIntoGrid(root);
-
return root;
}
@@ -86,14 +84,6 @@
*/
@Override
protected void performApply() {
- for (SeamRuntime rt : seamRuntimes.getAddedSeamRuntimes()) {
- SeamRuntimeManager.getInstance().addRuntime(rt);
- }
- seamRuntimes.getAddedSeamRuntimes().clear();
- for (SeamRuntime rt : seamRuntimes.getRemoved()) {
- SeamRuntimeManager.getInstance().removeRuntime(rt);
- }
- seamRuntimes.getRemoved().clear();
List<SeamRuntime> defaultRuntimes = seamRuntimes.getDefaultSeamRuntimes();
// reset all default runtimes
for (SeamRuntime seamRuntime : SeamRuntimeManager.getInstance().getRuntimes()) {
@@ -104,19 +94,6 @@
seamRuntime.setDefault(true);
}
seamRuntimes.getDefaultSeamRuntimes().clear();
- Map<SeamRuntime, SeamRuntime> changed = seamRuntimes.getChangedSeamRuntimes();
- for (SeamRuntime c : changed.keySet()) {
- SeamRuntime o = changed.get(c);
- o.setHomeDir(c.getHomeDir());
- o.setVersion(c.getVersion());
- String oldName = o.getName();
- String newName = c.getName();
- if (!oldName.equals(newName)) {
- SeamRuntimeManager.getInstance().changeRuntimeName(oldName, newName);
- }
- }
- seamRuntimes.getChangedSeamRuntimes().clear();
-
SeamRuntimeManager.getInstance().save();
}