[hg] main-silver: #221990 proper title for maven project wizards

  • From: Milos Kleint < >
  • To: , , ,
  • Subject: [hg] main-silver: #221990 proper title for maven project wizards
  • Date: Tue, 20 Nov 2012 15:00:14 -0800

changeset b6c7e2542d88 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/b6c7e2542d88
description:
        #221990 proper title for maven project wizards

diffstat:

 
maven.apisupport/src/org/netbeans/modules/maven/apisupport/NbmWizardIterator.java
       |  10 +++--
 
maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EAWizardIterator.java
         |   7 +++
 
maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EEWizardIterator.java
         |  18 +++++++--
 maven.osgi/manifest.mf                                                       
           |   2 +-
 maven.osgi/nbproject/project.xml                                             
           |   2 +-
 maven.osgi/src/org/netbeans/modules/maven/osgi/templates/BundleWizard.java   
           |   3 +-
 
maven.samples/src/org/netbeans/modules/maven/samples/MavenCRUDSampleWizardIterator.java
 |   4 +-
 
maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardIterator.java
    |  17 +++++++-
 
maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardPanel.java
       |   1 -
 maven.samples/src/org/netbeans/modules/maven/samples/layer.xml               
           |   6 +-
 maven/manifest.mf                                                            
           |   2 +-
 maven/src/org/netbeans/modules/maven/api/archetype/ArchetypeWizards.java     
           |  14 +++++++-
 maven/src/org/netbeans/modules/maven/newproject/BasicWizardPanel.java        
           |   7 +++
 maven/src/org/netbeans/modules/maven/newproject/ExistingWizardIterator.java  
           |   2 +
 maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java     
           |  13 +++++--
 15 files changed, 83 insertions(+), 25 deletions(-)

diffs (377 lines):

diff --git 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/NbmWizardIterator.java
 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/NbmWizardIterator.java
--- 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/NbmWizardIterator.java
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/NbmWizardIterator.java
@@ -101,21 +101,23 @@
     private WizardDescriptor.Panel<WizardDescriptor>[] panels;
     private WizardDescriptor wiz;
     private final Archetype archetype;
+    private final String title;
 
-    private NbmWizardIterator(Archetype archetype) {
+    private NbmWizardIterator(Archetype archetype, String title) {
         this.archetype = archetype;
+        this.title = title;
     }
 
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=400, displayName="#template.module", 
iconBase="org/netbeans/modules/maven/apisupport/nbmicon.png", 
description="NbModuleDescription.html")
     @Messages("template.module=NetBeans Module")
     public static NbmWizardIterator createNbModuleIterator() {
-        return new NbmWizardIterator(NB_MODULE_ARCH);
+        return new NbmWizardIterator(NB_MODULE_ARCH, template_module());
     }
 
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=450, displayName="#template.app", 
iconBase="org/netbeans/modules/maven/apisupport/suiteicon.png", 
description="NbAppDescription.html")
     @Messages("template.app=NetBeans Application")
     public static NbmWizardIterator createNbAppIterator() {
-        return new NbmWizardIterator(NB_APP_ARCH);
+        return new NbmWizardIterator(NB_APP_ARCH, template_app());
     }
 
     @SuppressWarnings({"unchecked", "rawtypes"}) // XXX until rewrite panel 
storage
@@ -185,7 +187,7 @@
 
         panels = createPanels(vg);
         this.wiz = wiz;
