Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2012-02-13 20:04:57 +0000
committerkmoore2012-02-13 20:04:57 +0000
commit440b7062724e750b8a95844f54922de8cbcf1126 (patch)
tree0af75a9da362c417e8633dd4f6c3b811311cfb07 /common/plugins
parent0f4711c9c855b85e60ab4066361086a814056fbc (diff)
downloadwebtools.dali-440b7062724e750b8a95844f54922de8cbcf1126.tar.gz
webtools.dali-440b7062724e750b8a95844f54922de8cbcf1126.tar.xz
webtools.dali-440b7062724e750b8a95844f54922de8cbcf1126.zip
set the class name ad package name in the new class wizard using the fully qualified name
Diffstat (limited to 'common/plugins')
-rw-r--r--common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/widgets/ClassChooserPane.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/widgets/ClassChooserPane.java b/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/widgets/ClassChooserPane.java
index e41319e6d9..8c5f43ce4c 100644
--- a/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/widgets/ClassChooserPane.java
+++ b/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/widgets/ClassChooserPane.java
@@ -181,9 +181,10 @@ public abstract class ClassChooserPane<T extends Model> extends ChooserPane<T>
newClassWizardPage.init(selection);
newClassWizardPage.setSuperClass(getSuperclassName(), true);
newClassWizardPage.setSuperInterfaces(getSuperInterfaceNames(), true);
- if (!StringTools.stringIsEmpty(getClassName())) {
- newClassWizardPage.setTypeName(ClassName.getSimpleName(getClassName()), true);
- String packageName = ClassName.getPackageName(getClassName());
+ String qualifiedClassName = this.getFullyQualifiedClassName();
+ if (!StringTools.stringIsEmpty(qualifiedClassName)) {
+ newClassWizardPage.setTypeName(ClassName.getSimpleName(qualifiedClassName), true);
+ String packageName = ClassName.getPackageName(qualifiedClassName);
newClassWizardPage.setPackageFragment(getFirstJavaSourceFolder().getPackageFragment(packageName), true);
}
NewClassCreationWizard wizard = new NewClassCreationWizard(newClassWizardPage, false);

Back to the top