airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1220910 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
Date Mon, 19 Dec 2011 19:29:51 GMT
Author: samindaw
Date: Mon Dec 19 19:29:51 2011
New Revision: 1220910

URL: http://svn.apache.org/viewvc?rev=1220910&view=rev
Log:
Stop button + menu to stop a running workflow etc.

Modified:
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java?rev=1220910&r1=1220909&r2=1220910&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
Mon Dec 19 19:29:51 2011
@@ -416,8 +416,8 @@ public class RunMenuItem  implements Eve
 			@Override
 			public void run() {
 				while(true){
-					stopWorkflowButton.setEnabled(engine.getWorkflowInterpreter()!=null);
-					if (engine.getWorkflowInterpreter()==null){
+					stopWorkflowButton.setEnabled(isWorkflowRunning());
+					if (!isWorkflowRunning()){
 						pauseMonitorButton.setEnabled(false);
 						resumeMonitorButton.setEnabled(false);
 					}



Mime
View raw message