return;
}
OntoUML.diagram.navigator.OntoUMLAbstractNavigatorItem abstractNavigatorItem = (OntoUML.diagram.navigator.OntoUMLAbstractNavigatorItem) aSelection
.getFirstElement();
View navigatorView = null;
if (abstractNavigatorItem instanceof OntoUML.diagram.navigator.OntoUMLNavigatorItem) {
navigatorView = ((OntoUML.diagram.navigator.OntoUMLNavigatorItem) abstractNavigatorItem)
.getView();
} else if (abstractNavigatorItem instanceof OntoUML.diagram.navigator.OntoUMLNavigatorGroup) {
OntoUML.diagram.navigator.OntoUMLNavigatorGroup navigatorGroup = (OntoUML.diagram.navigator.OntoUMLNavigatorGroup) abstractNavigatorItem;
if (navigatorGroup.getParent() instanceof OntoUML.diagram.navigator.OntoUMLNavigatorItem) {
navigatorView = ((OntoUML.diagram.navigator.OntoUMLNavigatorItem) navigatorGroup
.getParent()).getView();
}
}
if (navigatorView == null) {
return;
}
IEditorInput editorInput = getEditorInput(navigatorView.getDiagram());
IEditorPart editor = aPage.findEditor(editorInput);
if (editor == null) {
return;
}
aPage.bringToTop(editor);