Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/jaxb
diff options
context:
space:
mode:
Diffstat (limited to 'jaxb')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/ui/internal/wizards/classesgen/ClassesGeneratorWizard.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/ui/internal/wizards/classesgen/ClassesGeneratorWizard.java b/jaxb/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/ui/internal/wizards/classesgen/ClassesGeneratorWizard.java
index e4d8959a41..0c870fcd83 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/ui/internal/wizards/classesgen/ClassesGeneratorWizard.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/ui/internal/wizards/classesgen/ClassesGeneratorWizard.java
@@ -107,7 +107,7 @@ public class ClassesGeneratorWizard
public void addPages() {
super.addPages();
- if (this.selection != null) {
+ if (this.selection != null && ! this.selection.isEmpty()) {
this.javaProject = this.getJavaProjectFromSelection(this.selection);
this.projectWizardPage = new JavaProjectWizardPage(this.javaProject);
@@ -239,7 +239,7 @@ public class ClassesGeneratorWizard
// ********** internal methods **********
public IJavaProject getJavaProjectFromSelection(IStructuredSelection selection) {
- if(selection == null) {
+ if(selection == null || selection.isEmpty()) {
return null;
}
Object firstElement = selection.getFirstElement();

Back to the top