register PsiResolveHelper as an independent service

This commit is contained in:
Dmitry Jemerov
2011-10-04 16:03:53 +02:00
parent c01b2ef708
commit 308a75c3e0
5 changed files with 16 additions and 11 deletions
@@ -15,6 +15,8 @@
*/
package com.intellij.psi;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import com.intellij.pom.java.LanguageLevel;
import com.intellij.psi.infos.CandidateInfo;
import org.jetbrains.annotations.NotNull;
@@ -26,6 +28,15 @@ import org.jetbrains.annotations.Nullable;
* @see JavaPsiFacade#getResolveHelper()
*/
public interface PsiResolveHelper {
class SERVICE {
private SERVICE() {
}
public static PsiResolveHelper getInstance(Project project) {
return ServiceManager.getService(project, PsiResolveHelper.class);
}
}
/**
* Resolves a constructor.
* The resolved constructor is not necessarily accessible from the point of the call,