use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.
the class ApplicationGeometryPanel method getActiveView.
@Override
public ActiveView getActiveView() {
Component selectedComponent = tabbedPane.getSelectedComponent();
ActiveViewID activeViewID = null;
if (selectedComponent == structureMappingCartoonPanel) {
activeViewID = ActiveViewID.structure_mapping;
} else if (selectedComponent == geometryViewer) {
activeViewID = ActiveViewID.geometry_definition;
} else if (selectedComponent == spatialEntitiesPanel) {
activeViewID = ActiveViewID.spatial_entities;
} else if (selectedComponent == spatialObjectDisplayPanel) {
activeViewID = ActiveViewID.spatial_objects;
} else if (selectedComponent == spatialProcessDisplayPanel) {
activeViewID = ActiveViewID.spatial_processes;
}
return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.GEOMETRY_NODE, activeViewID);
}
use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.
the class ApplicationProtocolsPanel method getActiveView.
@Override
public ActiveView getActiveView() {
Component selectedComponent = tabbedPane.getSelectedComponent();
ActiveViewID activeViewID = null;
if (selectedComponent == eventsDisplayPanel) {
activeViewID = ActiveViewID.events;
} else if (selectedComponent == electricalMembraneMappingPanel) {
activeViewID = ActiveViewID.electrical;
} else if (selectedComponent == microscopeMeasurementPanel) {
activeViewID = ActiveViewID.microscope_measuremments;
} else if (selectedComponent == rateRulesDisplayPanel) {
activeViewID = ActiveViewID.rateRules;
}
return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.PROTOCOLS_NODE, activeViewID);
}
use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.
the class ApplicationSimulationsPanel method getActiveView.
@Override
public ActiveView getActiveView() {
Component selectedComponent = tabbedPane.getSelectedComponent();
ActiveViewID activeViewID = null;
if (selectedComponent == simulationListPanel) {
activeViewID = ActiveViewID.simulations;
} else if (selectedComponent == outputFunctionsPanel) {
activeViewID = ActiveViewID.output_functions;
} else if (selectedComponent == mathematicsPanel) {
activeViewID = ActiveViewID.generated_math;
}
return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.SIMULATIONS_NODE, activeViewID);
}
use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.
the class ApplicationSpecificationsPanel method getActiveView.
@Override
public ActiveView getActiveView() {
Component selectedComponent = tabbedPane.getSelectedComponent();
ActiveViewID activeViewID = null;
for (SpecifierComponent spc : subPanels) {
if (selectedComponent == spc.component) {
activeViewID = spc.setter.getActiveView();
break;
}
}
return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.SPECIFICATIONS_NODE, activeViewID);
}
Aggregations