geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bjr...@apache.org
Subject svn commit: r734751 - in /geronimo/devtools/eclipse-plugin: branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/u...
Date Thu, 15 Jan 2009 16:41:42 GMT
Author: bjreed
Date: Thu Jan 15 08:41:42 2009
New Revision: 734751

URL: http://svn.apache.org/viewvc?rev=734751&view=rev
Log:
GERONIMODEVTOOLS-556.  During creaton of plugins from apps, when next button is hit to bring
up the combo box to select installed apps, refresh the list

Modified:
    geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java?rev=734751&r1=734750&r2=734751&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
Thu Jan 15 08:41:42 2009
@@ -118,6 +118,8 @@
                     page5.setPageComplete(false);
                     pageVisible = 4;
                 } else {
+                    // refresh the list of available plugins
+                    page1.refreshPluginList();
                     page5.setPageComplete(true);
                     pageVisible = 1;
                 }
@@ -254,6 +256,7 @@
             String[] strArray = new String[strList.size()];
             strArray = strList.toArray(strArray);
             createPluginCombo = createCombo(composite, strArray, false);
+            createPluginCombo.setVisibleItemCount(20);
             createPluginCombo.addSelectionListener(new SelectionAdapter() {
                 public void widgetSelected(SelectionEvent arg0) {
                     setPageComplete(createPluginCombo.getSelectionIndex() > -1);
@@ -264,6 +267,14 @@
             setControl(composite);
         }
 
+        public void refreshPluginList () {
+            List<String> strList = pluginManager.getConfigurationList();
+            String[] strArray = new String[strList.size()];
+            strArray = strList.toArray(strArray);
+            createPluginCombo.removeAll();
+            createPluginCombo.setItems(strArray);
+        }
+
         @Override
         protected String getWizardPageTitle() {
             return CommonMessages.wizardPage1Title_PluginManager;

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java?rev=734751&r1=734750&r2=734751&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
Thu Jan 15 08:41:42 2009
@@ -118,6 +118,8 @@
                     page5.setPageComplete(false);
                     pageVisible = 4;
                 } else {
+                    // refresh the list of available plugins
+                    page1.refreshPluginList();
                     page5.setPageComplete(true);
                     pageVisible = 1;
                 }
@@ -254,6 +256,7 @@
             String[] strArray = new String[strList.size()];
             strArray = strList.toArray(strArray);
             createPluginCombo = createCombo(composite, strArray, false);
+            createPluginCombo.setVisibleItemCount(20);
             createPluginCombo.addSelectionListener(new SelectionAdapter() {
                 public void widgetSelected(SelectionEvent arg0) {
                     setPageComplete(createPluginCombo.getSelectionIndex() > -1);
@@ -264,6 +267,14 @@
             setControl(composite);
         }
 
+        public void refreshPluginList () {
+            List<String> strList = pluginManager.getConfigurationList();
+            String[] strArray = new String[strList.size()];
+            strArray = strList.toArray(strArray);
+            createPluginCombo.removeAll();
+            createPluginCombo.setItems(strArray);
+        }
+
         @Override
         protected String getWizardPageTitle() {
             return CommonMessages.wizardPage1Title_PluginManager;
@@ -398,7 +409,7 @@
                 buf.append(artifactToString(artifactType));
             }
             return buf.toString();
-         }
+        }
 
         private String artifactToString(ArtifactType artifact) {
             StringBuffer buffer = new StringBuffer();
@@ -711,7 +722,6 @@
                         setPageComplete(false);
                     }
                 }
-
             });
 
             setPageComplete(false);



Mime
View raw message