2 * (c) Copyright IBM Corp. 2000, 2001.
5 package net.sourceforge.phpdt.internal.ui.text.template;
7 import org.eclipse.jface.viewers.IStructuredContentProvider;
8 import org.eclipse.jface.viewers.Viewer;
10 import net.sourceforge.phpdt.internal.corext.template.TemplateSet;
12 public class TemplateContentProvider implements IStructuredContentProvider {
14 private TemplateSet fTemplateSet;
17 * @see IStructuredContentProvider#getElements(Object)
19 public Object[] getElements(Object input) {
20 return fTemplateSet.getTemplates();
24 * @see IContentProvider#inputChanged(Viewer, Object, Object)
26 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
27 fTemplateSet= (TemplateSet) newInput;
31 * @see IContentProvider#dispose()
33 public void dispose() {