1 11 package org.eclipse.search.internal.ui; 12 13 import java.util.ArrayList ; 14 15 import org.eclipse.jface.viewers.IStructuredContentProvider; 16 import org.eclipse.jface.viewers.Viewer; 17 18 21 class SearchResultContentProvider implements IStructuredContentProvider { 22 23 private static final Object [] fgEmptyArray= new Object [0]; 24 25 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { 26 } 28 29 public void dispose() { 30 } 31 32 public boolean isDeleted(Object element) { 33 return false; 34 } 35 36 public Object [] getElements(Object element) { 37 if (element instanceof ArrayList ) 38 return ((ArrayList )element).toArray(); 39 return fgEmptyArray; 40 } 41 } 42 | Popular Tags |