當前位置: 首頁>>代碼示例>>Java>>正文


Java Extensions.findExtension方法代碼示例

本文整理匯總了Java中com.intellij.openapi.extensions.Extensions.findExtension方法的典型用法代碼示例。如果您正苦於以下問題:Java Extensions.findExtension方法的具體用法?Java Extensions.findExtension怎麽用?Java Extensions.findExtension使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.intellij.openapi.extensions.Extensions的用法示例。


在下文中一共展示了Extensions.findExtension方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getBaseRevision

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
@Nullable
public CharSequence getBaseRevision(final Project project, final String relativeFilePath) {
  final Map<String, Map<String, CharSequence>> map = myAdditionalInfoParser.getResultMap();
  if (! map.isEmpty()) {
    final Map<String, CharSequence> inner = map.get(relativeFilePath);
    if (inner != null) {
      final BaseRevisionTextPatchEP baseRevisionTextPatchEP = Extensions.findExtension(PatchEP.EP_NAME, project, BaseRevisionTextPatchEP.class);
      if (baseRevisionTextPatchEP != null) {
        return inner.get(baseRevisionTextPatchEP.getName());
      }
    }
  }
  return null;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:15,代碼來源:PatchReader.java

示例2: tearDown

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
@Override
protected void tearDown() throws Exception {
  setLanguageLevel(null);
  myFixture.tearDown();
  myFixture = null;
  final PythonLanguageLevelPusher levelPusher = Extensions.findExtension(FilePropertyPusher.EP_NAME, PythonLanguageLevelPusher.class);
  levelPusher.flushLanguageLevelCache();
  super.tearDown();
  clearFields(this);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:11,代碼來源:PyTestCase.java

示例3: getAdditionalResolveScope

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
@Override
public SearchScope getAdditionalResolveScope(@NotNull VirtualFile file, Project project) {
  String fileExtension = file.getExtension();
  if (GroovyFileType.DEFAULT_EXTENSION.equals(fileExtension)) {
    GradleClassFinder gradleClassFinder = Extensions.findExtension(PsiElementFinder.EP_NAME, project, GradleClassFinder.class);
    final List<VirtualFile> roots = gradleClassFinder.getClassRoots();
    for (VirtualFile root : roots) {
      if (VfsUtilCore.isAncestor(root, file, true)) {
        return NonClasspathDirectoriesScope.compose(roots);
      }
    }
  }
  return null;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:15,代碼來源:GradleBuildClasspathResolveScopeEnlarger.java

示例4: getInstance

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static PackagesScopesProvider getInstance(Project project) {
  return Extensions.findExtension(CUSTOM_SCOPES_PROVIDER, project, PackagesScopesProvider.class);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:PackagesScopesProvider.java

示例5: getInstance

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static DefaultScopesProvider getInstance(Project project) {
  return Extensions.findExtension(CUSTOM_SCOPES_PROVIDER, project, DefaultScopesProvider.class);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:DefaultScopesProvider.java

示例6: getInstance

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static ChangeListsScopesProvider getInstance(Project project) {
  return Extensions.findExtension(CUSTOM_SCOPES_PROVIDER, project, ChangeListsScopesProvider.class);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:ChangeListsScopesProvider.java

示例7: getInstance

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static TestScopeProvider getInstance(Project project) {
  return Extensions.findExtension(CUSTOM_SCOPES_PROVIDER, project, TestScopeProvider.class);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:TestScopeProvider.java

示例8: findByClass

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
@NotNull
public static <T extends RootType> T findByClass(Class<T> aClass) {
  return Extensions.findExtension(ROOT_EP, aClass);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:RootType.java

示例9: getInstance

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static PyInlineLocalHandler getInstance() {
  return Extensions.findExtension(EP_NAME, PyInlineLocalHandler.class);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:PyInlineLocalHandler.java

示例10: getInstance

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static JavaCoverageEngine getInstance() {
  return Extensions.findExtension(EP_NAME, JavaCoverageEngine.class);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:JavaCoverageEngine.java

示例11: getInstance

import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static BlazeCoverageEngine getInstance() {
  return Extensions.findExtension(EP_NAME, BlazeCoverageEngine.class);
}
 
開發者ID:bazelbuild,項目名稱:intellij,代碼行數:4,代碼來源:BlazeCoverageEngine.java


注:本文中的com.intellij.openapi.extensions.Extensions.findExtension方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。