Java 类com.intellij.openapi.fileTypes.MockLanguageFileType 实例源码

项目:intellij-ce-playground    文件:CustomFileTypeCompletionTest.java   
public void testPlainTextSubstitution() throws IOException {
  FileTypeManagerEx.getInstanceEx().registerFileType(MockLanguageFileType.INSTANCE, "xxx");
  try {
    configureFromFileText("a.xxx", "aaa a<caret>");
    complete();
    checkResultByText("aaa aaa<caret>");
  }
  finally {
    FileTypeManagerEx.getInstanceEx().unregisterFileType(MockLanguageFileType.INSTANCE);

  }
}
项目:tools-idea    文件:CustomFileTypeCompletionTest.java   
public void testPlainTextSubstitution() throws IOException {
  FileTypeManagerEx.getInstanceEx().registerFileType(MockLanguageFileType.INSTANCE, "xxx");
  try {
    configureFromFileText("a.xxx", "aaa a<caret>");
    complete();
    checkResultByText("aaa aaa<caret>");
  }
  finally {
    FileTypeManagerEx.getInstanceEx().unregisterFileType(MockLanguageFileType.INSTANCE);

  }
}
项目:consulo-java    文件:CustomFileTypeCompletionTest.java   
public void testPlainTextSubstitution() throws IOException {
  FileTypeManagerEx.getInstanceEx().registerFileType(MockLanguageFileType.INSTANCE, "xxx");
  try {
    configureFromFileText("a.xxx", "aaa a<caret>");
    complete();
    checkResultByText("aaa aaa<caret>");
  }
  finally {
    FileTypeManagerEx.getInstanceEx().unregisterFileType(MockLanguageFileType.INSTANCE);

  }
}