public abstract class AbstractLayoutCodeProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AbstractLayoutCodeProcessor |
myPreviousCodeProcessor |
protected Project |
myProject |
Modifier | Constructor and Description |
---|---|
protected |
AbstractLayoutCodeProcessor(AbstractLayoutCodeProcessor previous,
java.lang.String commandName,
java.lang.String progressText) |
protected |
AbstractLayoutCodeProcessor(Project project,
Module module,
java.lang.String commandName,
java.lang.String progressText,
boolean processChangedTextOnly) |
protected |
AbstractLayoutCodeProcessor(Project project,
PsiDirectory directory,
boolean includeSubdirs,
java.lang.String progressText,
java.lang.String commandName,
boolean processChangedTextOnly) |
protected |
AbstractLayoutCodeProcessor(Project project,
PsiFile [] files,
java.lang.String progressText,
java.lang.String commandName,
java.lang.Runnable postRunnable,
boolean processChangedTextOnly) |
protected |
AbstractLayoutCodeProcessor(Project project,
PsiFile file,
java.lang.String progressText,
java.lang.String commandName,
boolean processChangedTextOnly) |
protected |
AbstractLayoutCodeProcessor(Project project,
java.lang.String commandName,
java.lang.String progressText,
boolean processChangedTextOnly) |
Modifier and Type | Method and Description |
---|---|
void |
addFileFilter(VirtualFileFilter filter) |
LayoutCodeInfoCollector |
getInfoCollector() |
protected abstract java.util.concurrent.FutureTask<java.lang.Boolean> |
prepareTask(PsiFile file,
boolean processChangedTextOnly)
Ensures that given file is ready to reformatting and prepares it if necessary.
|
java.util.concurrent.FutureTask<java.lang.Boolean> |
preprocessFile(PsiFile file,
boolean processChangedTextOnly)
Deprecated.
This method incorrectly combines several
prepareTask(com.intellij.psi.PsiFile, boolean) results,
so that some of them might get outdated after previous results are executed in write action.
Use run() or runWithoutProgress() instead. |
void |
run() |
void |
runWithoutProgress() |
void |
setCollectInfo(boolean isCollectInfo) |
void |
setPostRunnable(java.lang.Runnable postRunnable) |
protected final Project myProject
protected AbstractLayoutCodeProcessor myPreviousCodeProcessor
protected AbstractLayoutCodeProcessor(Project project, java.lang.String commandName, java.lang.String progressText, boolean processChangedTextOnly)
protected AbstractLayoutCodeProcessor(AbstractLayoutCodeProcessor previous, java.lang.String commandName, java.lang.String progressText)
protected AbstractLayoutCodeProcessor(Project project, Module module, java.lang.String commandName, java.lang.String progressText, boolean processChangedTextOnly)
protected AbstractLayoutCodeProcessor(Project project, PsiDirectory directory, boolean includeSubdirs, java.lang.String progressText, java.lang.String commandName, boolean processChangedTextOnly)
protected AbstractLayoutCodeProcessor(Project project, PsiFile file, java.lang.String progressText, java.lang.String commandName, boolean processChangedTextOnly)
public void setPostRunnable(java.lang.Runnable postRunnable)
public void setCollectInfo(boolean isCollectInfo)
public void addFileFilter(VirtualFileFilter filter)
protected abstract java.util.concurrent.FutureTask<java.lang.Boolean> prepareTask(PsiFile file, boolean processChangedTextOnly) throws IncorrectOperationException
file
- file to processprocessChangedTextOnly
- flag that defines is only the changed text (in terms of VCS change) should be processedIncorrectOperationException
- if unexpected exception occurred during formatting@Deprecated public java.util.concurrent.FutureTask<java.lang.Boolean> preprocessFile(PsiFile file, boolean processChangedTextOnly) throws IncorrectOperationException
prepareTask(com.intellij.psi.PsiFile, boolean)
results,
so that some of them might get outdated after previous results are executed in write action.
Use run()
or runWithoutProgress()
instead.IncorrectOperationException
public void run()
public void runWithoutProgress() throws IncorrectOperationException
IncorrectOperationException
public LayoutCodeInfoCollector getInfoCollector()