[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Sat Jun 9 22:05:52 UTC 2007
gordonp
Sat Jun 9 18:05:52 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv5486/src/main/ca/ucalgary/seahawk/gui
Modified Files:
MobyContentPane.java
Log Message:
Removed debug statement
moby-live/Java/src/main/ca/ucalgary/seahawk/gui MobyContentPane.java,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.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/MobyContentPane.java 2007/06/08 20:30:21 1.9
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java 2007/06/09 22:05:52 1.10
@@ -237,6 +237,7 @@
return;
}
catch(Exception e){
+ e.printStackTrace();
status.setText("Note: There was an error transforming the MOBY data " +
"into presentation form, it may not be displayed correctly");
logger.error("Note: There was an error transforming the MOBY data " +
@@ -308,15 +309,16 @@
logger.error("Failure in loading MOBYfied binary data:\n" + e);
}
// Shouldn't get here unless either not binary, or the binary data load failed
- System.err.println("Is plain text");
editorPane.setContentType("text/html");
String body = getInputStreamContents(url.openStream());
// Is it already HTML?
if(body.toLowerCase().indexOf("<html") != -1){
resultBuffer = new StringBuffer(body);
+ editorPane.getDocument().putProperty(javax.swing.text.Document.StreamDescriptionProperty, url);
}
// Otherwise it needs preformatting to get a fixed width font
else{
+ //System.err.println("Is plain text");
resultBuffer = new StringBuffer("<html><body><pre>"+
body.replaceAll("&", "&").replaceAll("<","<")+
"</pre></body></html>");
More information about the MOBY-guts
mailing list