use of com.actelion.research.share.gui.editor.dialogs.IAtomPropertiesDialog in project openchemlib by Actelion.
the class ChangeAtomPropertiesAction method onMouseUp.
@Override
public boolean onMouseUp(IMouseEvent evt) {
model.pushUndo();
int theAtom = model.getSelectedAtom();
StereoMolecule mol = model.getMolecule();
if (mol != null && theAtom != -1) {
GeomFactory builder = model.getGeomFactory();
IAtomPropertiesDialog dlg = builder.createAtomPropertiesDialog(mol, theAtom);
if (dlg.doModalAt(evt.getX(), evt.getY()) == DialogResult.IDOK) {
return true;
}
}
return false;
}
Aggregations