[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Mon Apr 26 16:27:31 UTC 2010


gordonp
Mon Apr 26 12:27:31 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv25611/src/main/ca/ucalgary/seahawk/gui

Modified Files:
	MobyServicesGUI.java 
Log Message:
Better UI refresh
moby-live/Java/src/main/ca/ucalgary/seahawk/gui MobyServicesGUI.java,1.23,1.24
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyServicesGUI.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyServicesGUI.java	2010/04/24 17:23:26	1.23
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyServicesGUI.java	2010/04/26 16:27:31	1.24
@@ -554,6 +554,7 @@
 	for(int i = 0; i < submenus.length; i++){
 	    addServicesToSubMenu(submenus[i], serviceAssocObjects[i], handler);
 	    addSearchItem(submenus[i], 1);
+	    refreshMenu(submenus[i]);
 	}
     }
 
@@ -755,6 +756,7 @@
 
 	addServicesToSubMenu(submenu, serviceAssocObject, handler);
         addSearchItem(submenu, 0);
+	refreshMenu(submenu);
     }
 
     protected synchronized void addServicesToSubMenu(JMenu submenu, MobyDataServiceAssocInstance msadi){
@@ -1121,7 +1123,9 @@
 	    }
 	    submenu.add(mobyItem);
 	}
+    }
 
+    protected void refreshMenu(JMenu submenu){
 	// Causes resizing based on new items
 	if(submenu.isPopupMenuVisible()){
 	    submenu.setPopupMenuVisible(false);




More information about the MOBY-guts mailing list