You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/05/09 12:20:25 UTC

svn commit: r405369 - /lenya/trunk/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java

Author: michi
Date: Tue May  9 03:20:19 2006
New Revision: 405369

URL: http://svn.apache.org/viewcvs?rev=405369&view=rev
Log:
combox set dynamically

Modified:
    lenya/trunk/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java

Modified: lenya/trunk/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java?rev=405369&r1=405368&r2=405369&view=diff
==============================================================================
--- lenya/trunk/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java (original)
+++ lenya/trunk/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java Tue May  9 03:20:19 2006
@@ -657,14 +657,19 @@
     public void comboBox() {
         /* Hardcoded, we cant know where the dropdown could be... */
 
-        if (steps == 3) {
+        String[] availableValues = params[getStep()].getAvailableValues();
+
+        if (availableValues != null && availableValues.length > 0) {
             warning1.setVisible(false);
             warning2.setVisible(false);
             defaultValueTextField.setVisible(false);
             localValueTextField.setVisible(false);
             newLocalValueTextField.setVisible(true);
 
-            String labels[] = { "Jetty", "Tomcat", "Wls" };
+            String[] labels = new String[availableValues.length];
+            for (int i = 0; i < availableValues.length; i ++) {
+                labels[i] = availableValues[i];
+            }
             DefaultValueComboBox = new JComboBox(labels);
             DefaultValueComboBox.setMaximumRowCount(3);
             contentPanel.add(DefaultValueComboBox, new GridBagConstraints(2, 1,



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org