-
+        wiz.putProperty ("NewProjectWizard_Title", title); // NOI18N
         // Make sure list of steps is accurate.
         String[] steps = createSteps();
         for (int i = 0; i < panels.length; i++) {
diff --git 
a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EAWizardIterator.java
 
b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EAWizardIterator.java
--- 
a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EAWizardIterator.java
+++ 
b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EAWizardIterator.java
@@ -64,6 +64,7 @@
 import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileUtil;
 import org.openide.util.NbBundle.Messages;
+import static org.netbeans.modules.maven.j2ee.newproject.Bundle.*;
 
 /**
  * This class is responsible for creating new EAR projects
@@ -120,6 +121,12 @@
         return projects;
     }
     
+    @Override
+    public void initialize(WizardDescriptor wiz) {
+        super.initialize(wiz); 
+        wiz.putProperty ("NewProjectWizard_Title", template_EA()); // NOI18N
+    }
+    
     /**
      * Creates dependencies between EAR ---> Ejb module and EAR ---> Web 
module
      * 
diff --git 
a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EEWizardIterator.java
 
b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EEWizardIterator.java
--- 
a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EEWizardIterator.java
+++ 
b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/newproject/EEWizardIterator.java
@@ -60,6 +60,7 @@
 import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileUtil;
 import org.openide.util.NbBundle.Messages;
+import static org.netbeans.modules.maven.j2ee.newproject.Bundle.*;
 
 /**
  * This class is responsible for creating Ejb, Web and App client projects
@@ -71,29 +72,31 @@
     /** value is one of Profile instance */
     public static final String PROP_EE_LEVEL = "eeLevel"; // NOI18N
     private J2eeModule.Type projectType;
+    private final String titleName;
     
     
-    private EEWizardIterator(J2eeModule.Type projectType) {
+    private EEWizardIterator(J2eeModule.Type projectType, String titleName) {
         this.projectType = projectType;
+        this.titleName = titleName;
     }
     
 
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=200, displayName="#template.WebApp", 
iconBase="org/netbeans/modules/maven/j2ee/resources/maven_web_application_16.png",
 description="../resources/WebAppDescription.html")
     @Messages("template.WebApp=Web Application")
     public static EEWizardIterator createWebAppIterator() {
-        return new EEWizardIterator(J2eeModule.Type.WAR);
+        return new EEWizardIterator(J2eeModule.Type.WAR, template_WebApp());
     }
 
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=250, displayName="#template.EJB", 
iconBase="org/netbeans/modules/maven/j2ee/resources/maven_ejb_module_16.png", 
description="../resources/EjbDescription.html")
     @Messages("template.EJB=EJB Module")
     public static EEWizardIterator createEJBIterator() {
-        return new EEWizardIterator(J2eeModule.Type.EJB);
+        return new EEWizardIterator(J2eeModule.Type.EJB, template_EJB());
     }
     
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=277, displayName="#template.APPCLIENT", 
iconBase="org/netbeans/modules/maven/j2ee/resources/appclient.png", 
description="../resources/AppClientDescription.html")
     @Messages("template.APPCLIENT=Enterprise Application Client")
     public static EEWizardIterator createAppClientIterator() {
-        return new EEWizardIterator(J2eeModule.Type.CAR);
+        return new EEWizardIterator(J2eeModule.Type.CAR, 
template_APPCLIENT());
     }
     
     @Override
@@ -122,6 +125,13 @@
     }
 
     @Override
