1 19 20 package org.netbeans.modules.apisupport.project.ui.wizard; 21 22 import org.openide.WizardDescriptor; 23 24 30 final class NewModuleProjectData { 31 32 private WizardDescriptor settings; 33 private final int wizardType; 34 35 private boolean netBeansOrg; 36 private boolean standalone = true; private String projectName; 38 private String projectLocation; 39 private String projectFolder; 40 private String suiteRoot; 41 private boolean mainProject; 42 private String codeNameBase; 43 private String platformID; 44 private String bundle; 45 private String layer; 46 private String projectDisplayName; 47 private int moduleCounter; 48 private int suiteCounter; 49 50 53 NewModuleProjectData(int wizardType) { 54 this.wizardType = wizardType; 55 } 56 57 void setSettings(WizardDescriptor settings) { 58 this.settings = settings; 59 } 60 61 WizardDescriptor getSettings() { 62 assert settings != null; 63 return settings; 64 } 65 66 void setStandalone(boolean standalone) { 67 this.standalone = standalone; 68 } 69 70 void setNetBeansOrg(boolean netBeansOrg) { 71 this.netBeansOrg = netBeansOrg; 72 } 73 74 boolean isNetBeansOrg() { 75 return netBeansOrg; 76 } 77 78 boolean isStandalone() { 79 return standalone; 80 } 81 82 boolean isSuiteComponent() { 83 return !isNetBeansOrg() && !isStandalone(); 84 } 85 86 String getProjectName() { 87 return projectName; 88 } 89 90 void setProjectName(String projectName) { 91 this.projectName = projectName; 92 } 93 94 String getProjectLocation() { 95 return projectLocation; 96 } 97 98 void setProjectLocation(String projectLocation) { 99 this.projectLocation = projectLocation; 100 } 101 102 String getProjectFolder() { 103 return projectFolder; 104 } 105 106 void setProjectFolder(String projectFolder) { 107 this.projectFolder = projectFolder; 108 } 109 110 String getSuiteRoot() { 111 return suiteRoot; 112 } 113 114 void setSuiteRoot(String suiteRoot) { 115 this.suiteRoot = suiteRoot; 116 } 117 118 protected boolean isMainProject() { 119 return mainProject; 120 } 121 122 protected void setMainProject(boolean mainProject) { 123 this.mainProject = mainProject; 124 } 125 126 String getCodeNameBase() { 127 return codeNameBase; 128 } 129 130 void setCodeNameBase(String codeNameBase) { 131 this.codeNameBase = codeNameBase; 132 } 133 134 String getPlatformID() { 135 return platformID; 136 } 137 138 void setPlatformID(String platformID) { 139 this.platformID = platformID; 140 } 141 142 String getBundle() { 143 return bundle; 144 } 145 146 void setBundle(String bundle) { 147 this.bundle = bundle; 148 } 149 150 String getLayer() { 151 return layer; 152 } 153 154 void setLayer(String layer) { 155 this.layer = layer; 156 } 157 158 String getProjectDisplayName() { 159 return projectDisplayName; 160 } 161 162 void setProjectDisplayName(String projectDisplayName) { 163 this.projectDisplayName = projectDisplayName; 164 } 165 166 int getModuleCounter() { 167 return moduleCounter; 168 } 169 170 void setModuleCounter(int counter) { 171 this.moduleCounter = counter; 172 } 173 174 int getSuiteCounter() { 175 return suiteCounter; 176 } 177 178 void setSuiteCounter(int counter) { 179 this.suiteCounter = counter; 180 } 181 182 int getWizardType() { 183 return wizardType; 184 } 185 186 } 187 | Popular Tags |