Search in sources :

Example 1 with GroovyImportOptimizer

use of org.jetbrains.plugins.groovy.editor.GroovyImportOptimizer in project intellij-community by JetBrains.

the class GroovyOptimizeImportsFix method invoke.

@Override
public void invoke(@NotNull Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
    final Runnable optimize = new GroovyImportOptimizer().processFile(file);
    invokeOnTheFlyImportOptimizer(optimize, file, editor);
}
Also used : GroovyImportOptimizer(org.jetbrains.plugins.groovy.editor.GroovyImportOptimizer)

Aggregations

GroovyImportOptimizer (org.jetbrains.plugins.groovy.editor.GroovyImportOptimizer)1