[jbosstools-commits] JBoss Tools SVN: r39483 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Mar 13 17:15:34 EDT 2012
Author: scabanovich
Date: 2012-03-13 17:15:33 -0400 (Tue, 13 Mar 2012)
New Revision: 39483
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
Log:
JBIDE-11185
https://issues.jboss.org/browse/JBIDE-11185
Button Remove disabled until previous action is completed..
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2012-03-13 19:53:24 UTC (rev 39482)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2012-03-13 21:15:33 UTC (rev 39483)
@@ -985,6 +985,7 @@
* @author eskimo
*/
public abstract class BaseAction extends Action {
+ boolean busy;
SeamRuntime[] runtimes = new SeamRuntime[0];
@@ -1156,7 +1157,7 @@
@Override
protected void updateEnablement() {
- setEnabled(runtimes.length > 0);
+ setEnabled(runtimes.length > 0 && !busy);
}
/**
@@ -1166,12 +1167,16 @@
*/
@Override
public void run() {
+ busy = true;
+ updateEnablement();
for (SeamRuntime rt : runtimes) {
removeRuntime(rt);
}
tableView.refresh();
setDefaultRuntimes();
performApply();
+ busy = false;
+ updateEnablement();
}
private void removeRuntime(SeamRuntime r) {
More information about the jbosstools-commits
mailing list