1 11 package org.eclipse.team.internal.core.subscribers; 12 13 import org.eclipse.core.resources.IResource; 14 15 18 public abstract class ChangeSet { 19 20 private String name; 21 22 27 protected ChangeSet() { 28 super(); 29 } 30 31 35 public ChangeSet(String name) { 36 this.name = name; 37 } 38 39 43 public abstract IResource[] getResources(); 44 45 49 public abstract boolean isEmpty(); 50 51 56 public abstract boolean contains(IResource local); 57 58 62 public abstract void remove(IResource resource); 63 64 68 public void remove(IResource[] resources) { 69 for (int i = 0; i < resources.length; i++) { 70 IResource resource = resources[i]; 71 remove(resource); 72 } 73 } 74 75 81 public abstract void rootRemoved(IResource resource, int depth); 82 83 87 public abstract String getComment(); 88 89 94 public String getName() { 95 return name; 96 } 97 98 104 protected void setName(String name) { 105 this.name = name; 106 } 107 108 116 public abstract boolean containsChildren(IResource resource, int depth); 117 } 118 | Popular Tags |