airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1349861 - in /incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya: gui/XBayaGUI.java menues/run/RunMenuItem.java menues/xbaya/XBayaMenuItem.java
Date Wed, 13 Jun 2012 14:08:16 GMT
Author: samindaw
Date: Wed Jun 13 14:08:15 2012
New Revision: 1349861

URL: http://svn.apache.org/viewvc?rev=1349861&view=rev
Log:
removing tab change listener for save & monitor toolbar buttons & not updating title
when worlkflow save state changes

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

Modified: incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/gui/XBayaGUI.java
URL: http://svn.apache.org/viewvc/incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/gui/XBayaGUI.java?rev=1349861&r1=1349860&r2=1349861&view=diff
==============================================================================
--- incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/gui/XBayaGUI.java
(original)
+++ incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/gui/XBayaGUI.java
Wed Jun 13 14:08:15 2012
@@ -325,7 +325,8 @@ public class XBayaGUI implements EventLi
                 case OUTPUT_PORT_SELECTED:
                     // Do nothing
                 case WORKFLOW_CHANGED:
-                	updateTabTitle(graphCanvas,graphCanvas.getWorkflow());
+                	//temporary disable changing tab title to reflec whether the workflow has
changed or not
+//                	updateTabTitle(graphCanvas,graphCanvas.getWorkflow());
                 	setFrameName(workflow.getName());
                 	for (ChangeListener listener:tabChangeListeners){
                 		try{

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=1349861&r1=1349860&r2=1349861&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:08:15 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);
+//					}
+//                });
             }
         });
 	}

Modified: incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/xbaya/XBayaMenuItem.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/xbaya/XBayaMenuItem.java?rev=1349861&r1=1349860&r2=1349861&view=diff
==============================================================================
--- incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/xbaya/XBayaMenuItem.java
(original)
+++ incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/menues/xbaya/XBayaMenuItem.java
Wed Jun 13 14:08:15 2012
@@ -455,12 +455,12 @@ public class XBayaMenuItem implements XB
             	while(engine.getGUI()==null){
             		Thread.yield();
             	}
-                engine.getGUI().addWorkflowTabChangeListener(new ChangeListener(){
-					@Override
-					public void stateChanged(ChangeEvent event) {
-						toolbarButtonSave.setEnabled(isSaveShouldBeActive());						
-					}
-                });
+//                engine.getGUI().addWorkflowTabChangeListener(new ChangeListener(){
+//					@Override
+//					public void stateChanged(ChangeEvent event) {
+//						toolbarButtonSave.setEnabled(isSaveShouldBeActive());						
+//					}
+//                });
             }
         });
     }
@@ -591,5 +591,8 @@ public class XBayaMenuItem implements XB
 		toolbarButtonNew.setVisible(config.getXbayaExecutionMode()==XBayaExecutionMode.IDE);
 		toolbarButtonSave.setVisible(config.getXbayaExecutionMode()==XBayaExecutionMode.IDE);
 		toolbarButtonOpen.setVisible(config.getXbayaExecutionMode()==XBayaExecutionMode.IDE);
+		
+		//temporary remove this - testing cpu usage
+		toolbarButtonSave.setVisible(false);
 	}
 }
\ No newline at end of file



Mime
View raw message