use of cbit.vcell.xml.gui.MIRIAMAnnotationViewer in project vcell by virtualcell.
the class BioModelWindowManager method showMIRIAMWindow.
public void showMIRIAMWindow() {
ChildWindowManager childWindowManager = ChildWindowManager.findChildWindowManager(getJPanel());
ChildWindow childWindow = childWindowManager.getChildWindowFromContext(MIRIAM_WINDOW);
if (childWindow == null) {
MIRIAMAnnotationViewer miriamAnnotationViewer = new MIRIAMAnnotationViewer();
miriamAnnotationViewer.setBiomodel(bioModel);
childWindow = childWindowManager.addChildWindow(miriamAnnotationViewer, MIRIAM_WINDOW, "View/Add/Delete/Edit MIRIAM Annotation");
childWindow.setSize(600, 400);
childWindow.setResizable(true);
} else {
VCAssert.assertTrue(childWindow.isShowing(), "Invisible MIRIAM Window");
}
childWindow.show();
}
Aggregations