&& BeansUIUtils.isBeansConfigContentType((IFile) element.getElementResource())) {
IFile file = (IFile) element.getElementResource();
IEditorInput input = new FileEditorInput(file);
IEditorPart part = SpringUIUtils.openInEditor(input, SpringConfigEditor.ID_EDITOR);
if (part instanceof SpringConfigEditor) {
SpringConfigEditor cEditor = (SpringConfigEditor) part;
SpringConfigGraphPage graph = cEditor.getBeansGraphPage();
if (graph != null) {
cEditor.setActiveEditor(graph);
}
}
}
else {
IEditorInput input;