本文整理汇总了Java中com.intellij.openapi.roots.ui.configuration.FacetsProvider类的典型用法代码示例。如果您正苦于以下问题:Java FacetsProvider类的具体用法?Java FacetsProvider怎么用?Java FacetsProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FacetsProvider类属于com.intellij.openapi.roots.ui.configuration包,在下文中一共展示了FacetsProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: FacetEditorContextBase
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
public FacetEditorContextBase(@NotNull Facet facet, final @Nullable FacetEditorContext parentContext, final @Nullable FacetsProvider facetsProvider,
final @NotNull ModulesProvider modulesProvider,
final UserDataHolder sharedModuleData,
final UserDataHolder sharedProjectData) {
myFacet = facet;
mySharedProjectData = sharedProjectData;
mySharedModuleData = sharedModuleData;
myParentContext = parentContext;
myModulesProvider = modulesProvider;
myFacetsProvider = facetsProvider != null ? facetsProvider : DefaultFacetsProvider.INSTANCE;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:FacetEditorContextBase.java
示例2: getProviders
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
private static List<FrameworkSupportInModuleProvider> getProviders(@NotNull ModuleType moduleType,
@Nullable Module module,
@NotNull FacetsProvider facetsProvider) {
List<FrameworkSupportInModuleProvider> allProviders = getAllProviders();
ArrayList<FrameworkSupportInModuleProvider> result = new ArrayList<FrameworkSupportInModuleProvider>();
for (FrameworkSupportInModuleProvider provider : allProviders) {
if (provider.isEnabledForModuleType(moduleType) && (module == null || provider.canAddSupport(module, facetsProvider))) {
result.add(provider);
}
}
return result;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:FrameworkSupportUtil.java
示例3: hasProviders
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
public static boolean hasProviders(final Module module, @NotNull FacetsProvider facetsProvider) {
List<FrameworkSupportInModuleProvider> providers = getProviders(module, facetsProvider);
for (FrameworkSupportInModuleProvider provider : providers) {
if (provider.getFrameworkType().getUnderlyingFrameworkTypeId() == null) {
return true;
}
}
return false;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:FrameworkSupportUtil.java
示例4: findFacet
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
@Nullable
public F findFacet(@NotNull ModulesProvider modulesProvider, @NotNull FacetsProvider facetsProvider) {
final Module module = modulesProvider.getModule(myModuleName);
if (module == null) return null;
final FacetType<F, ?> type = getFacetType();
if (type == null) return null;
return facetsProvider.findFacet(module, type.getId(), myFacetName);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:FacetPointerImpl.java
示例5: getFacetName
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
@NotNull
public String getFacetName(@NotNull ModulesProvider modulesProvider, @NotNull FacetsProvider facetsProvider) {
if (myFacet != null) {
return modulesProvider.getFacetModel(myFacet.getModule()).getFacetName(myFacet);
}
return myFacetName;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:FacetPointerImpl.java
示例6: createEditor
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
private void createEditor() {
if (myModule == null) return;
myModifiableModel = ApplicationManager.getApplication().runReadAction(new Computable<ModifiableRootModel>() {
@Override
public ModifiableRootModel compute() {
return ModuleRootManager.getInstance(myModule).getModifiableModel();
}
});
final ModuleConfigurationStateImpl moduleConfigurationState =
new ModuleConfigurationStateImpl(myModule.getProject(), new DefaultModulesProvider(myModule.getProject())) {
@Override
public ModifiableRootModel getRootModel() {
return myModifiableModel;
}
@Override
public FacetsProvider getFacetsProvider() {
return DefaultFacetsProvider.INSTANCE;
}
};
myEditor = createEditor(myModule, moduleConfigurationState);
JComponent component = ApplicationManager.getApplication().runReadAction(new Computable<JComponent>() {
@Override
public JComponent compute() {
return myEditor.createComponent();
}
});
myTopPanel.add(component, BorderLayout.CENTER);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:32,代码来源:PyContentEntriesModuleConfigurable.java
示例7: isSupportAlreadyAdded
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
public boolean isSupportAlreadyAdded( @NotNull Module module, @NotNull FacetsProvider facetsProvider )
{
PsiClass psiClass = JavaPsiFacade.getInstance( module.getProject() ).findClass( ManifoldHost.class.getName(), module.getModuleWithDependenciesAndLibrariesScope( false ) );
return psiClass != null;
}
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:7,代码来源:ManFrameworkSupportProvider.java
示例8: isSupportAlreadyAdded
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
public boolean isSupportAlreadyAdded(@NotNull Module module, @NotNull FacetsProvider facetsProvider) {
return MuleSdk.getFrom(module) != null;
}
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:5,代码来源:MuleFrameworkSupportProvider.java
示例9: getFacetsProvider
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
@NotNull
public FacetsProvider getFacetsProvider() {
return myParent.getFacetsProvider();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactEditorContextImpl.java
示例10: getFacetsProvider
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
@NotNull
public FacetsProvider getFacetsProvider() {
return myContext.getModulesConfigurator().getFacetsConfigurator();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactsStructureConfigurableContextImpl.java
示例11: getFacetsProvider
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@NotNull
public FacetsProvider getFacetsProvider() {
return myFacetsProvider;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:FacetEditorContextBase.java
示例12: isSupportAlreadyAdded
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
public boolean isSupportAlreadyAdded(@NotNull Module module, @NotNull FacetsProvider facetsProvider) {
return myProvider.isSupportAlreadyAdded(module, facetsProvider);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:OldFrameworkSupportProviderWrapper.java
示例13: isSupportAlreadyAdded
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
public boolean isSupportAlreadyAdded(@NotNull Module module, @NotNull FacetsProvider facetsProvider) {
return false;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FrameworkSupportInModuleProvider.java
示例14: canAddSupport
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
public boolean canAddSupport(@NotNull Module module, @NotNull FacetsProvider facetsProvider) {
return !isSupportAlreadyAdded(module, facetsProvider);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FrameworkSupportInModuleProvider.java
示例15: getFacetsProvider
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@NotNull
FacetsProvider getFacetsProvider();
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:PackagingElementResolvingContext.java
示例16: getFacetsProvider
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@NotNull
public FacetsProvider getFacetsProvider() {
return DefaultFacetsProvider.INSTANCE;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:DefaultPackagingElementResolvingContext.java
示例17: getFacetsProvider
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
@NotNull
public FacetsProvider getFacetsProvider() {
return DefaultFacetsProvider.INSTANCE;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactsTestCase.java
示例18: isSupportAlreadyAdded
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Override
public boolean isSupportAlreadyAdded(@NotNull final Module module, @NotNull FacetsProvider facetsProvider) {
return !facetsProvider.getFacetsByType(module, myFacetType.getId()).isEmpty();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:FacetBasedFrameworkSupportProvider.java
示例19: findFacet
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@Nullable
F findFacet(@NotNull ModulesProvider modulesProvider, @NotNull FacetsProvider facetsProvider);
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:FacetPointer.java
示例20: getFacetName
import com.intellij.openapi.roots.ui.configuration.FacetsProvider; //导入依赖的package包/类
@NotNull
String getFacetName(@NotNull ModulesProvider modulesProvider, @NotNull FacetsProvider facetsProvider);
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:FacetPointer.java
注:本文中的com.intellij.openapi.roots.ui.configuration.FacetsProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论