HELP: How to call the OptimizeImportsAction?
I found the source code on the following site:
http://www.intellij.org/twiki/bin/view/Main/PsiQuestionsAndAnswers
addImportIfNecessary(list, formatterPkg, formatterFQName, psiFactory, selectedClass, project);
but I don't know what the variables
formatterPkg, formatterFQName, psiFactory are for?
Does anyone used this source code in a plugin?
Could someone tell me how to call the "addImportIfNecessary"-Method.
Greetz
ThR
Please sign in to leave a comment.
addImportIfNeccessary is a functionality that is already present in PSI -
so you do not actually need it. See my explanations on Wiki.
If they are not enough feel free to ak questions here.
Friendly,
Dmitry
CoolCode wrote:
--
Dmitry Lomov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"