/** * Make sure that the part is not considered if it is hidden. * * @param part * @since 3.5 */ protected void partVisible(IWorkbenchPart part) { if (part == null || part != hiddenPart) { return; } partActivated(part); } }
/** * Shows a page for the active workbench part. */ private void showBootstrapPart() { IWorkbenchPart part = getBootstrapPart(); if (part != null) { partActivated(part); } }
@Override public void partActivated(IWorkbenchPartReference partRef) { if (partRef == null) { WorkbenchPlugin.log("partRef is null in PageBookView partActivated"); //$NON-NLS-1$ return; } IWorkbenchPart part = partRef.getPart(false); PageBookView.this.partActivated(part); }
public void partActivated(IWorkbenchPart part) { super.partActivated(part); if (part == this) { InternalSearchUI.getInstance().getSearchViewManager().searchViewActivated(this); } }
@Override public void partActivated(IWorkbenchPart part) { super.partActivated(part); if (part == this) { InternalSearchUI.getInstance().getSearchViewManager().searchViewActivated(this); } }
/** * The <code>PropertySheet</code> implementation of this <code>IPartListener</code> * method first sees if the active part is an <code>IContributedContentsView</code> * adapter and if so, asks it for its contributing part. */ public void partActivated(IWorkbenchPart part) { // Look for a declaratively-contributed adapter - including not yet loaded adapter factories. // See bug 86362 [PropertiesView] Can not access AdapterFactory, when plugin is not loaded. IContributedContentsView view = (IContributedContentsView) ViewsPlugin.getAdapter(part, IContributedContentsView.class, true); IWorkbenchPart source = null; if (view != null) { source = view.getContributingPart(); } if (source != null) { super.partActivated(source); } else { super.partActivated(part); } // When the view is first opened, pass the selection to the page if (bootstrapSelection != null) { IPropertySheetPage page = (IPropertySheetPage) getCurrentPage(); if (page != null) { page.selectionChanged(part, bootstrapSelection); } bootstrapSelection = null; } }
if (wasHidden && part == this) { wasHidden = false; super.partActivated(part); if (selectionUpdatePending) { showSelectionAndDescription(); super.partActivated(source); } else { super.partActivated(part);
if (wasHidden && part == this) { wasHidden = false; super.partActivated(part); if (currentPart != null) { IPropertySheetPage page = (IPropertySheetPage) getCurrentPage(); super.partActivated(source); } else { super.partActivated(part);