Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2008-05-27 19:57:27 -0400
committerpelder2008-05-27 19:57:27 -0400
commit0e7ae4f5d6bcfa4c016ebd27bab8442939443514 (patch)
treeb25074436f51ee3c49669a93e6510c5835d3d70b
parent6b47d8b5efddb46a24fd061c71f05fc335d062fe (diff)
downloadorg.eclipse.jet-0e7ae4f5d6bcfa4c016ebd27bab8442939443514.tar.gz
org.eclipse.jet-0e7ae4f5d6bcfa4c016ebd27bab8442939443514.tar.xz
org.eclipse.jet-0e7ae4f5d6bcfa4c016ebd27bab8442939443514.zip
[234231] TVT34: stack overflow creating JET Transformation Project
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage1.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage1.java b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage1.java
index adc382d..c9aa50f 100644
--- a/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage1.java
+++ b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage1.java
@@ -53,7 +53,6 @@ public class NewJETProjectPage1 extends NewJETProjectPage1Controls {
}
protected boolean validatePage() {
- // TODO Auto-generated method stub
final boolean parentValid = super.validatePage();
if(!parentValid) {
return false;
@@ -61,8 +60,9 @@ public class NewJETProjectPage1 extends NewJETProjectPage1Controls {
final String id = getBaseID();
if(!id.equals(lastBaseID)) {
- txtDefJavaPackage.setText(id + ".compiled"); //$NON-NLS-1$
lastBaseID = id;
+ final String newDefPackage = id + ".compiled"; //$NON-NLS-1$
+ txtDefJavaPackage.setText(newDefPackage);
}
if(!validateFolder(txtTemplateFolder)) {
@@ -75,7 +75,7 @@ public class NewJETProjectPage1 extends NewJETProjectPage1Controls {
return false;
}
final String defaultJavaPackage = getDefaultJavaPackage();
- IStatus status = JavaConventions.validatePackageName(defaultJavaPackage);
+ final IStatus status = validateJavaPackage(defaultJavaPackage);
if(!status.isOK()) {
setErrorMessage(status.getMessage());
return false;
@@ -84,6 +84,15 @@ public class NewJETProjectPage1 extends NewJETProjectPage1Controls {
}
/**
+ * @param defaultJavaPackage
+ * @return
+ */
+ private IStatus validateJavaPackage(final String defaultJavaPackage) {
+ IStatus status = JavaConventions.validatePackageName(defaultJavaPackage);
+ return status;
+ }
+
+ /**
* @param folderField
*/
private boolean validateFolder(final Text folderField) {

Back to the top