Community
Participate
Working Groups
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
IWorkbenchPage activePage = window.getActivePage();
IWorkbenchPart workbenchPart = getReference( part ).getPart( false );
activePage.activate( workbenchPart );
if( workbenchPart != null ) {
}
private IWorkbenchPartReference getReference( final IPresentablePart part) {
public void dispose() {
ViewToolBarRegistry registry = ViewToolBarRegistry.getInstance();
registry.removeViewPartPresentation( this );
if( toolBarLayer != null ) {
toolBarLayer.dispose();
presentationControl.dispose();
public Control getControl() {