problem in import com.intellij.openapi

I made the right import of com.intellij.openapi but I have always errors and the compiler does not know the imported classes I used. Example :

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.application.impl.ApplicationImpl;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.intellij.psi.*;
import com.intellij.psi.impl.JavaFactoryProvider;
import com.intellij.refactoring.JavaRefactoringFactory;

When I make the cursor up to JavaRefactoringFactory for example I see the follwing message "can not resolve the symbol ...". Is someone has an idea about this problem ?

Comment actions Permalink

Please make sure you setup a proper plugin JDK, see instructions here:

Comment actions Permalink

Thanks a lot, it works now


Please sign in to leave a comment.