1 11 package org.eclipse.ui.internal.navigator.extensions; 12 13 import org.eclipse.jface.viewers.Viewer; 14 import org.eclipse.ui.IMemento; 15 import org.eclipse.ui.navigator.ICommonContentExtensionSite; 16 import org.eclipse.ui.navigator.ICommonContentProvider; 17 18 21 public final class SkeletonTreeContentProvider implements ICommonContentProvider { 22 23 26 public static final SkeletonTreeContentProvider INSTANCE = new SkeletonTreeContentProvider(); 27 28 private static final Object [] NO_CHILDREN = new Object [0]; 29 30 private SkeletonTreeContentProvider() { 31 super(); 32 } 33 34 39 public Object [] getChildren(Object parentElement) { 40 41 return NO_CHILDREN; 42 } 43 44 49 public Object getParent(Object element) { 50 51 return null; 52 } 53 54 59 public boolean hasChildren(Object element) { 60 return false; 61 } 62 63 68 public Object [] getElements(Object inputElement) { 69 70 return NO_CHILDREN; 71 } 72 73 78 public void dispose() { 79 } 80 81 87 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { 88 } 89 90 public void restoreState(IMemento aMemento) { 91 92 } 93 94 public void saveState(IMemento aMemento) { 95 96 } 97 98 public void init(ICommonContentExtensionSite aConfig) { 99 100 } 101 102 } 103 | Popular Tags |