private Display getDisplay() { if (fPagebook != null && !fPagebook.isDisposed()) { return fPagebook.getDisplay(); } return null; }
@Override public void run() { // running async: check first if view still exists if (fPagebook != null && !fPagebook.isDisposed()) { doRestoreState(memento, hierarchyInput); } } });
@Override public void run() { try { if (fPagebook != null && !fPagebook.isDisposed()) { doTypeHierarchyChangedOnViewers(changedTypes); } } finally { fIsRefreshRunnablePosted= false; } } });
public void run() { try { if (fPagebook != null && !fPagebook.isDisposed()) { doTypeHierarchyChangedOnViewers(changedTypes); } } finally { fIsRefreshRunnablePosted= false; } } });
@Override public void run() { try { if (fPagebook != null && !fPagebook.isDisposed()) { doTypeHierarchyChangedOnViewers(changedTypes); } } finally { fIsRefreshRunnablePosted= false; } } });
private Display getDisplay() { if (fPagebook != null && !fPagebook.isDisposed()) { return fPagebook.getDisplay(); } return null; }
private Display getDisplay() { if (fPagebook != null && !fPagebook.isDisposed()) { return fPagebook.getDisplay(); } return null; }
public void run() { // running async: check first if view still exists if (fPagebook != null && !fPagebook.isDisposed()) { if (doRestore) doRestoreState(memento, hierarchyInput); else fNoHierarchyShownLabel.setText(TypeHierarchyMessages.TypeHierarchyViewPart_empty); } } });
@Override public void run() { // running async: check first if view still exists if (fPagebook != null && !fPagebook.isDisposed()) { doRestoreState(memento, hierarchyInput); } } });
private boolean isAvailable() { return getPageBook() != null && !getPageBook().isDisposed(); }
private boolean isAvailable() { return getPageBook() != null && !getPageBook().isDisposed(); }
public void run() { if (!getContainer().isDisposed()) updatePage(getEmptyChangesComposite(getContainer())); } });
protected void calculateDescription() { if (getContainer().isDisposed()) return; if(getVisibleChangesCount() == 0) { TeamUIPlugin.getStandardDisplay().asyncExec(() -> { if (!getContainer().isDisposed()) updatePage(getEmptyChangesComposite(getContainer())); }); } else { TeamUIPlugin.getStandardDisplay().asyncExec(() -> updatePage(null)); } }
private void handleEmptyViewer() { // Override stand behavior to do our best to show something TeamUIPlugin.getStandardDisplay().asyncExec(() -> { if (!getContainer().isDisposed()) updatePage(getEmptyChangesComposite(getContainer())); }); }
protected boolean showPage(CatalogElementPage page) { if (pageContainer.isDisposed()) { return false; } selectedPage = page; pageContainer.setVisible(true); pageContainer.showPage(selectedPage.getControl()); fCatalogElement = selectedPage.getData(); return true; }
public void run() { if (!getContainer().isDisposed()) updatePage(getEmptyChangesComposite(getContainer())); } });
@Override public void setFocus() { // first set focus on the page book, in case the page // doesn't properly handle setFocus if (book != null && !book.isDisposed()) { book.setFocus(); } // then set focus on the page, if any if (activeRec != null && !activeRec.page.getControl().isDisposed()) { activeRec.page.setFocus(); } }
/** * Shows this view's viewer page. */ public void showViewer() { if (getPageBook().isDisposed()) { return; } getPageBook().showPage(getDefaultPage().getControl()); }
protected void initializeChangesViewer() { TeamUIPlugin.getStandardDisplay().asyncExec(() -> { Control control = ChangesSection.this.getChangesViewer().getControl(); if (!getContainer().isDisposed() && !control.isDisposed()) { getContainer().showPage(control); } }); }
public void run() { Control control = ChangesSection.this.getChangesViewer().getControl(); if (!getContainer().isDisposed() && !control.isDisposed()) { getContainer().showPage(control); } } });