public class FormatChangedTextUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
static Key<java.lang.CharSequence> |
TEST_REVISION_CONTENT |
Modifier | Constructor and Description |
---|---|
protected |
FormatChangedTextUtil() |
Modifier and Type | Method and Description |
---|---|
int |
calculateChangedLinesNumber(Document document,
java.lang.CharSequence contentFromVcs) |
<T extends PsiElement> |
getChangedElements(Project project,
Change [] changes,
java.util.function.Function<? super VirtualFile,? extends java.util.List<T>> elementsConvertor) |
static java.util.List<PsiFile> |
getChangedFiles(Project project,
java.util.Collection<? extends Change> changes) |
static java.util.List<PsiFile> |
getChangedFilesFromDirs(Project project,
java.util.List<? extends PsiDirectory> dirs) |
ChangedRangesInfo |
getChangedRangesInfo(PsiFile file) |
java.util.List<TextRange> |
getChangedTextRanges(Project project,
PsiFile file) |
static FormatChangedTextUtil |
getInstance() |
static boolean |
hasChanges(Module module) |
static boolean |
hasChanges(Project project) |
static boolean |
hasChanges(PsiDirectory directory) |
static boolean |
hasChanges(PsiFile file) |
static boolean |
hasChanges(VirtualFile [] files,
Project project) |
static boolean |
hasChanges(VirtualFile file,
Project project) |
boolean |
isChangeNotTrackedForFile(Project project,
PsiFile file) |
void |
runHeavyModificationTask(Project project,
Document document,
java.lang.Runnable o)
Allows to temporally suppress document modification tracking.
|
public static final Key<java.lang.CharSequence> TEST_REVISION_CONTENT
protected static final Logger LOG
public static FormatChangedTextUtil getInstance()
public static boolean hasChanges(PsiFile file)
public static boolean hasChanges(PsiDirectory directory)
public static boolean hasChanges(VirtualFile file, Project project)
public static boolean hasChanges(VirtualFile [] files, Project project)
public static boolean hasChanges(Module module)
public static boolean hasChanges(Project project)
public static java.util.List<PsiFile> getChangedFilesFromDirs(Project project, java.util.List<? extends PsiDirectory> dirs)
public static java.util.List<PsiFile> getChangedFiles(Project project, java.util.Collection<? extends Change> changes)
public java.util.List<TextRange> getChangedTextRanges(Project project, PsiFile file)
public int calculateChangedLinesNumber(Document document, java.lang.CharSequence contentFromVcs)
public ChangedRangesInfo getChangedRangesInfo(PsiFile file)
public <T extends PsiElement> java.util.List<T> getChangedElements(Project project, Change [] changes, java.util.function.Function<? super VirtualFile,? extends java.util.List<T>> elementsConvertor)
public void runHeavyModificationTask(Project project, Document document, java.lang.Runnable o)