本文整理匯總了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;
}
示例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);
}
示例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);
}
示例5: getInstance
import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static DefaultScopesProvider getInstance(Project project) {
return Extensions.findExtension(CUSTOM_SCOPES_PROVIDER, project, DefaultScopesProvider.class);
}
示例6: getInstance
import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static ChangeListsScopesProvider getInstance(Project project) {
return Extensions.findExtension(CUSTOM_SCOPES_PROVIDER, project, ChangeListsScopesProvider.class);
}
示例7: getInstance
import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static TestScopeProvider getInstance(Project project) {
return Extensions.findExtension(CUSTOM_SCOPES_PROVIDER, project, TestScopeProvider.class);
}
示例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);
}
示例9: getInstance
import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static PyInlineLocalHandler getInstance() {
return Extensions.findExtension(EP_NAME, PyInlineLocalHandler.class);
}
示例10: getInstance
import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static JavaCoverageEngine getInstance() {
return Extensions.findExtension(EP_NAME, JavaCoverageEngine.class);
}
示例11: getInstance
import com.intellij.openapi.extensions.Extensions; //導入方法依賴的package包/類
public static BlazeCoverageEngine getInstance() {
return Extensions.findExtension(EP_NAME, BlazeCoverageEngine.class);
}