public class ChangeListWorker
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ChangeListWorker.ChangeListUpdater |
static interface |
ChangeListWorker.PartialChangeTracker |
Constructor and Description |
---|
ChangeListWorker(Project project,
DelayedNotificator delayedNotificator) |
Modifier and Type | Method and Description |
---|---|
LocalChangeList |
addChangeList(java.lang.String name,
java.lang.String description,
java.lang.String id,
ChangeListData data) |
void |
applyChangesFromUpdate(ChangeListWorker updatedWorker,
ChangeListDeltaListener deltaListener) |
ChangeListWorker |
copy() |
java.lang.String |
editComment(java.lang.String name,
java.lang.String newComment) |
boolean |
editData(java.lang.String name,
ChangeListData newData) |
boolean |
editName(java.lang.String fromName,
java.lang.String toName) |
java.util.List<VirtualFile> |
getAffectedFiles() |
java.util.List<LocalChangeList> |
getAffectedLists(Change change) |
java.util.List<LocalChangeList> |
getAffectedLists(java.util.Collection<? extends Change> changes) |
java.util.List<java.io.File> |
getAffectedPaths() |
java.util.Collection<Change> |
getAllChanges() |
Change |
getChangeForPath(FilePath filePath) |
LocalChangeList |
getChangeListById(java.lang.String id) |
LocalChangeList |
getChangeListByName(java.lang.String name) |
java.util.List<LocalChangeList> |
getChangeLists() |
int |
getChangeListsNumber() |
LocalChangeList |
getDefaultList() |
Project |
getProject() |
FileStatus |
getStatus(FilePath file) |
FileStatus |
getStatus(VirtualFile file) |
AbstractVcs |
getVcsFor(Change change) |
ThreeState |
haveChangesUnder(VirtualFile virtualFile) |
MultiMap<LocalChangeList,Change> |
moveChangesTo(java.lang.String name,
java.util.List<? extends Change> changes) |
void |
notifyChangelistsChanged(FilePath path,
java.util.List<java.lang.String> beforeChangeListsIds,
java.util.List<java.lang.String> afterChangeListsIds)
Called without external lock
|
void |
registerChangeTracker(FilePath filePath,
ChangeListWorker.PartialChangeTracker tracker) |
boolean |
removeChangeList(java.lang.String name) |
boolean |
setDefaultList(java.lang.String name) |
boolean |
setReadOnly(java.lang.String name,
boolean value) |
java.lang.String |
toString() |
void |
unregisterChangeTracker(FilePath filePath,
ChangeListWorker.PartialChangeTracker tracker) |
public ChangeListWorker(Project project, DelayedNotificator delayedNotificator)
public ChangeListWorker copy()
public void registerChangeTracker(FilePath filePath, ChangeListWorker.PartialChangeTracker tracker)
public void unregisterChangeTracker(FilePath filePath, ChangeListWorker.PartialChangeTracker tracker)
public Project getProject()
public LocalChangeList getDefaultList()
public LocalChangeList getChangeListByName(java.lang.String name)
public LocalChangeList getChangeListById(java.lang.String id)
public java.util.List<LocalChangeList> getChangeLists()
public int getChangeListsNumber()
public java.util.Collection<Change> getAllChanges()
public java.util.List<LocalChangeList> getAffectedLists(java.util.Collection<? extends Change> changes)
public java.util.List<LocalChangeList> getAffectedLists(Change change)
public java.util.List<java.io.File> getAffectedPaths()
public java.util.List<VirtualFile> getAffectedFiles()
public ThreeState haveChangesUnder(VirtualFile virtualFile)
public AbstractVcs getVcsFor(Change change)
public FileStatus getStatus(VirtualFile file)
public FileStatus getStatus(FilePath file)
public boolean setDefaultList(java.lang.String name)
public boolean setReadOnly(java.lang.String name, boolean value)
public boolean editName(java.lang.String fromName, java.lang.String toName)
public java.lang.String editComment(java.lang.String name, java.lang.String newComment)
public boolean editData(java.lang.String name, ChangeListData newData)
public LocalChangeList addChangeList(java.lang.String name, java.lang.String description, java.lang.String id, ChangeListData data)
public boolean removeChangeList(java.lang.String name)
public MultiMap<LocalChangeList,Change> moveChangesTo(java.lang.String name, java.util.List<? extends Change> changes)
public void notifyChangelistsChanged(FilePath path, java.util.List<java.lang.String> beforeChangeListsIds, java.util.List<java.lang.String> afterChangeListsIds)
public void applyChangesFromUpdate(ChangeListWorker updatedWorker, ChangeListDeltaListener deltaListener)
public java.lang.String toString()
toString
in class java.lang.Object