Browse files

Changed getAdapter to work for IMolecule aswell.

  • Loading branch information...
1 parent c6ac8f5 commit 2d381f9a7a283793599805d8f7f5ffea090c2023 Arvid Berg committed with Jun 22, 2010
View
2 ...et.bioclipse.cdk.jchempaint/src/net/bioclipse/cdk/jchempaint/editor/JChemPaintEditor.java
@@ -580,7 +580,7 @@ public Object getAdapter( Class adapter ) {
return mol.getAtomContainer();
return null;
}
- if( ICDKMolecule.class.equals( adapter )) {
+ if( adapter.isAssignableFrom(ICDKMolecule.class)) {
return getCDKMolecule();
}
return super.getAdapter( adapter );

0 comments on commit 2d381f9

Please sign in to comment.