return (View) this.tabbedPane.getSelectedComponent();
}
public void refresh() {
if (this.getActiveView() != null) {
ViewState viewState = null;
if (this.state.getSelected() != null && findSelectedInTab) {
TOP: for (Entry<View, ViewState> entry : this.mainViews.entrySet()) {
for (ModelGraph graph : entry.getValue().getGraphs()) {
ModelGraph found = graph.recursiveFindByModelId(this.state
.getSelected().getModel().getModelId());
if (found != null && !found.getModel().isRef()) {
viewState = entry.getValue();
viewState.setSelected(found);
this.tabbedPane.setSelectedComponent(entry.getKey());
break TOP;
}
}
}