private void setSelectionFromEditor(IWorkbenchPartReference ref) { IWorkbenchPart part= ref.getPart(false); setSelectionFromEditor(part);
void setSelectionFromEditor(IWorkbenchPart part) { if (!fProcessSelectionEvents || !linkBrowsingViewSelectionToEditor() || !(part instanceof IEditorPart)) return;  IWorkbenchPartSite site= part.getSite(); if (site == null) return; ISelectionProvider provider= site.getSelectionProvider(); if (provider != null) setSelectionFromEditor(part, provider.getSelection());
	private void setSelectionFromEditor(IWorkbenchPartReference ref) {			IWorkbenchPart part= ref.getPart(false);			setSelectionFromEditor(part);	}