[hg] main-silver: #224014: Default path for new Module Suite pro...

  • From: Martin Kozeny < >
  • To:
  • Subject: [hg] main-silver: #224014: Default path for new Module Suite pro...
  • Date: Fri, 17 May 2013 14:47:53 -0700

changeset f9ceb0f1142f in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f9ceb0f1142f
description:
        #224014: Default path for new Module Suite project is not nested in 
firstly created suite.

diffstat:

 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.form
 |   2 +-
 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.java
 |  16 ++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diffs (52 lines):

diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.form
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.form
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.form
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.form
@@ -1,4 +1,4 @@
-<?xml version="1.1" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
 
 <Form version="1.5" maxVersion="1.6" 
type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
   <NonVisualComponents>
diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.java
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.java
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.java
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/TypeChooserPanelImpl.java
@@ -125,14 +125,16 @@
     }
 
     TypeChooserPanelImpl() {
-        validityId = ++validityCounter;
-        initComponents();
-        init();
+        init(null);
+    }
+
+    TypeChooserPanelImpl(Type wizardType) {
+        init(wizardType);
     }
     
     /** Creates new form TypeChooserPanel */
     TypeChooserPanelImpl(final WizardDescriptor settings, Type wizardType) {
-        this();
+        this(wizardType);
         this.settings = settings;
         this.wizardType = wizardType;
         storeInitialValuesToWD(getSettings());
@@ -314,13 +316,17 @@
         }
     }
     
-    private void init(){
+    private void init(Type wizardType){
+        validityId = ++validityCounter;
+        initComponents();
         BasicInfoVisualPanel.initPlatformCombo(platformValue);
         if (moduleSuiteValue.getItemCount() > 0) {
             restoreSelectedSuite();
+            if(wizardType != Type.APPLICATION && wizardType != Type.SUITE) {
             suiteComponent.setSelected(true);
         }
     }
+    }
     
     private void restoreSelectedSuite() {
         String preferredSuiteDir  = getPreferredSuiteDir();

[hg] main-silver: #224014: Default path for new Module Suite pro...

Martin Kozeny 05/17/2013

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