Author: dennyxu
Date: 2008-06-06 06:35:25 -0400 (Fri, 06 Jun 2008)
New Revision: 8605
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java
Log:
JBIDE-2262:add jbossws facet install page to let users select a ws runtime----- fix a
compile error
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java 2008-06-06
10:28:28 UTC (rev 8604)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java 2008-06-06
10:35:25 UTC (rev 8605)
@@ -11,6 +11,7 @@
package org.jboss.tools.ws.creation.ui.project.facet;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.EventObject;
import java.util.List;
import java.util.Map;
@@ -183,8 +184,6 @@
protected void initializeRuntimesCombo(Combo cmRuntime) {
cmRuntime.removeAll();
- Map<String, JbossWSRuntime> mpRuntimes = JbossWSCoreUtils
- .getJbossWSRutntimeMap();
JbossWSRuntime[] runtimes = JbossWSRuntimeManager.getInstance()
.getRuntimes();
for (int i = 0; i < runtimes.length; i++) {
@@ -203,9 +202,9 @@
* create a new jbossws runtime and set user supplied runtime to the new one
*/
protected void newJBossWSRuntime() {
- List<JbossWSRuntime> exists = new ArrayList<JbossWSRuntime>();
+ List<JbossWSRuntime> exists = new
ArrayList<JbossWSRuntime>(Arrays.asList(JbossWSRuntimeManager.getInstance().getRuntimes()));
List<JbossWSRuntime> added = new ArrayList<JbossWSRuntime>();
- exists.addAll(JbossWSCoreUtils.getJbossWSRutntimeMap().values());
+
JbossRuntimeListFieldEditor.JbossWSRuntimeNewWizard newRtwizard = new
JbossRuntimeListFieldEditor.JbossWSRuntimeNewWizard(
exists, added) {
public boolean performFinish() {
Show replies by date