diff options
author | Milos Kleint | 2011-06-27 16:34:18 +0000 |
---|---|---|
committer | Milos Kleint | 2011-06-27 16:34:18 +0000 |
commit | 2515826d0238c64a30cb709511079279f866f20c (patch) | |
tree | da39a340bd64c7936d7c7a38a5cb8c507e892b34 | |
parent | 20333002e8e521f399d661449f4d05ba82447e2a (diff) | |
download | m2e-core-2515826d0238c64a30cb709511079279f866f20c.tar.gz m2e-core-2515826d0238c64a30cb709511079279f866f20c.tar.xz m2e-core-2515826d0238c64a30cb709511079279f866f20c.zip |
350439 button enablement logic is to be run after the button is actually created
-rw-r--r-- | org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java index 8543d4fe..2ed6ef84 100644 --- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java +++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java @@ -95,7 +95,6 @@ public class LifecycleMappingDialog extends Dialog implements ISelectionChangedL status.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, true, false)); pluginProject = locatePlugin(); - pomComposite.setSelection(new StructuredSelection(pluginProject)); return container; } @@ -103,6 +102,10 @@ public class LifecycleMappingDialog extends Dialog implements ISelectionChangedL protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); getButton(OK).setEnabled(false); + //350439 + //set selection here, because we listen on changes and update the ok button. + //but the button is not created until super is called here.. + pomComposite.setSelection(new StructuredSelection(pluginProject)); } public void selectionChanged(SelectionChangedEvent event) { |