Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2008-10-29 21:40:57 +0000
committerkmoore2008-10-29 21:40:57 +0000
commit858a4f29238ac56018801c7d2ae8130e2af11a15 (patch)
tree0df4d924200e39b0b0949fb02f644b77a6503d86
parent4879bf298eb933194dd7801da1736ba489039d67 (diff)
downloadwebtools.dali-858a4f29238ac56018801c7d2ae8130e2af11a15.tar.gz
webtools.dali-858a4f29238ac56018801c7d2ae8130e2af11a15.tar.xz
webtools.dali-858a4f29238ac56018801c7d2ae8130e2af11a15.zip
no need to check getSubject() != null, already handled
-rw-r--r--jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/widgets/AddRemovePane.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/widgets/AddRemovePane.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/widgets/AddRemovePane.java
index 23f4bfc3a0..bdfc52026c 100644
--- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/widgets/AddRemovePane.java
+++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/widgets/AddRemovePane.java
@@ -637,10 +637,7 @@ public abstract class AddRemovePane<T extends Model> extends Pane<T>
* @category UpdateButtons
*/
protected void updateAddButton(Button addButton) {
- addButton.setEnabled(
- enabled &&
- getSubject() != null
- );
+ addButton.setEnabled(enabled);
}
/**

Back to the top