Search in sources :

Example 1 with DBReactionWizardPanel

use of cbit.vcell.model.gui.DBReactionWizardPanel in project vcell by virtualcell.

the class ReactionCartoonTool method showReactionBrowserDialog.

public void showReactionBrowserDialog(Structure struct, Point location) throws Exception {
    if (getReactionCartoon() == null || getDocumentManager() == null || getDialogOwner(getGraphPane()) == null) {
        return;
    }
    DBReactionWizardPanel dbrqWiz = new DBReactionWizardPanel();
    dbrqWiz.setModel(getModel());
    dbrqWiz.setStructure(struct);
    dbrqWiz.setDocumentManager(getDocumentManager());
    dbrqWiz.setRXPasteInterface(ReactionCartoonTool.this);
    ChildWindowManager childWindowManager = ChildWindowManager.findChildWindowManager(this.getGraphPane());
    ChildWindow childWindow = childWindowManager.addChildWindow(dbrqWiz, SEARCHABLE_REACTIONS_CONTEXT_OBJECT, "Create Reaction within structure '" + struct.getName() + "'");
    // this is needed so that the wizard can close itself.
    dbrqWiz.setChildWindow(childWindow);
    childWindow.setIsCenteredOnParent();
    childWindow.pack();
    childWindow.show();
}
Also used : DBReactionWizardPanel(cbit.vcell.model.gui.DBReactionWizardPanel) ChildWindowManager(cbit.vcell.client.ChildWindowManager) ChildWindow(cbit.vcell.client.ChildWindowManager.ChildWindow)

Aggregations

ChildWindowManager (cbit.vcell.client.ChildWindowManager)1 ChildWindow (cbit.vcell.client.ChildWindowManager.ChildWindow)1 DBReactionWizardPanel (cbit.vcell.model.gui.DBReactionWizardPanel)1