|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.core.mapping.ChangeTracker
Supports the tracking of related changes for the purpose of grouping then using an IChangeGroupingRequestor
.
Clients may subclass this class.
IChangeGroupingRequestor
Constructor Summary | |
---|---|
ChangeTracker()
Create a change tracker |
Method Summary | |
---|---|
void |
dispose()
Remove any listeners for this tracker. |
protected void |
ensureGrouped(IProject project,
String name,
IFile[] files)
Group the given modified file into a change set with the given name. |
protected abstract void |
handleChanges(IProject project,
IResource[] resources)
The given resources of interest have changed in the given project. |
protected abstract void |
handleProjectChange(IProject project)
Resources of interest in the given project have changed but the specific changes are not known. |
protected boolean |
isChangeOfInterest(IResourceDelta delta)
Return whether the given delta represents a change of interest. |
protected boolean |
isModified(IFile file)
Return whether the given file is modified with respect to the repository provider associated with the file's project. |
protected boolean |
isProjectOfInterest(IProject project)
Return whether the given project is of interest to this tracker. |
protected boolean |
isProjectTracked(IProject project)
Return whether the given project is being tracked. |
protected abstract boolean |
isResourceOfInterest(IResource resource)
Return whether the given resource is of interest to the tracker. |
protected void |
projectTracked(IProject project)
Callback made from trackProject(IProject) when a project is tracked.
|
void |
start()
Start tracking changes. |
protected void |
stopTrackingProject(IProject project)
Stop tracking changes for the given project. |
protected boolean |
trackProject(IProject project)
Track the given project if it has a change set collector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChangeTracker()
Method Detail |
public void start()
public void dispose()
protected boolean isChangeOfInterest(IResourceDelta delta)
delta
- the delta
protected void stopTrackingProject(IProject project)
project
- the projectprotected final boolean isProjectTracked(IProject project)
project
- the project
protected boolean isProjectOfInterest(IProject project)
true
is returned if the
project is accessible. Subclasses may extend but should
still check for project accessibility either by calling
IResource.isAccessible()
or by invoking the
overridden method.
project
- the project
protected abstract boolean isResourceOfInterest(IResource resource)
resource
- the resource
protected abstract void handleChanges(IProject project, IResource[] resources)
project
- the projectresources
- the resourcesprotected abstract void handleProjectChange(IProject project)
project
- the projectprotected final boolean trackProject(IProject project)
project
- the project
protected void projectTracked(IProject project)
trackProject(IProject)
when a project is tracked.
By default, handleProjectChange(IProject)
is called by subclasses may override.
project
- the projectprotected void ensureGrouped(IProject project, String name, IFile[] files) throws CoreException
project
- the projectname
- the unique name used to identify the change setfiles
- the change files to be grouped
CoreException
protected boolean isModified(IFile file) throws CoreException
file
- the file
CoreException
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.