/*** * @param pinned Whether this sheet should be pinned * @since 3.4 */ public void setPinned(boolean pinned) { pinPropertySheetAction.setChecked(pinned); updateContentDescription(); }
/*** * @param pinned Whether this sheet should be pinned * @since 3.4 */ public void setPinned(boolean pinned) { pinPropertySheetAction.setChecked(pinned); updateContentDescription(); }
private void showSelectionAndDescription() { selectionUpdatePending = false; if (currentPart == null || currentSelection == null) { return; } IPropertySheetPage page = (IPropertySheetPage) getCurrentPage(); if (page != null) { page.selectionChanged(currentPart, currentSelection); } updateContentDescription(); }
@Override public void selectionChanged(IWorkbenchPart part, ISelection sel) { // we ignore selection if we are hidden OR selection is coming from // another source as the last one if (part == null || !part.equals(currentPart)) { return; } // we ignore null selection, or if we are pinned, or our own selection // or same selection if (sel == null || !isImportant(part) || sel.equals(currentSelection)) { return; } currentPart = part; currentSelection = sel; boolean visible = getSite() != null && getSite().getPage().isPartVisible(this); if (!visible) { return; } // pass the selection to the page IPropertySheetPage page = (IPropertySheetPage) getCurrentPage(); if (page != null) { page.selectionChanged(currentPart, currentSelection); } updateContentDescription(); }
page.selectionChanged(currentPart, currentSelection); updateContentDescription();