Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2014-08-07 12:46:19 -0400
committerIgor Fedorenko2014-08-07 12:46:19 -0400
commit9ae003699b0b68aea5e0ce91fb452a9eb7602b51 (patch)
tree4bbf9b44eb777f719ece011abe73901c8aa1a946
parentc5ef7307bfcdfc78fe39320df2af2f93351e6ae7 (diff)
downloadm2e-core-9ae003699b0b68aea5e0ce91fb452a9eb7602b51.tar.gz
m2e-core-9ae003699b0b68aea5e0ce91fb452a9eb7602b51.tar.xz
m2e-core-9ae003699b0b68aea5e0ce91fb452a9eb7602b51.zip
fixed MavenRuntimeSelector disabled state visuals
Change-Id: If07ea4ab5baf7768f9db675c3eaab7349176af28 Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenRuntimeSelector.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenRuntimeSelector.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenRuntimeSelector.java
index fbea9426..46a0c6b7 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenRuntimeSelector.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenRuntimeSelector.java
@@ -54,6 +54,8 @@ public class MavenRuntimeSelector extends Composite {
ComboViewer runtimeComboViewer;
+ private Button configureRuntimesButton;
+
private static MavenRuntimeManagerImpl getRuntimeManager() {
return MavenPluginActivator.getDefault().getMavenRuntimeManager();
}
@@ -128,7 +130,7 @@ public class MavenRuntimeSelector extends Composite {
// ignore, this only happens inside windowbuilder
}
- Button configureRuntimesButton = new Button(this, SWT.NONE);
+ configureRuntimesButton = new Button(this, SWT.NONE);
configureRuntimesButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
configureRuntimesButton.setText(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_btnConfigure);
configureRuntimesButton.addSelectionListener(new SelectionAdapter() {
@@ -190,4 +192,11 @@ public class MavenRuntimeSelector extends Composite {
AbstractMavenRuntime runtime = getSelectedRuntime();
configuration.setAttribute(MavenLaunchConstants.ATTR_RUNTIME, runtime.getName());
}
+
+ @Override
+ public void setEnabled(boolean enabled) {
+ super.setEnabled(enabled);
+ runtimeComboViewer.getCombo().setEnabled(enabled);
+ configureRuntimesButton.setEnabled(enabled);
+ }
}

Back to the top