Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-06-27 12:34:18 -0400
committerMilos Kleint2011-06-27 12:34:18 -0400
commit2515826d0238c64a30cb709511079279f866f20c (patch)
treeda39a340bd64c7936d7c7a38a5cb8c507e892b34 /org.eclipse.m2e.editor.xml
parent20333002e8e521f399d661449f4d05ba82447e2a (diff)
downloadm2e-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
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java5
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) {

Back to the top