geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r817919 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DBPoolWizard.java
Date Wed, 23 Sep 2009 01:38:50 GMT
Author: delos
Date: Wed Sep 23 01:38:49 2009
New Revision: 817919

URL: http://svn.apache.org/viewvc?rev=817919&view=rev
Log:
GERONIMODEVTOOLS-455 Add Database pool wizard in GEP to enable application specific pools

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

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DBPoolWizard.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/DBPoolWizard.java?rev=817919&r1=817918&r2=817919&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DBPoolWizard.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/DBPoolWizard.java
Wed Sep 23 01:38:49 2009
@@ -177,7 +177,10 @@
 	    extModule.setExternalPath(pattern);
 	    pattern.setGroupId(page0.text[1].getText());
 	    pattern.setArtifactId(page0.text[2].getText());
-	    pattern.setVersion(page0.text[3].getText());
+	    //empty version element will cause deploy failure
+	    String version = page0.text[3].getText();
+	    if (version!=null && version.length()!=0)
+	    	pattern.setVersion(page0.text[3].getText());
 	    pattern.setType(page0.text[4].getText().trim());
 
 	    Connector conn = new Connector();
@@ -920,54 +923,4 @@
 
 }
 
-/**
- * Needn't it, so comment it.
- */
-/*
- * class PlanWizard extends Wizard {
- * 
- * String plan;
- * 
- * protected ImageDescriptor descriptor = Activator.imageDescriptorFromPlugin(
- * "org.apache.geronimo.st.ui", "icons/bigG.gif");
- * 
- * public PlanWizard(String plan) { setWindowTitle("Plan Wizard"); this.plan =
- * plan; }
- * 
- * public void addPages() { PlanWizardPage page1 = new PlanWizardPage("Plan",
- * plan); page1.setImageDescriptor(descriptor); addPage(page1);
- * 
- * }
- * 
- * public boolean performFinish() { // =============to
- * remove==========================================
- * System.out.println("To Deploy The Plan!======================");
- * System.out.println(plan); //
- * ================================================================ return true;
- * }
- * 
- * public class PlanWizardPage extends WizardPage {
- * 
- * String plan;
- * 
- * protected PlanWizardPage(String pageName, String plan) { super(pageName);
- * this.plan = plan; setTitle("Plan"); setDescription("Edit plan to Deploy"); }
- * 
- * public void createControl(Composite parent) { Composite composite = new
- * Composite(parent, SWT.NULL); GridLayout layout = new GridLayout();
- * layout.numColumns = 2; composite.setLayout(layout); GridData data = new
- * GridData(); data.verticalAlignment = GridData.FILL; data.horizontalAlignment
- * = GridData.FILL; data.widthHint = 300; composite.setLayoutData(data);
- * 
- * Text text = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL |
- * SWT.V_SCROLL); GridData textData = new GridData(); textData.widthHint = 600;
- * textData.heightHint = 400; text.setLayoutData(textData); text.setText(plan);
- * 
- * setControl(composite);
- * 
- * }
- * 
- * }
- * 
- * }
- */
+



Mime
View raw message