IEditorPart activeEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.getActiveEditor();
if ( activeEditor instanceof ObjectClassFormEditor )
{
ObjectClassFormEditor editor = ( ObjectClassFormEditor ) activeEditor;
linkViewWithEditor( editor.getPartName(), ObjectClassFormEditor.ID );
}
else if ( activeEditor instanceof AttributeTypeFormEditor )
{
AttributeTypeFormEditor editor = ( AttributeTypeFormEditor ) activeEditor;
linkViewWithEditor( editor.getPartName(), AttributeTypeFormEditor.ID );
}
hierarchyView.getSite().getPage().addPostSelectionListener( HierarchicalViewer.ID, viewListener );
}
else