public class ReformatCodeProcessor extends AbstractLayoutCodeProcessor
myPreviousCodeProcessor, myProject
Constructor and Description |
---|
ReformatCodeProcessor(AbstractLayoutCodeProcessor processor,
boolean processChangedTextOnly) |
ReformatCodeProcessor(AbstractLayoutCodeProcessor processor,
SelectionModel selectionModel) |
ReformatCodeProcessor(Project project,
boolean processChangedTextOnly) |
ReformatCodeProcessor(Project project,
Module module,
boolean processChangedTextOnly) |
ReformatCodeProcessor(Project project,
PsiDirectory directory,
boolean includeSubdirs,
boolean processChangedTextOnly) |
ReformatCodeProcessor(Project project,
PsiFile[] files,
java.lang.Runnable postRunnable,
boolean processChangedTextOnly) |
ReformatCodeProcessor(Project project,
PsiFile[] files,
java.lang.String commandName,
java.lang.Runnable postRunnable,
boolean processChangedTextOnly) |
ReformatCodeProcessor(Project project,
PsiFile file,
TextRange range,
boolean processChangedTextOnly) |
ReformatCodeProcessor(PsiFile file,
boolean processChangedTextOnly) |
ReformatCodeProcessor(PsiFile file,
SelectionModel selectionModel) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCommandName() |
protected 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.
|
addFileFilter, getInfoCollector, preprocessFile, run, runWithoutProgress, setCollectInfo, setPostRunnable
public ReformatCodeProcessor(Project project, boolean processChangedTextOnly)
public ReformatCodeProcessor(PsiFile file, SelectionModel selectionModel)
public ReformatCodeProcessor(AbstractLayoutCodeProcessor processor, SelectionModel selectionModel)
public ReformatCodeProcessor(AbstractLayoutCodeProcessor processor, boolean processChangedTextOnly)
public ReformatCodeProcessor(Project project, Module module, boolean processChangedTextOnly)
public ReformatCodeProcessor(Project project, PsiDirectory directory, boolean includeSubdirs, boolean processChangedTextOnly)
public ReformatCodeProcessor(Project project, PsiFile file, TextRange range, boolean processChangedTextOnly)
public ReformatCodeProcessor(PsiFile file, boolean processChangedTextOnly)
public ReformatCodeProcessor(Project project, PsiFile[] files, java.lang.Runnable postRunnable, boolean processChangedTextOnly)
protected java.util.concurrent.FutureTask<java.lang.Boolean> prepareTask(PsiFile file, boolean processChangedTextOnly) throws IncorrectOperationException
AbstractLayoutCodeProcessor
prepareTask
in class AbstractLayoutCodeProcessor
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 formattingpublic static java.lang.String getCommandName()