Java 类com.intellij.psi.statistics.impl.StatisticsManagerImpl 实例源码

项目:intellij-ce-playground    文件:XmlCompletionTest.java   
public void testCorrectSelectionInsertion() throws Exception {
  ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
  addResource("http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd",
              getTestDataPath() + "/hibernate-mapping-3.0.dtd");

  configureByFile("CorrectSelectionInsertion.xml");
  selectItem(myFixture.getLookupElements()[4], '\t');
  checkResultByFile("CorrectSelectionInsertion_after.xml");

  CompletionLookupArranger.applyLastCompletionStatisticsUpdate();

  configureByFile("CorrectSelectionInsertion2.xml");
  myFixture.getEditor().getSelectionModel().removeSelection();
  selectItem(myFixture.getLookupElements()[0], '\t');
  checkResultByFile("CorrectSelectionInsertion2_after.xml");
}
项目:tools-idea    文件:XmlCompletionTest.java   
public void testCorrectSelectionInsertion() throws Exception {
  ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
  addResource("http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd",
              getTestDataPath() + "/hibernate-mapping-3.0.dtd");

  configureByFile("CorrectSelectionInsertion.xml");
  selectItem(myFixture.getLookupElements()[4], '\t');
  checkResultByFile("CorrectSelectionInsertion_after.xml");

  CompletionLookupArranger.applyLastCompletionStatisticsUpdate();

  configureByFile("CorrectSelectionInsertion2.xml");
  myFixture.getEditor().getSelectionModel().removeSelection();
  selectItem(myFixture.getLookupElements()[0], '\t');
  checkResultByFile("CorrectSelectionInsertion2_after.xml");
}
项目:intellij-ce-playground    文件:CompletionSortingTestCase.java   
@Override
protected void setUp() throws Exception {
  super.setUp();
  ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
}
项目:intellij-ce-playground    文件:StatisticsManagerTest.java   
@Override
protected void setUp() throws Exception {
  super.setUp();
  ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
}
项目:tools-idea    文件:CompletionSortingTestCase.java   
@Override
protected void setUp() throws Exception {
  super.setUp();
  ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
}
项目:tools-idea    文件:StatisticsManagerTest.java   
@Override
protected void setUp() throws Exception {
  super.setUp();
  ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
}
项目:consulo    文件:StatisticsManagerTest.java   
@RequiredDispatchThread
@Override
protected void setUp() throws Exception {
  super.setUp();
  ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
}
项目:consulo-java    文件:CompletionSortingTestCase.java   
@Override
protected void setUp() throws Exception
{
    super.setUp();
    ((StatisticsManagerImpl) StatisticsManager.getInstance()).enableStatistics(getTestRootDisposable());
}