Search in sources :

Example 1 with IAtomQueryFeaturesDialog

use of com.actelion.research.share.gui.editor.dialogs.IAtomQueryFeaturesDialog in project openchemlib by Actelion.

the class AtomHighlightAction method showAtomQFDialog.

private boolean showAtomQFDialog(int atom) {
    GeomFactory factory = model.getGeomFactory();
    StereoMolecule mol = model.getMolecule();
    if (mol != null) {
        IAtomQueryFeaturesDialog dlg = factory.createAtomQueryFeatureDialog(/*new AtomQueryFeaturesDialog*/
        mol, atom);
        return dlg.doModalAt(lastHightlightPoint.getX(), lastHightlightPoint.getY()) == DialogResult.IDOK;
    }
    return false;
}
Also used : IAtomQueryFeaturesDialog(com.actelion.research.share.gui.editor.dialogs.IAtomQueryFeaturesDialog) GeomFactory(com.actelion.research.share.gui.editor.geom.GeomFactory) StereoMolecule(com.actelion.research.chem.StereoMolecule)

Aggregations

StereoMolecule (com.actelion.research.chem.StereoMolecule)1 IAtomQueryFeaturesDialog (com.actelion.research.share.gui.editor.dialogs.IAtomQueryFeaturesDialog)1 GeomFactory (com.actelion.research.share.gui.editor.geom.GeomFactory)1