/** * Converts the selection to a <code>List</code> and calls * <code>setSelectionToWidget(List, boolean)</code>. The selection is * expected to be an <code>IStructuredSelection</code> of elements. If * not, the selection is cleared. * <p> * Subclasses do not typically override this method, but implement * <code>setSelectionToWidget(List, boolean)</code> instead. * * @param selection * an IStructuredSelection of elements * @param reveal * <code>true</code> to reveal the first element in the * selection, or <code>false</code> otherwise */ protected void setSelectionToWidget(ISelection selection, boolean reveal) { if (selection instanceof IStructuredSelection) { setSelectionToWidget(((IStructuredSelection) selection).toList(), reveal); } else { setSelectionToWidget((List) null, reveal); } }
/** * Converts the selection to a <code>List</code> and calls * <code>setSelectionToWidget(List, boolean)</code>. The selection is * expected to be an <code>IStructuredSelection</code> of elements. If * not, the selection is cleared. * <p> * Subclasses do not typically override this method, but implement * <code>setSelectionToWidget(List, boolean)</code> instead. * * @param selection * an IStructuredSelection of elements * @param reveal * <code>true</code> to reveal the first element in the * selection, or <code>false</code> otherwise */ protected void setSelectionToWidget(ISelection selection, boolean reveal) { if (selection instanceof IStructuredSelection) { setSelectionToWidget(((IStructuredSelection) selection).toList(), reveal); } else { setSelectionToWidget((List) null, reveal); } }
/** * Converts the selection to a <code>List</code> and calls * <code>setSelectionToWidget(List, boolean)</code>. The selection is * expected to be an <code>IStructuredSelection</code> of elements. If * not, the selection is cleared. * <p> * Subclasses do not typically override this method, but implement * <code>setSelectionToWidget(List, boolean)</code> instead. * * @param selection * an IStructuredSelection of elements * @param reveal * <code>true</code> to reveal the first element in the * selection, or <code>false</code> otherwise */ protected void setSelectionToWidget(ISelection selection, boolean reveal) { if (selection instanceof IStructuredSelection) { setSelectionToWidget(((IStructuredSelection) selection).toList(), reveal); } else { setSelectionToWidget((List) null, reveal); } }
setSelectionToWidget(oldSelection, reveal);
setSelectionToWidget(oldSelection, reveal);
setSelectionToWidget(oldSelection, reveal);
setSelectionToWidget(selection, reveal); ISelection sel = getSelection(); updateSelection(sel); } else { restoreSelection = false; setSelectionToWidget(selection, reveal);
setSelectionToWidget(selection, reveal); ISelection sel = getSelection(); updateSelection(sel); } else { restoreSelection = false; setSelectionToWidget(selection, reveal);
setSelectionToWidget(selection, reveal); ISelection sel = getSelection(); updateSelection(sel); } else { restoreSelection = false; setSelectionToWidget(selection, reveal);