1 11 package org.eclipse.search.internal.ui.text; 12 import org.eclipse.jface.viewers.IStructuredContentProvider; 13 import org.eclipse.jface.viewers.Viewer; 14 15 import org.eclipse.search.ui.text.AbstractTextSearchResult; 16 public abstract class FileContentProvider implements IStructuredContentProvider { 17 protected final Object [] EMPTY_ARR= new Object [0]; 18 protected AbstractTextSearchResult fResult; 19 public void dispose() { 20 } 22 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { 23 if (newInput instanceof FileSearchResult) { 24 initialize((FileSearchResult) newInput); 25 } 26 } 27 protected void initialize(AbstractTextSearchResult result) { 28 fResult= result; 29 } 30 31 public abstract void elementsChanged(Object [] updatedElements); 32 public abstract void clear(); 33 } 34 | Popular Tags |