Exemple #1
0
  @Override
  protected void doDestroyPage(IWorkbenchPart part, PageRec pageRecord) {
    IPage page = pageRecord.page;
    page.dispose();
    pageRecord.dispose();

    // empty cross-reference cache
    fPartsToPages.remove(part);
  }
Exemple #2
0
 /*
  * TODO workaround for focus problem. Clarify focus behavior.
  *
  * @see org.eclipse.ui.IWorkbenchPart#setFocus()
  */
 @Override
 public void setFocus() {
   IPage currentPage = getCurrentPage();
   if (currentPage != null) {
     currentPage.setFocus();
   } else {
     super.setFocus();
   }
 }