1 11 package org.eclipse.ui.internal.dialogs; 12 13 import org.eclipse.jface.viewers.IStructuredContentProvider; 14 import org.eclipse.jface.viewers.Viewer; 15 import org.eclipse.ui.IPerspectiveRegistry; 16 17 public class PerspContentProvider implements IStructuredContentProvider { 18 19 22 public PerspContentProvider() { 23 } 25 26 31 public void dispose() { 32 } 34 35 40 public Object [] getElements(Object element) { 41 if (element instanceof IPerspectiveRegistry) { 42 return ((IPerspectiveRegistry) element).getPerspectives(); 43 } 44 return null; 45 } 46 47 53 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { 54 } 56 } 57 | Popular Tags |