@Override public void reveal(Object element) { fViewer.reveal(element); }
@Override public void reveal(Object element) { fViewer.reveal(element); }
public void reveal(Object element) { fViewer.reveal(element); }
/** * Make sure the currently selected item in the tree is visible. */ protected void revealTreeSelection() { StructuredViewer viewer = (StructuredViewer) getViewer(); if (viewer != null) { ISelection selection = viewer.getSelection(); if (selection instanceof IStructuredSelection) { Object selected = ((IStructuredSelection)selection).getFirstElement(); if (selected != null) { viewer.reveal(selected); } } } }
private void selectColorAtOffset(int offset) { String namedStyle = getNamedStyleAtOffset(offset); if (namedStyle != null) { fStylesViewer.setSelection(new StructuredSelection(namedStyle)); fStylesViewer.reveal(namedStyle); } else { fStylesViewer.setSelection(StructuredSelection.EMPTY); } activate(namedStyle); }