Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 279031
Collapse All | Expand All

(-)src/org/eclipse/rap/internal/design/example/business/stacks/ViewStackPresentation.java (-1 / +7 lines)
Lines 354-360 Link Here
354
    IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
354
    IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
355
    IWorkbenchPage activePage = window.getActivePage();
355
    IWorkbenchPage activePage = window.getActivePage();
356
    IWorkbenchPart workbenchPart = getReference( part ).getPart( false );
356
    IWorkbenchPart workbenchPart = getReference( part ).getPart( false );
357
    activePage.activate( workbenchPart );    
357
    if( workbenchPart != null ) {
358
      activePage.activate( workbenchPart );
359
    }
358
  }
360
  }
359
  
361
  
360
  private IWorkbenchPartReference getReference( final IPresentablePart part) {
362
  private IWorkbenchPartReference getReference( final IPresentablePart part) {
Lines 561-566 Link Here
561
  public void dispose() {
563
  public void dispose() {
562
    ViewToolBarRegistry registry = ViewToolBarRegistry.getInstance();
564
    ViewToolBarRegistry registry = ViewToolBarRegistry.getInstance();
563
    registry.removeViewPartPresentation( this );
565
    registry.removeViewPartPresentation( this );
566
    if( toolBarLayer != null ) {
567
      toolBarLayer.dispose();
568
    }
569
    presentationControl.dispose();
564
  }
570
  }
565
571
566
  public Control getControl() {
572
  public Control getControl() {

Return to bug 279031