[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Feb 8 16:59:58 UTC 2007


gordonp
Thu Feb  8 11:59:57 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv27169/main/ca/ucalgary/seahawk/gui

Modified Files:
	FileAndTextTransferHandler.java MobyContentClipboard.java 
	MobyContentGUI.java MobyContentHelpPane.java 
	MobyContentPane.java MobySaveDialog.java MobyServicesGUI.java 
	MobyShimmer.java 
Log Message:
Documentation updates
moby-live/Java/src/main/ca/ucalgary/seahawk/gui FileAndTextTransferHandler.java,1.2,1.3 MobyContentClipboard.java,1.1,1.2 MobyContentGUI.java,1.3,1.4 MobyContentHelpPane.java,1.1,1.2 MobyContentPane.java,1.3,1.4 MobySaveDialog.java,1.1,1.2 MobyServicesGUI.java,1.6,1.7 MobyShimmer.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FileAndTextTransferHandler.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FileAndTextTransferHandler.java	2006/12/15 04:40:36	1.2
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FileAndTextTransferHandler.java	2007/02/08 16:59:57	1.3
@@ -1,8 +1,3 @@
-/*
- * This class allows Seahawk to accept drop events from the native
- * windowing system, so dropped files, URLs and string can be loaded into 
- * tabs. Dragging from Seahawk tabs is not yet supported.
- */
 package ca.ucalgary.seahawk.gui;
 
 import org.biomoby.shared.MobyPrefixResolver;
@@ -21,6 +16,11 @@
 import javax.swing.*;
 import javax.swing.text.*;
 
+/*
+ * This class allows Seahawk to accept drop events from the native
+ * windowing system, so dropped files, URLs and string can be loaded into 
+ * tabs. Dragging from Seahawk tabs is not yet supported.
+ */
 class FileAndTextTransferHandler extends TransferHandler {
     private DataFlavor fileFlavor, stringFlavor;
     private MobyContentGUI gui;
@@ -169,7 +169,7 @@
 			}
 		    } catch(Exception e){
 			// Not good MOBY XML, oh well, lets fall back on the HTML-based display below...
-			//e.printStackTrace();
+			e.printStackTrace();
 		    }
 		}
 

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentClipboard.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentClipboard.java	2006/10/25 02:33:22	1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentClipboard.java	2007/02/08 16:59:57	1.2
@@ -1,7 +1,3 @@
-/**
- * The clipboard is a special tab that holds a query with a MOBY Collection
- * that the user can add and subtract MobyDataInstances from.
- */
 
 package ca.ucalgary.seahawk.gui;
 
@@ -29,6 +25,10 @@
 import java.net.URL;
 import java.util.*;
 
+/**
+ * The clipboard is a special tab that holds a query with a MOBY Collection
+ * that the user can add and subtract MobyDataInstances from.
+ */
 public class MobyContentClipboard extends MobyContentPane implements ActionListener{
     public final static String CLEAR_CLIPBOARD_OPTION = "Clear Clipboard";
     public final static String CLIPBOARD_FILE_NAME = "SeaHawkClipboard";

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java	2006/10/26 00:37:28	1.3
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentGUI.java	2007/02/08 16:59:57	1.4
@@ -22,9 +22,8 @@
 import ca.ucalgary.seahawk.util.DescriptiveFileFilter;
 
 /**
- * A class for textually displaying the data in a MOBY content XML document.
- * We use this in Bluejay for example, so that following a MOBY link doesn't destroy
- * the current XML document you are visualizing in the main window.
+ * Main interface component: textually displays the data in a MOBY content XML document.
+ *  For details on embedding in your own app, please see <a href="http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Java/docs/Seahawk.html#component">the documentation</a>.
  *
  * @author Paul Gordon (gordonp at ucalgary.ca)
  */

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentHelpPane.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentHelpPane.java	2006/10/25 02:33:22	1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentHelpPane.java	2007/02/08 16:59:57	1.2
@@ -23,6 +23,10 @@
 import java.util.Iterator;
 import java.util.TreeMap;
 
+/**
+ * Special text display tab in Seahawk for the Seahawk help file.  Ensures that
+ * links and services are launched in new tabs so that the help doesn't disappear.
+ */
 
 public class MobyContentHelpPane extends MobyContentPane{
 

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java	2006/12/14 22:20:10	1.3
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java	2007/02/08 16:59:57	1.4
@@ -50,6 +50,11 @@
 import java.util.StringTokenizer;
 import java.util.Vector;
 
+/**
+ * Text area contained in a Seahawk GUI tab.  Displays HTML, RTF, text etc. using a JEditorPane.
+ * Also provides link handling (including service options popup) and drag 'n' drop capabilities.
+ */
+
 public class MobyContentPane extends JPanel implements Printable, CaretListener, HyperlinkListener, MouseListener, MobyRequestEventHandler{
     public static final String MOBY_SERVICE_POPUP_NAME = "seahawkServicePopup";
     public static final String WAITING_TAB_ICON_RESOURCE = "ca/ucalgary/seahawk/resources/images/hourglass.gif";

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobySaveDialog.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobySaveDialog.java	2006/10/25 02:33:22	1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobySaveDialog.java	2007/02/08 16:59:57	1.2
@@ -6,7 +6,7 @@
 import ca.ucalgary.seahawk.util.DescriptiveFileFilter;
 
 /**
- * A utility to save the current document as XML or HTML.
+ * A utility to save the current document as XML or HTML, or the tab's history as a workflow (SCUFL format).
  *
  * @author Paul Gordon
  */

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyServicesGUI.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyServicesGUI.java	2006/11/01 23:44:34	1.6
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyServicesGUI.java	2007/02/08 16:59:57	1.7
@@ -17,6 +17,10 @@
 import javax.swing.event.PopupMenuListener;
 import javax.swing.event.PopupMenuEvent;
 
+/**
+ * Implementation of the actually popup menu that lists services available, and invokes them.
+ */
+
 public class MobyServicesGUI implements ActionListener, Comparator, PopupMenuListener{
     public final static int MAX_ID_LEN = 30;
     public final static String SERVICE_SUBMENU_NAME = "seahawkPopupSubMenuName";

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyShimmer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyShimmer.java	2006/10/25 02:33:22	1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyShimmer.java	2007/02/08 16:59:57	1.2
@@ -1,11 +1,5 @@
 package ca.ucalgary.seahawk.gui;
 
-/**
- * The purpose of this class is to improve service interoperability "shims" by
- * checking the MOBY service listings for services that do format conversion
- * on the given data, then adds service options for the output types of those services,
- * if they aren't in the menu already.
- */
 
 import ca.ucalgary.seahawk.services.MobyClient;
 import javax.swing.*;
@@ -23,6 +17,12 @@
 import java.text.Collator;
 import java.util.*;
 
+/**
+ * The purpose of this class is to improve service interoperability "shims" by
+ * checking the MOBY service listings for services that do format conversion
+ * on the given data, then adds service options for the output types of those services,
+ * if they aren't in the menu already. Not fully functional yet.
+ */
 public class MobyShimmer implements MobyRequestEventHandler{
     public static final String MOBY_SHIM_SERVICE_TYPE = "FormatConversion";
 




More information about the MOBY-guts mailing list