public class OptimizeImportsProcessor extends AbstractLayoutCodeProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMAND_NAME
Deprecated.
Use
getCommandName() instead |
myPreviousCodeProcessor, myProject
Constructor and Description |
---|
OptimizeImportsProcessor(AbstractLayoutCodeProcessor processor) |
OptimizeImportsProcessor(Project project) |
OptimizeImportsProcessor(Project project,
Module module) |
OptimizeImportsProcessor(Project project,
PsiDirectory directory,
boolean includeSubdirs) |
OptimizeImportsProcessor(Project project,
PsiDirectory directory,
boolean includeSubdirs,
boolean processOnlyVcsChangedFiles) |
OptimizeImportsProcessor(Project project,
PsiFile file) |
OptimizeImportsProcessor(Project project,
PsiFile [] files,
java.lang.Runnable postRunnable) |
OptimizeImportsProcessor(Project project,
PsiFile [] files,
java.lang.String commandName,
java.lang.Runnable postRunnable) |
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
@Deprecated public static final java.lang.String COMMAND_NAME
getCommandName()
insteadpublic OptimizeImportsProcessor(Project project)
public OptimizeImportsProcessor(Project project, PsiDirectory directory, boolean includeSubdirs)
public OptimizeImportsProcessor(Project project, PsiDirectory directory, boolean includeSubdirs, boolean processOnlyVcsChangedFiles)
public OptimizeImportsProcessor(Project project, PsiFile [] files, java.lang.Runnable postRunnable)
public OptimizeImportsProcessor(Project project, PsiFile [] files, java.lang.String commandName, java.lang.Runnable postRunnable)
public OptimizeImportsProcessor(AbstractLayoutCodeProcessor processor)
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 static java.lang.String getCommandName()