Package org.openscience.jchempaint.dialog.editor

Examples of org.openscience.jchempaint.dialog.editor.AtomContainerEditor


  private static final long serialVersionUID = 8489495722307245626L;

  public void actionPerformed(ActionEvent event) {
    IChemObject object = getSource(event);
    logger.debug("Showing object properties for: ", object);
    ChemObjectEditor editor = new AtomContainerEditor();
    IAtomContainer relevantContainer = null;
    if(object instanceof IAtom)
      relevantContainer = ChemModelManipulator.getRelevantAtomContainer(jcpPanel.getChemModel(),(IAtom)object);
    if(object instanceof IBond)
      relevantContainer = ChemModelManipulator.getRelevantAtomContainer(jcpPanel.getChemModel(),(IBond)object);
    editor.setChemObject(relevantContainer);
    ChemObjectPropertyDialog frame =
      new ChemObjectPropertyDialog(JOptionPane.getFrameForComponent(editor), jcpPanel.get2DHub(), editor);
    frame.pack();
    frame.setVisible(true);
  }
View Full Code Here

TOP

Related Classes of org.openscience.jchempaint.dialog.editor.AtomContainerEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.