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();
}
Aggregations