Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 164730
Collapse All | Expand All

(-)src/org/eclipse/cdt/internal/ui/cview/CView.java 27 Sep 2006 21:38:02 -0000 1.1 (+4 lines)
Lines 203-211 Link Here
203
  * @see ISetSelectionTarget#selectReveal()
203
  * @see ISetSelectionTarget#selectReveal()
204
  */
204
  */
205
 public void selectReveal(ISelection selection) {
205
 public void selectReveal(ISelection selection) {
206
  // try to get the ICElement selection if possible, otherwise fall back to regular object
207
  // selection which could be an IResource.
206
  IStructuredSelection ssel = SelectionConverter.convertSelectionToCElements(selection);
208
  IStructuredSelection ssel = SelectionConverter.convertSelectionToCElements(selection);
207
  if (!ssel.isEmpty()) {
209
  if (!ssel.isEmpty()) {
208
   getViewer().setSelection(ssel, true);
210
   getViewer().setSelection(ssel, true);
211
  } else {
212
   getViewer().setSelection(selection, true);
209
  }
213
  }
210
 }
214
 }

Return to bug 164730