Search in sources :

Example 1 with IBondQueryFeaturesDialog

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

the class BondHighlightAction method showBondQFDialog.

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

Aggregations

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