• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java JavaPsiFacadeImpl类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.intellij.psi.impl.JavaPsiFacadeImpl的典型用法代码示例。如果您正苦于以下问题:Java JavaPsiFacadeImpl类的具体用法?Java JavaPsiFacadeImpl怎么用?Java JavaPsiFacadeImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

JavaPsiFacadeImpl类属于com.intellij.psi.impl包,在下文中一共展示了JavaPsiFacadeImpl类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: JavaCoreProjectEnvironment

点赞 3

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
public JavaCoreProjectEnvironment(Disposable parentDisposable, CoreApplicationEnvironment applicationEnvironment) {
  super(parentDisposable, applicationEnvironment);

  myProject.registerService(PsiElementFactory.class, new PsiElementFactoryImpl(myPsiManager));
  myProject.registerService(JavaPsiImplementationHelper.class, createJavaPsiImplementationHelper());
  myProject.registerService(PsiResolveHelper.class, new PsiResolveHelperImpl(myPsiManager));
  myProject.registerService(LanguageLevelProjectExtension.class, new CoreLanguageLevelProjectExtension());
  myProject.registerService(JavaResolveCache.class, new JavaResolveCache(myMessageBus));
  myProject.registerService(JavaCodeStyleSettingsFacade.class, new CoreJavaCodeStyleSettingsFacade());
  myProject.registerService(JavaCodeStyleManager.class, new CoreJavaCodeStyleManager());

  myPackageIndex = createCorePackageIndex();
  myProject.registerService(PackageIndex.class, myPackageIndex);

  myFileManager = createCoreFileManager();
  myProject.registerService(JavaFileManager.class, myFileManager);

  JavaPsiFacadeImpl javaPsiFacade = new JavaPsiFacadeImpl(myProject, myPsiManager, myFileManager, myMessageBus);
  myProject.registerService(JavaPsiFacade.class, javaPsiFacade);
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:21,
代码来源:JavaCoreProjectEnvironment.java

示例2: JavaCoreProjectEnvironment

点赞 3

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
public JavaCoreProjectEnvironment(Disposable parentDisposable, CoreApplicationEnvironment applicationEnvironment) {
  super(parentDisposable, applicationEnvironment);

  myProject.registerService(PsiElementFactory.class, new PsiElementFactoryImpl(myPsiManager));
  myProject.registerService(JavaPsiImplementationHelper.class, createJavaPsiImplementationHelper());
  myProject.registerService(PsiResolveHelper.class, new PsiResolveHelperImpl(myPsiManager));
  myProject.registerService(LanguageLevelProjectExtension.class, new CoreLanguageLevelProjectExtension());
  myProject.registerService(JavaResolveCache.class, new JavaResolveCache(myMessageBus));
  myProject.registerService(JavaCodeStyleSettingsFacade.class, new CoreJavaCodeStyleSettingsFacade());
  myProject.registerService(JavaCodeStyleManager.class, new CoreJavaCodeStyleManager());
  registerProjectExtensionPoint(PsiElementFinder.EP_NAME, PsiElementFinder.class);

  myPackageIndex = createCorePackageIndex();
  myProject.registerService(PackageIndex.class, myPackageIndex);

  myFileManager = createCoreFileManager();
  myProject.registerService(JavaFileManager.class, myFileManager);

  JavaPsiFacadeImpl javaPsiFacade = new JavaPsiFacadeImpl(myProject, myPsiManager, myFileManager, myMessageBus);
  registerProjectComponent(JavaPsiFacade.class, javaPsiFacade);
  myProject.registerService(JavaPsiFacade.class, javaPsiFacade);
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:23,
代码来源:JavaCoreProjectEnvironment.java

示例3: JavaCoreProjectEnvironment

点赞 3

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
public JavaCoreProjectEnvironment(Disposable parentDisposable, CoreApplicationEnvironment applicationEnvironment) {
   super(parentDisposable, applicationEnvironment);

   myProject.registerService(PsiElementFactory.class, new PsiElementFactoryImpl(myPsiManager));
   myProject.registerService(JavaPsiImplementationHelper.class, createJavaPsiImplementationHelper());
   myProject.registerService(PsiResolveHelper.class, new PsiResolveHelperImpl(myPsiManager));
   myProject.registerService(JavaResolveCache.class, new JavaResolveCache(myMessageBus));
   myProject.registerService(JavaCodeStyleSettingsFacade.class, new CoreJavaCodeStyleSettingsFacade());
   myProject.registerService(JavaCodeStyleManager.class, new CoreJavaCodeStyleManager());
   registerProjectExtensionPoint(PsiElementFinder.EP_NAME, PsiElementFinder.class);

/*   myPackageIndex = createCorePackageIndex();
   myProject.registerService(PackageIndex.class, myPackageIndex);     */

   myFileManager = createCoreFileManager();
   myProject.registerService(JavaFileManager.class, myFileManager);

   PsiPackageManager manager = new PsiPackageManagerImpl(getProject(), DirectoryIndex.getInstance(getProject()));

   myProject.registerService(PsiPackageManager.class, manager);

   JavaPsiFacadeImpl javaPsiFacade = new JavaPsiFacadeImpl(myProject, manager);
   registerProjectComponent(JavaPsiFacade.class, javaPsiFacade);
   myProject.registerService(JavaPsiFacade.class, javaPsiFacade);
 }
 

开发者ID:consulo,
项目名称:consulo-java,
代码行数:26,
代码来源:JavaCoreProjectEnvironment.java

示例4: setup

点赞 2

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
public void setup() {
  myFacet.setLightRClass(new AndroidPackageRClass(
    PsiManager.getInstance(myFacet.getModule().getProject()),
    myFacet.getManifest().getPackage().getStringValue(), myFacet.getModule()));

  myPsiElementFinderExtensionPoint = Extensions
    .getArea(myFacet.getModule().getProject())
    .getExtensionPoint(PsiElementFinder.EP_NAME);

  myRFinder = new AndroidResourceClassFinder(myFacet.getModule().getProject());
  myPsiElementFinderExtensionPoint.registerExtension(myRFinder);
  ((JavaPsiFacadeImpl)JavaPsiFacade.getInstance(myFacet.getModule().getProject())).clearFindersCache();
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:14,
代码来源:AndroidInMemoryRUtil.java

示例5: getFacade

点赞 2

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
private JavaPsiFacadeImpl getFacade() {
  return (JavaPsiFacadeImpl)JavaPsiFacade.getInstance(myManager.getProject());
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:4,
代码来源:PsiPackageImpl.java

示例6: tearDown

点赞 2

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
public void tearDown() throws Exception {
  myPsiElementFinderExtensionPoint.unregisterExtension(myRFinder);
  ((JavaPsiFacadeImpl)JavaPsiFacade.getInstance(myFacet.getModule().getProject())).clearFindersCache();
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:5,
代码来源:AndroidInMemoryRUtil.java

示例7: ImportsComparator

点赞 2

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
public ImportsComparator(Project project) {
	javaPsiFacade = JavaPsiFacadeImpl.getInstance(project);
	scope = GlobalSearchScope.allScope(project);
}
 

开发者ID:krasa,
项目名称:EclipseCodeFormatter,
代码行数:5,
代码来源:ImportsComparator.java

示例8: getFacade

点赞 2

import com.intellij.psi.impl.JavaPsiFacadeImpl; //导入依赖的package包/类
private JavaPsiFacadeImpl getFacade()
{
	return (JavaPsiFacadeImpl) JavaPsiFacade.getInstance(myManager.getProject());
}
 

开发者ID:consulo,
项目名称:consulo-java,
代码行数:5,
代码来源:PsiPackageImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)