[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Mon Mar 29 19:46:19 UTC 2010
gordonp
Mon Mar 29 15:46:18 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv10092/src/main/ca/ucalgary/seahawk/gui
Modified Files:
FileAndTextTransferHandler.java
Log Message:
Pushed debug statements to proper logging
moby-live/Java/src/main/ca/ucalgary/seahawk/gui FileAndTextTransferHandler.java,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FileAndTextTransferHandler.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FileAndTextTransferHandler.java 2009/06/09 19:33:15 1.9
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FileAndTextTransferHandler.java 2010/03/29 19:46:18 1.10
@@ -70,7 +70,9 @@
URL u = HTMLUtils.checkForURLShortcut(file);
// Was it a shortcut file after all?
if(u != null){
- System.err.println("Dropped item appears to be a URL shortcut...");
+ if(Boolean.getBoolean("moby.debug")){
+ System.err.println("Dropped item appears to be a URL shortcut...");
+ }
if(clipboard != null){
clipboard.addCollectionData(u);
}
@@ -80,7 +82,9 @@
}
// Any other type of file is loaded as-is
else{
- System.err.println("Dropped item appears to be a file...");
+ if(Boolean.getBoolean("moby.debug")){
+ System.err.println("Dropped item appears to be a file...");
+ }
if(clipboard != null){
clipboard.addCollectionData(file.toURI().toURL());
}
@@ -106,7 +110,9 @@
// Not a URL, oh well, move on to string handling...
}
if(u != null){
- System.err.println("Dropped item appears to be a URL...");
+ if(Boolean.getBoolean("moby.debug")){
+ System.err.println("Dropped item appears to be a URL...");
+ }
if(clipboard != null){
clipboard.addCollectionData(u);
}
@@ -127,7 +133,9 @@
// the proper object to load
MobyContentInstance content = HTMLUtils.checkForMobyXML(text);
if(content != null){
- System.err.println("Dropped item appears to be moby xml...");
+ if(Boolean.getBoolean("moby.debug")){
+ System.err.println("Dropped item appears to be moby xml...");
+ }
if(clipboard != null){
clipboard.addCollectionData(content);
}
More information about the MOBY-guts
mailing list