[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Thu Dec 14 22:20:10 UTC 2006
gordonp
Thu Dec 14 17:20:10 EST 2006
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv16425/src/main/ca/ucalgary/seahawk/gui
Modified Files:
MobyContentPane.java
Added Files:
FileAndTextTransferHandler.java
Log Message:
Made Seahawk's content panes 'droppable', i.e. files, URLs, XML fragments and strings dropped onto it from the windowing system are loaded in a new tab
moby-live/Java/src/main/ca/ucalgary/seahawk/gui FileAndTextTransferHandler.java,NONE,1.1 MobyContentPane.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.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/MobyContentPane.java 2006/11/24 20:57:25 1.2
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java 2006/12/14 22:20:10 1.3
@@ -88,8 +88,11 @@
contentGUI = cGUI;
servicesGUI = sGUI;
+ setTransferHandler(new FileAndTextTransferHandler(cGUI));
+
// The following is a non-user editable pane for showing HTML
editorPane = new PrintableJEditorPane();
+ editorPane.setTransferHandler(getTransferHandler());
//editorPane.setPreferredSize(parentComponent.getPreferredSize());
editorPane.setEditable(false);
editorPane.addMouseListener(this);
More information about the MOBY-guts
mailing list