Permalink
Browse files

Turn off atom number by default in structured 2d view.

This shold be done with a default preference but doing it here for the time being.
  • Loading branch information...
1 parent 9cdba31 commit 2b047a59903360e5263247d8f70c22a0801e851a Arvid Berg committed Jun 29, 2010
@@ -73,6 +73,7 @@
import org.openscience.cdk.interfaces.IAtomContainer;
import org.openscience.cdk.interfaces.IChemModel;
import org.openscience.cdk.renderer.generators.IGenerator;
+import org.openscience.cdk.renderer.generators.AtomNumberGenerator.WillDrawAtomNumbers;
import org.openscience.cdk.tools.manipulator.ChemModelManipulator;
/**
@@ -118,6 +119,7 @@ public void createPartControl(Composite parent) {
}
};
canvasView.setSize( 200, 200 );
+ canvasView.getRenderer2DModel().set(WillDrawAtomNumbers.class, false);
// Register this page as a listener for selections
getViewSite().getPage().addSelectionListener(this);

0 comments on commit 2b047a5

Please sign in to comment.