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