Permalink
Browse files

Added workaround to open ICDKMolecules in JmolEditor. Should be moved…

… to JmolDescriber when net.bioclipse.jmol.cdk is operational.
  • Loading branch information...
1 parent 74ce767 commit 2ff40ce36ac9d146c460ff21a446c313b60e9ce6 @olas olas committed with Arvid Berg Jul 1, 2010
@@ -31,9 +31,14 @@ public String getPreferredEditorID( IBioObject object ) {
if ( object instanceof ICDKMolecule ) {
ICDKMolecule cdkmol = (ICDKMolecule) object;
try {
- if (!cdk.has3d( cdkmol )){
+ if (cdk.has2d( cdkmol )){
return "net.bioclipse.cdk.ui.editors.jchempaint";
}
+ //Dirty workaround until we ship the plugin net.bioclipse.jmol.cdk
+ //TODO: Move to JmolEditorDescriber in that plugin
+ else if (cdk.has3d( cdkmol )){
+ return "net.bioclipse.jmol.editors.JmolEditor";
+ }
} catch ( BioclipseException e ) {
}
}

0 comments on commit 2ff40ce

Please sign in to comment.