Cut/Copy/Paste and Drag & Drop Functionality
The cut, copy, and paste operations work in the bean and application versions
of Marvin, and also in the applets. However, because of security reasons,
the awt applets perform these operations using a local clipboard
inside the JVM process. The non-applet versions of Marvin and the signed
swing Marvin applets are allowed to use the system clipboard.
Drag & drop operations are possible in the Swing version of the Marvin
applets, the Marvin Beans, and the MarvinSketch applications.
Marvin/AWT applets running in a web browser
- Cut & Paste using local clipboard.
- No Drag & Drop
Signed Marvin/Swing applets
- Cut & Paste using the system's clipboard.
See also:
- Drag & Drop works only when the sketcher is in its own window.
Note: When the applet is in the browser window, drop
events are received by the browser instead of the applet.
Marvin has two options to place objects on the clipboard: Copy
and Copy as Smiles.
- Using
Copy, a structure is copied to the clipboard as an
image (image/x-java-image) and a molfile
(chemical/x-mdl-molfile).
- Using
Copy as Smiles, the Smiles string of the structure is
copied to the clipboard in String and PlainText
formats.
Note:Any file format of
Marvin can be copied to the clipboard as a string or as
plain text. From the
Edit menu choose Source then
Edit/Copy to place the desired format on
the clipboard as plain text.
Marvin and other programs
- Molecule drawing programs like ISISDraw, ChemDraw, etc.
Cut & Paste is possible in Java 1.4 and later, but there are
complications with older Java versions:
|
Windows* |
Macintosh |
SGI |
| ISISDraw** |
Copy & Paste |
Copy & Paste |
untested |
| ChemDraw |
Copy & Paste |
Copy & Paste |
untested |
| ChemDraw Plugin |
Copy & Paste |
Paste *** |
untested |
| Copy: |
copy a structure from the application and paste into
Marvin |
| Paste: |
copy a structure from Marvin, and paste into the
application |
| *: |
On windows in Java 1.2-1.3.1, the
<Java home directory>/jre/lib/flavormap.properties file
must be edited: MDLCT=chemical/x-mdl-molfile
|
| **: |
In case of ISISDraw the following option must be checked:
Option --> Settings --> General --> Copy Mol/Rxnfile to the
Clipboard |
| ***: |
Copy as SMILES works |
- Word processors paste the molecule as SMILES text when
Copy as Smiles is used and paste as an image when Copy
is used. (Java 1.4 or later).
- Marvin can paste SMILES strings, MDL molfiles, etc. from a text editor
as molecules.
- Text editors can paste molecules from Marvin as SMILES strings using
Copy as Smiles.
- X Window System: most text editors (xedit, emacs, gvim, etc.) do not
transfer data to the X clipboard, so Marvin is unable to communicate with
them.
Copy & Paste works with the following editors and other programs:
| GNOME programs: |
gedit, gnotepad+ (gnp), gxedit, etc. |
| Motif programs: |
asWedit, nedit, Netscape, etc. |
Note: With the xclipboard program, you can test
whether your favourite editor uses the X clipboard or not.