diff options
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ChangeSet.java')
-rw-r--r-- | bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ChangeSet.java | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ChangeSet.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ChangeSet.java index 45b16a1f8..03c9e2e3e 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ChangeSet.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ChangeSet.java @@ -20,101 +20,101 @@ import org.eclipse.core.resources.IResource; */ public abstract class ChangeSet { - private String name; + private String name; - /** - * Create a change set with no name. Subclasses - * that create a change set in this manner should - * provide a name before the set is used by other clients. - */ - protected ChangeSet() { - super(); - } + /** + * Create a change set with no name. Subclasses + * that create a change set in this manner should + * provide a name before the set is used by other clients. + */ + protected ChangeSet() { + super(); + } - /** - * Create a change set with the given name. - * @param name the name of the change set - */ - public ChangeSet(String name) { - this.name = name; - } + /** + * Create a change set with the given name. + * @param name the name of the change set + */ + public ChangeSet(String name) { + this.name = name; + } - /** - * Return the resources that are contained in this set. - * @return the resources that are contained in this set - */ - public abstract IResource[] getResources(); + /** + * Return the resources that are contained in this set. + * @return the resources that are contained in this set + */ + public abstract IResource[] getResources(); - /** - * Return whether the set contains any files. - * @return whether the set contains any files - */ - public abstract boolean isEmpty(); + /** + * Return whether the set contains any files. + * @return whether the set contains any files + */ + public abstract boolean isEmpty(); - /** - * Return true if the given file is included in this set. - * @param local a local file - * @return true if the given file is included in this set - */ - public abstract boolean contains(IResource local); + /** + * Return true if the given file is included in this set. + * @param local a local file + * @return true if the given file is included in this set + */ + public abstract boolean contains(IResource local); - /** - * Remove the resource from the set. - * @param resource the resource to be removed - */ - public abstract void remove(IResource resource); + /** + * Remove the resource from the set. + * @param resource the resource to be removed + */ + public abstract void remove(IResource resource); - /** - * Remove the resources from the set. - * @param resources the resources to be removed - */ - public void remove(IResource[] resources) { - for (int i = 0; i < resources.length; i++) { - IResource resource = resources[i]; - remove(resource); - } - } + /** + * Remove the resources from the set. + * @param resources the resources to be removed + */ + public void remove(IResource[] resources) { + for (int i = 0; i < resources.length; i++) { + IResource resource = resources[i]; + remove(resource); + } + } - /** - * Remove the resource and it's descendants to the given depth. - * @param resource the resource to be removed - * @param depth the depth of the removal (one of - * <code>IResource.DEPTH_ZERO, IResource.DEPTH_ONE, IResource.DEPTH_INFINITE)</code> - */ - public abstract void rootRemoved(IResource resource, int depth); + /** + * Remove the resource and it's descendants to the given depth. + * @param resource the resource to be removed + * @param depth the depth of the removal (one of + * <code>IResource.DEPTH_ZERO, IResource.DEPTH_ONE, IResource.DEPTH_INFINITE)</code> + */ + public abstract void rootRemoved(IResource resource, int depth); - /** - * Return a comment describing the change. - * @return a comment describing the change - */ - public abstract String getComment(); + /** + * Return a comment describing the change. + * @return a comment describing the change + */ + public abstract String getComment(); - /** - * Return the name assigned to this set. The name should be - * unique. - * @return the name assigned to this set - */ - public String getName() { - return name; - } + /** + * Return the name assigned to this set. The name should be + * unique. + * @return the name assigned to this set + */ + public String getName() { + return name; + } - /** - * Set the name of the change set. The name of a change - * set can be changed but it is up to subclass to notify - * any interested partied of the name change. - * @param name the new name for the set - */ - protected void setName(String name) { - this.name = name; - } + /** + * Set the name of the change set. The name of a change + * set can be changed but it is up to subclass to notify + * any interested partied of the name change. + * @param name the new name for the set + */ + protected void setName(String name) { + this.name = name; + } - /** - * Return whether the set contains descendants of the given resource - * to the given depth. - * @param resource the resource - * @param depth the depth - * @return whether the set contains descendants of the given resource - * to the given depth - */ + /** + * Return whether the set contains descendants of the given resource + * to the given depth. + * @param resource the resource + * @param depth the depth + * @return whether the set contains descendants of the given resource + * to the given depth + */ public abstract boolean containsChildren(IResource resource, int depth); } |