airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1349876 - /incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
Date Wed, 13 Jun 2012 14:31:30 GMT
Author: samindaw
Date: Wed Jun 13 14:31:29 2012
New Revision: 1349876

URL: http://svn.apache.org/viewvc?rev=1349876&view=rev
Log:
adding tab change listner for run/monitor again

Modified:
    incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java

Modified: incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
URL: http://svn.apache.org/viewvc/incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java?rev=1349876&r1=1349875&r2=1349876&view=diff
==============================================================================
--- incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
(original)
+++ incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/run/RunMenuItem.java
Wed Jun 13 14:31:29 2012
@@ -178,17 +178,17 @@ public class RunMenuItem  implements Eve
             	while(engine.getGUI()==null){
             		Thread.yield();
             	}
-//                engine.getGUI().addWorkflowTabChangeListener(new ChangeListener(){
-//					@Override
-//					public void stateChanged(ChangeEvent event) {
-//						boolean runShouldBeActive = isRunShouldBeActive();
-//						toolbarButtonRunWorkflow.setEnabled(runShouldBeActive);	
-//						launchDynamicWorkflowItem.setEnabled(runShouldBeActive);
-//						launchXBayaInterpreterItem.setEnabled(runShouldBeActive);
-//                        launchGridChemWorkflowItem.setEnabled(false);
-//                        launchAndSaveInGridChemWorkflowItem.setEnabled(false);
-//					}
-//                });
+                engine.getGUI().addWorkflowTabChangeListener(new ChangeListener(){
+					@Override
+					public void stateChanged(ChangeEvent event) {
+						boolean runShouldBeActive = isRunShouldBeActive();
+						toolbarButtonRunWorkflow.setEnabled(runShouldBeActive);	
+						launchDynamicWorkflowItem.setEnabled(runShouldBeActive);
+						launchXBayaInterpreterItem.setEnabled(runShouldBeActive);
+                        launchGridChemWorkflowItem.setEnabled(false);
+                        launchAndSaveInGridChemWorkflowItem.setEnabled(false);
+					}
+                });
             }
         });
 	}



Mime
View raw message