[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Sat Apr 30 20:31:56 EDT 2011


gordonp
Sat Apr 30 20:31:55 EDT 2011
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv10719/src/main/ca/ucalgary/seahawk/gui

Modified Files:
	MobyContentClipboard.java 
Log Message:
Fixed paste problem of 'for each' menu items
moby-live/Java/src/main/ca/ucalgary/seahawk/gui MobyContentClipboard.java,1.12,1.13
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentClipboard.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentClipboard.java	2011/02/03 21:46:40	1.12
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentClipboard.java	2011/05/01 00:31:55	1.13
@@ -200,7 +200,13 @@
 	if(!query.containsKey(CLIPBOARD_COLLECTION_NAME)){
 	    query.put(CLIPBOARD_COLLECTION_NAME, collection);
 	}
-	if(mdi instanceof MobyDataObjectSet){
+	// See if there was a "for each" sent to the clipboard
+	if(mdi instanceof MobyContentCreator){
+	    System.err.println("GOT MobyContentCreator in clipboard paste");
+	    MobyContentInstance mci = ((MobyContentCreator) mdi).getAllContents(mdi.getName());
+	    collection.addAll(mci.retrieveObjects());
+	}
+	else if(mdi instanceof MobyDataObjectSet){
 	    // Flatten out the set, as a MOBY set cannot contain other sets
 	    collection.addAll((MobyDataObjectSet) mdi);
 	}



More information about the MOBY-guts mailing list