Search in sources :

Example 1 with MIRIAMAnnotationViewer

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();
}
Also used : MIRIAMAnnotationViewer(cbit.vcell.xml.gui.MIRIAMAnnotationViewer) ChildWindow(cbit.vcell.client.ChildWindowManager.ChildWindow)

Aggregations

ChildWindow (cbit.vcell.client.ChildWindowManager.ChildWindow)1 MIRIAMAnnotationViewer (cbit.vcell.xml.gui.MIRIAMAnnotationViewer)1