Search in sources :

Example 1 with SimulationConsolePanel

use of cbit.vcell.client.desktop.biomodel.SimulationConsolePanel in project vcell by virtualcell.

the class NetworkConstraintsPanel method activateConsole.

public void activateConsole() {
    boolean found = false;
    Container parent = getParent();
    while (parent != null) {
        parent = parent.getParent();
        if (parent instanceof BioModelEditor) {
            found = true;
            break;
        }
    }
    if (found) {
        System.out.println("Parent Found");
        BioModelEditor e = (BioModelEditor) parent;
        // e.getRightBottomTabbedPane().setSelectedComponent(e.getSimulationConsolePanel());
        Component[] cList = e.getRightBottomTabbedPane().getComponents();
        for (Component c : cList) {
            if (c instanceof SimulationConsolePanel) {
                e.getRightBottomTabbedPane().setSelectedComponent(c);
                break;
            }
        }
    }
}
Also used : RbmModelContainer(cbit.vcell.model.Model.RbmModelContainer) Container(java.awt.Container) BioModelEditor(cbit.vcell.client.desktop.biomodel.BioModelEditor) SimulationConsolePanel(cbit.vcell.client.desktop.biomodel.SimulationConsolePanel) Component(java.awt.Component)

Example 2 with SimulationConsolePanel

use of cbit.vcell.client.desktop.biomodel.SimulationConsolePanel in project vcell by virtualcell.

the class NetworkFreePanel method activateConsole.

public void activateConsole() {
    boolean found = false;
    Container parent = getParent();
    while (parent != null) {
        parent = parent.getParent();
        if (parent instanceof BioModelEditor) {
            found = true;
            break;
        }
    }
    if (found) {
        System.out.println("Parent Found");
        BioModelEditor e = (BioModelEditor) parent;
        // e.getRightBottomTabbedPane().setSelectedComponent(e.getSimulationConsolePanel());
        Component[] cList = e.getRightBottomTabbedPane().getComponents();
        for (Component c : cList) {
            if (c instanceof SimulationConsolePanel) {
                e.getRightBottomTabbedPane().setSelectedComponent(c);
                break;
            }
        }
    }
}
Also used : RbmModelContainer(cbit.vcell.model.Model.RbmModelContainer) Container(java.awt.Container) BioModelEditor(cbit.vcell.client.desktop.biomodel.BioModelEditor) SimulationConsolePanel(cbit.vcell.client.desktop.biomodel.SimulationConsolePanel) Component(java.awt.Component)

Example 3 with SimulationConsolePanel

use of cbit.vcell.client.desktop.biomodel.SimulationConsolePanel in project vcell by virtualcell.

the class SimulationListPanel method activateConsole.

public void activateConsole() {
    boolean found = false;
    Container parent = getParent();
    while (parent != null) {
        parent = parent.getParent();
        if (parent instanceof BioModelEditor) {
            found = true;
            break;
        }
    }
    if (found) {
        System.out.println("Parent Found");
        BioModelEditor e = (BioModelEditor) parent;
        // e.getRightBottomTabbedPane().setSelectedComponent(e.getSimulationConsolePanel());
        Component[] cList = e.getRightBottomTabbedPane().getComponents();
        for (Component c : cList) {
            if (c instanceof SimulationConsolePanel) {
                e.getRightBottomTabbedPane().setSelectedComponent(c);
                break;
            }
        }
    }
}
Also used : Container(java.awt.Container) BioModelEditor(cbit.vcell.client.desktop.biomodel.BioModelEditor) SimulationConsolePanel(cbit.vcell.client.desktop.biomodel.SimulationConsolePanel) Component(java.awt.Component)

Aggregations

BioModelEditor (cbit.vcell.client.desktop.biomodel.BioModelEditor)3 SimulationConsolePanel (cbit.vcell.client.desktop.biomodel.SimulationConsolePanel)3 Component (java.awt.Component)3 Container (java.awt.Container)3 RbmModelContainer (cbit.vcell.model.Model.RbmModelContainer)2