public class FileGroup extends java.lang.Object implements JDOMExternalizable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANGED_ON_SERVER_ID |
static java.lang.String |
CREATED_ID |
static java.lang.String |
LOCALLY_ADDED_ID |
static java.lang.String |
LOCALLY_REMOVED_ID |
static java.lang.String |
MERGED_ID |
static java.lang.String |
MERGED_WITH_CONFLICT_ID |
static java.lang.String |
MERGED_WITH_PROPERTY_CONFLICT_ID |
static java.lang.String |
MERGED_WITH_TREE_CONFLICT |
static java.lang.String |
MODIFIED_ID |
boolean |
myCanBeAbsent |
java.lang.String |
myId |
java.lang.String |
myStatusName |
boolean |
mySupportsDeletion |
java.lang.String |
myUpdateName |
static java.lang.String |
REMOVED_FROM_REPOSITORY_ID |
static java.lang.String |
RESTORED_ID |
static java.lang.String |
SKIPPED_ID |
static java.lang.String |
SWITCHED_ID |
static java.lang.String |
UNKNOWN_ID |
static java.lang.String |
UPDATED_ID |
Constructor and Description |
---|
FileGroup() |
FileGroup(java.lang.String updateName,
java.lang.String statusName,
boolean supportsDeletion,
java.lang.String id,
boolean canBeAbsent) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String path,
java.lang.String vcsName,
VcsRevisionNumber revision) |
void |
add(java.lang.String path,
VcsKey vcsKey,
VcsRevisionNumber revision) |
void |
addChild(FileGroup child) |
void |
addError(java.lang.String path,
java.lang.String error) |
java.util.List<FileGroup> |
getChildren() |
java.util.Map<java.lang.String,java.lang.String> |
getErrorsMap() |
java.util.Collection<java.lang.String> |
getFiles() |
java.util.List<Pair<java.lang.String,VcsRevisionNumber>> |
getFilesAndRevisions(ProjectLevelVcsManager vcsManager) |
java.lang.String |
getId() |
int |
getImmediateFilesSize() |
SimpleTextAttributes |
getInvalidAttributes() |
VcsRevisionNumber |
getRevision(ProjectLevelVcsManager vcsManager,
java.lang.String path) |
java.lang.String |
getStatusName() |
boolean |
getSupportsDeletion() |
java.util.Collection<com.intellij.openapi.vcs.update.FileGroup.UpdatedFile> |
getUpdatedFiles() |
java.lang.String |
getUpdateName() |
boolean |
isEmpty() |
void |
readExternal(Element element) |
static void |
readGroupsFromElement(java.util.List<? super FileGroup> groups,
Element element) |
void |
remove(java.lang.String path) |
java.lang.String |
toString() |
void |
writeExternal(Element element) |
static void |
writeGroupsToElement(java.util.List<? extends FileGroup> groups,
Element element) |
public java.lang.String myUpdateName
public java.lang.String myStatusName
public boolean mySupportsDeletion
public boolean myCanBeAbsent
public java.lang.String myId
public static final java.lang.String MODIFIED_ID
public static final java.lang.String MERGED_WITH_CONFLICT_ID
public static final java.lang.String MERGED_WITH_TREE_CONFLICT
public static final java.lang.String MERGED_WITH_PROPERTY_CONFLICT_ID
public static final java.lang.String MERGED_ID
public static final java.lang.String UNKNOWN_ID
public static final java.lang.String LOCALLY_ADDED_ID
public static final java.lang.String LOCALLY_REMOVED_ID
public static final java.lang.String UPDATED_ID
public static final java.lang.String REMOVED_FROM_REPOSITORY_ID
public static final java.lang.String CREATED_ID
public static final java.lang.String RESTORED_ID
public static final java.lang.String CHANGED_ON_SERVER_ID
public static final java.lang.String SKIPPED_ID
public static final java.lang.String SWITCHED_ID
public FileGroup(java.lang.String updateName, java.lang.String statusName, boolean supportsDeletion, java.lang.String id, boolean canBeAbsent)
updateName
- - Name for "update" actionstatusName
- - Name for "status action"supportsDeletion
- - User can perform delete action for files from the groupid
- - Using in order to find the groupcanBeAbsent
- - If canBeAbsent == true absent files from the group will not be marked as invalidpublic FileGroup()
public void addChild(FileGroup child)
public boolean getSupportsDeletion()
public void addError(java.lang.String path, java.lang.String error)
public java.util.Map<java.lang.String,java.lang.String> getErrorsMap()
public void add(java.lang.String path, java.lang.String vcsName, VcsRevisionNumber revision)
public void add(java.lang.String path, VcsKey vcsKey, VcsRevisionNumber revision)
public void remove(java.lang.String path)
public int getImmediateFilesSize()
public java.util.Collection<java.lang.String> getFiles()
public java.util.Collection<com.intellij.openapi.vcs.update.FileGroup.UpdatedFile> getUpdatedFiles()
public java.util.List<Pair<java.lang.String,VcsRevisionNumber>> getFilesAndRevisions(ProjectLevelVcsManager vcsManager)
public boolean isEmpty()
public SimpleTextAttributes getInvalidAttributes()
public java.lang.String getId()
public void writeExternal(Element element) throws WriteExternalException
writeExternal
in interface JDOMExternalizable
WriteExternalException
public void readExternal(Element element) throws InvalidDataException
readExternal
in interface JDOMExternalizable
InvalidDataException
public java.util.List<FileGroup> getChildren()
public static void writeGroupsToElement(java.util.List<? extends FileGroup> groups, Element element) throws WriteExternalException
WriteExternalException
public static void readGroupsFromElement(java.util.List<? super FileGroup> groups, Element element) throws InvalidDataException
InvalidDataException
public java.lang.String getStatusName()
public java.lang.String getUpdateName()
public java.lang.String toString()
toString
in class java.lang.Object
public VcsRevisionNumber getRevision(ProjectLevelVcsManager vcsManager, java.lang.String path)