public class RearrangeCodeProcessor extends AbstractLayoutCodeProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMAND_NAME |
myPreviousCodeProcessor, myProject
Constructor and Description |
---|
RearrangeCodeProcessor(AbstractLayoutCodeProcessor previousProcessor) |
RearrangeCodeProcessor(AbstractLayoutCodeProcessor previousProcessor,
SelectionModel selectionModel) |
RearrangeCodeProcessor(Project project,
PsiFile [] files,
java.lang.String commandName,
java.lang.Runnable postRunnable) |
RearrangeCodeProcessor(Project project,
PsiFile [] files,
java.lang.String commandName,
java.lang.Runnable postRunnable,
boolean processChangedTextOnly) |
RearrangeCodeProcessor(PsiFile file) |
RearrangeCodeProcessor(PsiFile file,
SelectionModel selectionModel) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getProgressText() |
java.util.Collection<TextRange> |
getRangesToFormat(PsiFile file,
boolean processChangedTextOnly) |
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 static final java.lang.String COMMAND_NAME
public RearrangeCodeProcessor(AbstractLayoutCodeProcessor previousProcessor)
public RearrangeCodeProcessor(AbstractLayoutCodeProcessor previousProcessor, SelectionModel selectionModel)
public RearrangeCodeProcessor(PsiFile file, SelectionModel selectionModel)
public RearrangeCodeProcessor(PsiFile file)
public RearrangeCodeProcessor(Project project, PsiFile [] files, java.lang.String commandName, java.lang.Runnable postRunnable)
protected java.util.concurrent.FutureTask<java.lang.Boolean> prepareTask(PsiFile file, boolean processChangedTextOnly)
AbstractLayoutCodeProcessor
prepareTask
in class AbstractLayoutCodeProcessor
file
- file to processprocessChangedTextOnly
- flag that defines is only the changed text (in terms of VCS change) should be processedpublic java.util.Collection<TextRange> getRangesToFormat(PsiFile file, boolean processChangedTextOnly) throws FilesTooBigForDiffException
FilesTooBigForDiffException
public static java.lang.String getProgressText()