Package org.eclipse.team.core.mapping
Interface IChangeGroupingRequestor
public interface IChangeGroupingRequestor
Interface used to allow model tooling to request that a particular set of modified files
be committed together to the repository. It is used by the
ChangeTracker
class to
track changes and request that they be grouped when appropriate. Clients may obtain an
instance of this interface from a repository provider plug-in using the adapter manager in the
following way:
RepositoryProvderType type = .... Object o = type.getAdapter(IChangeGroupingRequestor.class); if (o instanceof IChangeGroupingRequestor) { return (IChangeGroupingRequestor) o; }
Clients may implement this interface.
- Since:
- 3.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureChangesGrouped
(IProject project, IFile[] files, String nameHint) Issue a request to group the provided files together when the changes are committed or checked-in to the repository.boolean
isModified
(IFile file) Return whether the given file is modified with respect to the repository.
-
Method Details
-
ensureChangesGrouped
Issue a request to group the provided files together when the changes are committed or checked-in to the repository.- Parameters:
project
- the project that contains the filesfiles
- the filesnameHint
- a name hint for the resulting set- Throws:
CoreException
- if an error occurs
-
isModified
Return whether the given file is modified with respect to the repository. In other words, return whether the file contains changes that need to be committed or checked-in to the repository.- Parameters:
file
- the file- Returns:
- whether the given file is modified with respect to the repository
- Throws:
CoreException
- if an error occurs while trying to determine the modification state of the file
-