[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Apr 26 15:23:59 UTC 2007


gordonp
Thu Apr 26 11:23:59 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv784/src/main/ca/ucalgary/seahawk/gui

Modified Files:
	MobyContentGUI.java 
Log Message:
Minor fix to allow tab close when 2 tabs and no clipboard showing
moby-live/Java/src/main/ca/ucalgary/seahawk/gui MobyContentGUI.java,1.7,1.8
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java	2007/04/18 15:57:00	1.7
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java	2007/04/26 15:23:59	1.8
@@ -846,7 +846,8 @@
 		    }
 
 		    if(tabbedPane.getComponentAt(index) == clipboard && tabbedPane.getTabCount() > 1 ||
-		       tabbedPane.getTabCount() > 2){
+		       tabbedPane.getTabCount() > 2 ||
+		       tabbedPane.indexOfComponent(clipboard) == -1 && tabbedPane.getTabCount() >= 2){
 			item = new JMenuItem(MobyContentGUI.CLOSE_OTHERS_OPTION);
 			item.setActionCommand(MobyContentGUI.CLOSE_OTHERS_OPTION);
 			item.addActionListener(gui);




More information about the MOBY-guts mailing list