airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1349518 - in /incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya: gui/XBayaGUI.java invoker/MsgBoxWsaResponsesCorrelator.java
Date Tue, 12 Jun 2012 20:51:49 GMT
Author: lahiru
Date: Tue Jun 12 20:51:49 2012
New Revision: 1349518

URL: http://svn.apache.org/viewvc?rev=1349518&view=rev
Log:
fixing xbaya cpu utilization issue.

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/invoker/MsgBoxWsaResponsesCorrelator.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=1349518&r1=1349517&r2=1349518&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
Tue Jun 12 20:51:49 2012
@@ -260,38 +260,38 @@ public class XBayaGUI implements EventLi
         GraphCanvas newGraphCanvas = new GraphCanvas(this.engine);
         this.graphCanvases.add(newGraphCanvas);
         this.graphTabbedPane.addTab(newGraphCanvas.getWorkflow().getName(), newGraphCanvas.getSwingComponent());
-        final int index = graphTabbedPane.getTabCount()-1;
-		TabLabelButton tabLabelButton = new TabLabelButton(graphTabbedPane,"Close this workflow");
-		graphTabbedPane.setTabComponentAt(index, tabLabelButton); 
-		tabLabelButton.setCloseButtonListener(new ActionListener(){
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				removeGraphCanvasFromIndex(index);				
-			}
-		});
-        graphTabbedPane.addContainerListener(new ContainerListener(){
-
-			@Override
-			public void componentAdded(ContainerEvent event) {
-			}
-
-			@Override
-			public void componentRemoved(ContainerEvent event) {
-				List<GraphCanvas> graphCanvases = engine.getGUI().getGraphCanvases();
-				for (GraphCanvas graphCanvas : graphCanvases) {
-					if (graphCanvas.getSwingComponent()==event.getComponent()){
-						if (graphCanvas.isWorkflowChanged()){
-							setFocus(graphCanvas);
-							if (JOptionPane.showConfirmDialog(null, "The workflow '"+graphCanvas.getWorkflow().getName()+"'
has been modified. Save changes?", "Save Workflow", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION){
-								graphFiler.saveWorkflow(graphCanvas);
-							}
-						}
-						break;
-					}
-				}
-			}
-        	
-        });
+//        final int index = graphTabbedPane.getTabCount()-1;
+//		TabLabelButton tabLabelButton = new TabLabelButton(graphTabbedPane,"Close this workflow");
+//		graphTabbedPane.setTabComponentAt(index, tabLabelButton);
+//		tabLabelButton.setCloseButtonListener(new ActionListener(){
+//			@Override
+//			public void actionPerformed(ActionEvent e) {
+//				removeGraphCanvasFromIndex(index);
+//			}
+//		});
+//        graphTabbedPane.addContainerListener(new ContainerListener(){
+//
+//			@Override
+//			public void componentAdded(ContainerEvent event) {
+//			}
+//
+//			@Override
+//			public void componentRemoved(ContainerEvent event) {
+//				List<GraphCanvas> graphCanvases = engine.getGUI().getGraphCanvases();
+//				for (GraphCanvas graphCanvas : graphCanvases) {
+//					if (graphCanvas.getSwingComponent()==event.getComponent()){
+//						if (graphCanvas.isWorkflowChanged()){
+//							setFocus(graphCanvas);
+//							if (JOptionPane.showConfirmDialog(null, "The workflow '"+graphCanvas.getWorkflow().getName()+"'
has been modified. Save changes?", "Save Workflow", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION){
+//								graphFiler.saveWorkflow(graphCanvas);
+//							}
+//						}
+//						break;
+//					}
+//				}
+//			}
+//
+//        });
         if (focus) {
             setFocus(newGraphCanvas);
         }
@@ -314,7 +314,7 @@ public class XBayaGUI implements EventLi
                             updateTabTitle(graphCanvas, workflow);
 
                             // Change the name of the frame.
-                            setFrameName(name);
+//                            setFrameName(name);
                         }
 
 						
@@ -634,7 +634,7 @@ public class XBayaGUI implements EventLi
 				public void actionPerformed(ActionEvent arg0) {
 					componentTabbedPane.remove(jcrBrowserPanel);
 				}
-				
+
 			});
 			this.componentTabbedPane.setTabComponentAt(index, tabLabelButton);
 		}

Modified: incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/MsgBoxWsaResponsesCorrelator.java
URL: http://svn.apache.org/viewvc/incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/MsgBoxWsaResponsesCorrelator.java?rev=1349518&r1=1349517&r2=1349518&view=diff
==============================================================================
--- incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/MsgBoxWsaResponsesCorrelator.java
(original)
+++ incubator/airavata/branches/0.3-incubating-snapshot/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/MsgBoxWsaResponsesCorrelator.java
Tue Jun 12 20:51:49 2012
@@ -90,7 +90,7 @@ public class MsgBoxWsaResponsesCorrelato
     public void run() {
         while(true) {
             try {
-                Iterator<OMElement> omElementIterator = msgBoxClient.takeMessagesFromMsgBox(msgBoxAddr,
5000L);
+                Iterator<OMElement> omElementIterator = msgBoxClient.takeMessagesFromMsgBox(msgBoxAddr,
30000L);
                 List<XmlElement> xmlArrayList = new ArrayList<XmlElement>();
                 while (omElementIterator.hasNext()){
                     OMElement next = omElementIterator.next();



Mime
View raw message