summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNan Li2013-01-09 18:00:53 (EST)
committerNeil Hauge2013-01-09 18:01:53 (EST)
commit0c882a4ac166681870ae002ec9045de56a1b8a1e (patch)
tree5aaf23c8ef10be7e6a67025c43b013d0ce0f10ba
parent27029614d264383fbf338912e1b76fe5be83d974 (diff)
downloadwebtools.dali-0c882a4ac166681870ae002ec9045de56a1b8a1e.zip
webtools.dali-0c882a4ac166681870ae002ec9045de56a1b8a1e.tar.gz
webtools.dali-0c882a4ac166681870ae002ec9045de56a1b8a1e.tar.bz2
394485 - disable remove button to avoid NPEv201301092313
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/TableAssociationsWizardPage.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/TableAssociationsWizardPage.java b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/TableAssociationsWizardPage.java
index d7a9615..a8410c8 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/TableAssociationsWizardPage.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/TableAssociationsWizardPage.java
@@ -22,7 +22,6 @@ import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.IStringButtonAdapter;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonDialogField;
-import org.eclipse.jface.resource.LocalResourceManager;
import org.eclipse.jface.resource.ResourceManager;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
@@ -165,7 +164,10 @@ public class TableAssociationsWizardPage extends WizardPage {
hideAssociationDetail();
}
}
- }
+ if (associationList.selectedAssociationFigure == null) {
+ deleteAssociationLink.setEnabled(false);
+ }
+ }
});
deleteAssociationLink.setEnabled(false);