+    public void initialize(WizardDescriptor wiz) {
+        super.initialize(wiz);
+        wiz.putProperty ("NewProjectWizard_Title", titleName);
+    }
+    
+
+    @Override
     protected WizardDescriptor.Panel[] createPanels(ValidationGroup vg) {
         return new WizardDescriptor.Panel[] {
             ArchetypeWizards.basicWizardPanel(vg, false, null),
diff --git a/maven.osgi/manifest.mf b/maven.osgi/manifest.mf
--- a/maven.osgi/manifest.mf
+++ b/maven.osgi/manifest.mf
@@ -3,5 +3,5 @@
 OpenIDE-Module: org.netbeans.modules.maven.osgi/1
 OpenIDE-Module-Layer: org/netbeans/modules/maven/osgi/layer.xml
 OpenIDE-Module-Localizing-Bundle: 
org/netbeans/modules/maven/osgi/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.19
+OpenIDE-Module-Specification-Version: 1.20
 
diff --git a/maven.osgi/nbproject/project.xml 
b/maven.osgi/nbproject/project.xml
--- a/maven.osgi/nbproject/project.xml
+++ b/maven.osgi/nbproject/project.xml
@@ -38,7 +38,7 @@
                     <compile-dependency/>
                     <run-dependency>
                         <release-version>2</release-version>
-                        <specification-version>2.57</specification-version>
+                        <specification-version>2.63</specification-version>
                     </run-dependency>
                 </dependency>
                 <dependency>
diff --git 
a/maven.osgi/src/org/netbeans/modules/maven/osgi/templates/BundleWizard.java 
b/maven.osgi/src/org/netbeans/modules/maven/osgi/templates/BundleWizard.java
--- 
a/maven.osgi/src/org/netbeans/modules/maven/osgi/templates/BundleWizard.java
+++ 
b/maven.osgi/src/org/netbeans/modules/maven/osgi/templates/BundleWizard.java
@@ -42,13 +42,14 @@
 import org.netbeans.modules.maven.api.archetype.ArchetypeWizards;
 import org.openide.WizardDescriptor;
 import org.openide.util.NbBundle.Messages;
+import static org.netbeans.modules.maven.osgi.templates.Bundle.*;
 
 public class BundleWizard {
     
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=290, displayName="#template.project.OSGi", 
iconBase="org/netbeans/modules/maven/osgi/maven_osgi_16.png", 
description="OSGiDescription.html")
     @Messages("template.project.OSGi=OSGi Bundle")
     public static WizardDescriptor.InstantiatingIterator<?> create() {
-        return 
ArchetypeWizards.definedArchetype("org.codehaus.mojo.archetypes", 
"osgi-archetype", "1.4", null);
+        return 
ArchetypeWizards.definedArchetype("org.codehaus.mojo.archetypes", 
"osgi-archetype", "1.4", null, template_project_OSGi());
     }
 
     private BundleWizard() {}
diff --git 
a/maven.samples/src/org/netbeans/modules/maven/samples/MavenCRUDSampleWizardIterator.java
 
b/maven.samples/src/org/netbeans/modules/maven/samples/MavenCRUDSampleWizardIterator.java
--- 
a/maven.samples/src/org/netbeans/modules/maven/samples/MavenCRUDSampleWizardIterator.java
+++ 
b/maven.samples/src/org/netbeans/modules/maven/samples/MavenCRUDSampleWizardIterator.java
@@ -64,7 +64,9 @@
     
     private CRUDSampleDbPersistencePanel configurationPanel;
     
-    public MavenCRUDSampleWizardIterator() {}
+    public MavenCRUDSampleWizardIterator() {
+        super(NbBundle.getMessage(MavenCRUDSampleWizardIterator.class, 
"Templates/Project/Samples/Maven/MavenCRUDSample"));
+    }
     
     public static MavenCRUDSampleWizardIterator createIterator() {
         return new MavenCRUDSampleWizardIterator();
diff --git 
a/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardIterator.java
 
b/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardIterator.java
--- 
a/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardIterator.java
+++ 
b/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardIterator.java
@@ -75,11 +75,21 @@
     private int index;
     private WizardDescriptor.Panel[] panels;
     protected WizardDescriptor wiz;
+    private final String title;
     
-    public MavenSamplesWizardIterator() {}
+    public MavenSamplesWizardIterator(String title) {
+        this.title = title;
+    }
     
-    public static MavenSamplesWizardIterator createIterator() {
-        return new MavenSamplesWizardIterator();
+    public static MavenSamplesWizardIterator createCalculatorIterator() {
+        return new 
MavenSamplesWizardIterator(NbBundle.getMessage(MavenSamplesWizardIterator.class,
 "Templates/Project/Samples/Maven/MavenCalculator"));
+    }
+    
+    public static MavenSamplesWizardIterator 
createCalculatorClientIterator() {
+        return new 
MavenSamplesWizardIterator(NbBundle.getMessage(MavenSamplesWizardIterator.class,
 "Templates/Project/Samples/Maven/MavenCalculatorClient"));
+    }
+    public static MavenSamplesWizardIterator createScrumToysIterator() {
+        return new 
MavenSamplesWizardIterator(NbBundle.getMessage(MavenSamplesWizardIterator.class,
 "Templates/Project/Samples/Maven/MavenScrumToys"));
     }
     
     protected WizardDescriptor.Panel[] createPanels() {
@@ -147,6 +157,7 @@
     @Override
     public void initialize(WizardDescriptor wiz) {
         this.wiz = wiz;
+        wiz.putProperty ("NewProjectWizard_Title", title); // NOI18N        
         index = 0;
         panels = createPanels();
         // Make sure list of steps is accurate.
diff --git 
a/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardPanel.java
 
b/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardPanel.java
--- 
a/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardPanel.java
+++ 
b/maven.samples/src/org/netbeans/modules/maven/samples/MavenSamplesWizardPanel.java
@@ -76,7 +76,6 @@
         if (component == null) {
             component = new MavenSamplesPanelVisual(this);
             
component.setName(NbBundle.getMessage(MavenSamplesWizardPanel.class, 
"LBL_CreateProjectStep"));
-            component.putClientProperty("NewProjectWizard_Title", 
NbBundle.getMessage(MavenSamplesWizardPanel.class, "LBL_TXT_NewJ2EESample"));
         }
         return component;
     }
diff --git a/maven.samples/src/org/netbeans/modules/maven/samples/layer.xml 
b/maven.samples/src/org/netbeans/modules/maven/samples/layer.xml
--- a/maven.samples/src/org/netbeans/modules/maven/samples/layer.xml
+++ b/maven.samples/src/org/netbeans/modules/maven/samples/layer.xml
@@ -10,21 +10,21 @@
                         
                     <file name="MavenCalculator" url="MavenCalculator.zip">
                         <attr name="SystemFileSystem.localizingBundle" 
stringvalue="org.netbeans.modules.maven.samples.Bundle"/>
-                        <attr name="instantiatingIterator" 
methodvalue="org.netbeans.modules.maven.samples.MavenSamplesWizardIterator.createIterator"/>
+                        <attr name="instantiatingIterator" 
methodvalue="org.netbeans.modules.maven.samples.MavenSamplesWizardIterator.createCalculatorIterator"/>
                         <attr name="instantiatingWizardURL" 
urlvalue="nbresloc:/org/netbeans/modules/maven/samples/descriptions/Maven2Calculator.html"/>
                         <attr name="SystemFileSystem.icon" 
urlvalue="nbresloc:/org/netbeans/modules/maven/samples/Maven2SamplesIcon.gif"/>
                         <attr name="template" boolvalue="true"/>
                     </file>
                     <file name="MavenCalculatorClient" 
url="MavenCalculatorClient.zip">
                         <attr name="SystemFileSystem.localizingBundle" 
stringvalue="org.netbeans.modules.maven.samples.Bundle"/>
-                        <attr name="instantiatingIterator" 
methodvalue="org.netbeans.modules.maven.samples.MavenSamplesWizardIterator.createIterator"/>
+                        <attr name="instantiatingIterator" 
methodvalue="org.netbeans.modules.maven.samples.MavenSamplesWizardIterator.createCalculatorClientIterator"/>
                         <attr name="instantiatingWizardURL" 
urlvalue="nbresloc:/org/netbeans/modules/maven/samples/descriptions/Maven2CalculatorClient.html"/>
                         <attr name="SystemFileSystem.icon" 
urlvalue="nbresloc:/org/netbeans/modules/maven/samples/Maven2SamplesIcon.gif"/>
                         <attr name="template" boolvalue="true"/>
                     </file>
                     <file name="MavenScrumToys" url="MavenScrumToys.zip">
                         <attr name="SystemFileSystem.localizingBundle" 
stringvalue="org.netbeans.modules.maven.samples.Bundle"/>
-                        <attr name="instantiatingIterator" 
methodvalue="org.netbeans.modules.maven.samples.MavenSamplesWizardIterator.createIterator"/>
+                        <attr name="instantiatingIterator" 
methodvalue="org.netbeans.modules.maven.samples.MavenSamplesWizardIterator.createScrumToysIterator"/>
                         <attr name="instantiatingWizardURL" 
urlvalue="nbresloc:/org/netbeans/modules/maven/samples/descriptions/MavenScrumToys.html"/>
                         <attr name="SystemFileSystem.icon" 
urlvalue="nbresloc:/org/netbeans/modules/maven/samples/Maven2SamplesIcon.gif"/>
                         <attr name="template" boolvalue="true"/>
diff --git a/maven/manifest.mf b/maven/manifest.mf
--- a/maven/manifest.mf
+++ b/maven/manifest.mf
@@ -1,6 +1,6 @@
 Manifest-Version: 1.0
 OpenIDE-Module: org.netbeans.modules.maven/2
-OpenIDE-Module-Specification-Version: 2.62
+OpenIDE-Module-Specification-Version: 2.63
 OpenIDE-Module-Localizing-Bundle: 
org/netbeans/modules/maven/Bundle.properties
 OpenIDE-Module-Layer: org/netbeans/modules/maven/layer.xml
 AutoUpdate-Show-In-Client: false
diff --git 
a/maven/src/org/netbeans/modules/maven/api/archetype/ArchetypeWizards.java 
b/maven/src/org/netbeans/modules/maven/api/archetype/ArchetypeWizards.java
--- a/maven/src/org/netbeans/modules/maven/api/archetype/ArchetypeWizards.java
+++ b/maven/src/org/netbeans/modules/maven/api/archetype/ArchetypeWizards.java
@@ -112,14 +112,26 @@
      * @since 2.28
      * @see TemplateRegistration
      * @see #TEMPLATE_FOLDER
+     * @deprecated use the variant with template title name
      */
+    @Deprecated
     public static WizardDescriptor.InstantiatingIterator<?> 
definedArchetype(String groupId, String artifactId, String version, 
@NullAllowed String repository) {
+        return definedArchetype(groupId, artifactId, version, repository, 
null);
+    }
+    
+    /**
+     * Wizard iterator using a predetermined archetype.
+     * @since 2.63
+     * @see TemplateRegistration
+     * @see #TEMPLATE_FOLDER
+     */
+    public static WizardDescriptor.InstantiatingIterator<?> 
definedArchetype(String groupId, String artifactId, String version, 
@NullAllowed String repository, String title) {
         Archetype arch = new Archetype();
         arch.setGroupId(groupId);
         arch.setArtifactId(artifactId);
         arch.setVersion(version);
         arch.setRepository(repository);
-        return new MavenWizardIterator(arch);
+        return new MavenWizardIterator(arch, title);
     }
 
 }
diff --git 
a/maven/src/org/netbeans/modules/maven/newproject/BasicWizardPanel.java 
b/maven/src/org/netbeans/modules/maven/newproject/BasicWizardPanel.java
--- a/maven/src/org/netbeans/modules/maven/newproject/BasicWizardPanel.java
+++ b/maven/src/org/netbeans/modules/maven/newproject/BasicWizardPanel.java
@@ -42,6 +42,7 @@
 
 package org.netbeans.modules.maven.newproject;
 
+import javax.swing.JComponent;
 import javax.swing.event.ChangeListener;
 import org.netbeans.api.annotations.common.NullAllowed;
 import org.netbeans.modules.maven.api.archetype.Archetype;
@@ -105,6 +106,12 @@
     public @Override void readSettings(WizardDescriptor settings) {
         wizardDescriptor = settings;
         getComponent().read(wizardDescriptor);
+        // XXX hack, TemplateWizard in final setTemplateImpl() forces new 
wizard's title
+        // this name is used in NewProjectWizard to modify the title
+//        Object substitute = getComponent().getClientProperty 
("NewProjectWizard_Title"); // NOI18N
+//        if (substitute != null) {
+//            wizardDescriptor.putProperty ("NewProjectWizard_Title", 
"XXX"); // NOI18N
+//        }        
     }
     
     public @Override void storeSettings(WizardDescriptor settings) {
diff --git 
a/maven/src/org/netbeans/modules/maven/newproject/ExistingWizardIterator.java 
b/maven/src/org/netbeans/modules/maven/newproject/ExistingWizardIterator.java
--- 
a/maven/src/org/netbeans/modules/maven/newproject/ExistingWizardIterator.java
+++ 
b/maven/src/org/netbeans/modules/maven/newproject/ExistingWizardIterator.java
@@ -124,6 +124,8 @@
     @Override
     public void initialize(WizardDescriptor wiz) {
         index = 0;
+        wiz.putProperty ("NewProjectWizard_Title", template_existing()); // 
NOI18N
+        
         panels = createPanels();
         // Make sure list of steps is accurate.
         String[] steps = createSteps();
diff --git 
a/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java 
b/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java
--- a/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java
+++ b/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java
@@ -77,25 +77,27 @@
     private transient WizardDescriptor wiz;
     private final Archetype archetype;
     private final AtomicBoolean hasNextCalled = new AtomicBoolean(); 
//#216236    
+    private final String titlename;
 
     public MavenWizardIterator() {
-        this(null);
+        this(null, null);
     }
     
-    public MavenWizardIterator(Archetype archetype) {
+    public MavenWizardIterator(Archetype archetype, String titleName) {
         this.archetype = archetype;
+        this.titlename = titleName;
     }
 
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=100, displayName="#LBL_Maven_Quickstart_Archetype", 
iconBase="org/netbeans/modules/maven/resources/jaricon.png", 
description="quickstart.html")
     @Messages("LBL_Maven_Quickstart_Archetype=Java Application")
     public static WizardDescriptor.InstantiatingIterator<?> quickstart() {
-        return 
ArchetypeWizards.definedArchetype("org.apache.maven.archetypes", 
"maven-archetype-quickstart", "1.1", null);
+        return 
ArchetypeWizards.definedArchetype("org.apache.maven.archetypes", 
"maven-archetype-quickstart", "1.1", null, LBL_Maven_Quickstart_Archetype());
     }
 
     @TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, 
position=980, displayName="#LBL_Maven_POM_Archetype", 
iconBase="org/netbeans/modules/maven/resources/Maven2Icon.gif", 
description="pom-root.html")
     @Messages("LBL_Maven_POM_Archetype=POM Project")
     public static WizardDescriptor.InstantiatingIterator<?> pomRoot() {
-        return 
ArchetypeWizards.definedArchetype("org.codehaus.mojo.archetypes", "pom-root", 
"1.1", null);
+        return 
ArchetypeWizards.definedArchetype("org.codehaus.mojo.archetypes", "pom-root", 
"1.1", null, LBL_Maven_POM_Archetype());
     }
 
     public @Override Set<FileObject> instantiate() throws IOException {
@@ -105,6 +107,9 @@
     @Override
     public void initialize(WizardDescriptor wiz) {
         this.wiz = wiz;
+        if (titlename != null) {
+            wiz.putProperty ("NewProjectWizard_Title", titlename); // NOI18N 
       
+        }
         index = 0;
         ValidationGroup vg = ValidationGroup.create(new 
WizardDescriptorAdapter(wiz));
         panels = new ArrayList<WizardDescriptor.Panel<WizardDescriptor>>();

[hg] main-silver: #221990 proper title for maven project wizards

Milos Kleint 11/20/2012

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close