1 11 package org.eclipse.team.internal.ccvs.ui.model; 12 13 14 import org.eclipse.core.runtime.IAdaptable; 15 import org.eclipse.core.runtime.IProgressMonitor; 16 import org.eclipse.jface.resource.ImageDescriptor; 17 import org.eclipse.team.internal.ccvs.ui.CVSUIPlugin; 18 import org.eclipse.ui.model.IWorkbenchAdapter; 19 20 24 public class AllRootsElement extends CVSModelElement implements IAdaptable { 25 public ImageDescriptor getImageDescriptor(Object object) { 26 return null; 27 } 28 public Object [] fetchChildren(Object o, IProgressMonitor monitor) { 29 return CVSUIPlugin.getPlugin().getRepositoryManager().getKnownRepositoryRoots(); 30 } 31 public String getLabel(Object o) { 32 return null; 33 } 34 public Object getAdapter(Class adapter) { 35 if (adapter == IWorkbenchAdapter.class) return this; 36 return null; 37 } 38 public Object getParent(Object o) { 39 return null; 40 } 41 } 42 43 | Popular Tags |