1 11 package org.eclipse.team.internal.ccvs.ui.model; 12 13 import org.eclipse.core.runtime.IProgressMonitor; 14 import org.eclipse.jface.resource.ImageDescriptor; 15 import org.eclipse.team.internal.ccvs.core.ICVSFolder; 16 import org.eclipse.team.internal.ccvs.core.ICVSResource; 17 18 public class CVSRootFolderElement extends CVSResourceElement { 19 20 ICVSFolder[] roots; 21 22 public CVSRootFolderElement(ICVSFolder[] roots) { 23 this.roots = roots; 24 } 25 26 29 public Object [] fetchChildren(Object o, IProgressMonitor monitor) { 30 CVSFolderElement[] folders = new CVSFolderElement[roots.length]; 31 for (int i = 0; i < roots.length; i++) { 32 folders[i] = new CVSFolderElement(roots[i], false); 33 } 34 return folders; 35 } 36 37 40 public ImageDescriptor getImageDescriptor(Object object) { 41 return null; 42 } 43 44 47 public ICVSResource getCVSResource() { 48 return null; 49 } 50 54 public ICVSFolder[] getRoots() { 55 return roots; 56 } 57 58 62 public void setRoots(ICVSFolder[] roots) { 63 this.roots = roots; 64 } 65 66 } 67 | Popular Tags |