Java 类com.intellij.psi.impl.source.JavaDummyHolderFactory 实例源码

项目:intellij-ce-playground    文件:JavaPsiFacadeImpl.java   
public JavaPsiFacadeImpl(Project project,
                         PsiManager psiManager,
                         JavaFileManager javaFileManager,
                         MessageBus bus) {
  myProject = project;
  myFileManager = javaFileManager;
  myConstantEvaluationHelper = new PsiConstantEvaluationHelperImpl();

  final PsiModificationTracker modificationTracker = psiManager.getModificationTracker();

  if (bus != null) {
    bus.connect().subscribe(PsiModificationTracker.TOPIC, new PsiModificationTracker.Listener() {
      private long lastTimeSeen = -1L;

      @Override
      public void modificationCountChanged() {
        myClassCache.clear();
        final long now = modificationTracker.getJavaStructureModificationCount();
        if (lastTimeSeen != now) {
          lastTimeSeen = now;
          myPackageCache.clear();
        }
      }
    });
  }

  DummyHolderFactory.setFactory(new JavaDummyHolderFactory());
}
项目:tools-idea    文件:JavaPsiFacadeImpl.java   
public JavaPsiFacadeImpl(Project project,
                         PsiManagerImpl psiManager,
                         JavaFileManager javaFileManager,
                         MessageBus bus) {
  myProject = project;
  myFileManager = javaFileManager;
  myNameHelper = new PsiNameHelperImpl(this);
  myConstantEvaluationHelper = new PsiConstantEvaluationHelperImpl();

  final PsiModificationTracker modificationTracker = psiManager.getModificationTracker();

  if (bus != null) {
    bus.connect().subscribe(PsiModificationTracker.TOPIC, new PsiModificationTracker.Listener() {
      private long lastTimeSeen = -1L;

      @Override
      public void modificationCountChanged() {
        final long now = modificationTracker.getJavaStructureModificationCount();
        if (lastTimeSeen != now) {
          lastTimeSeen = now;
          myPackageCache = null;
        }
      }
    });
  }

  DummyHolderFactory.setFactory(new JavaDummyHolderFactory());
  JavaElementType.ANNOTATION.getIndex(); // Initialize stubs.
}
项目:consulo-java    文件:JavaDummyHolderComponent.java   
public JavaDummyHolderComponent()
{
    DummyHolderFactory.setFactory(new JavaDummyHolderFactory());
}