1 11 package org.eclipse.ui.internal.ide.dialogs; 12 13 import org.eclipse.jface.viewers.IStructuredContentProvider; 14 import org.eclipse.jface.viewers.Viewer; 15 16 20 public class SimpleListContentProvider implements IStructuredContentProvider { 21 22 private Object [] elements; 24 25 28 public SimpleListContentProvider() { 29 super(); 30 } 31 32 35 public void dispose() { 36 } 37 38 42 public Object [] getElements(Object inputElement) { 43 return this.elements; 44 } 45 46 50 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { 51 } 52 53 57 public void setElements(Object [] items) { 58 59 this.elements = items; 60 } 61 } 62 | Popular Tags |