本文整理汇总了Java中com.intellij.facet.FacetTypeId类的典型用法代码示例。如果您正苦于以下问题:Java FacetTypeId类的具体用法?Java FacetTypeId怎么用?Java FacetTypeId使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FacetTypeId类属于com.intellij.facet包,在下文中一共展示了FacetTypeId类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: excludeFrameworkDetection
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
private void excludeFrameworkDetection(final Project project, FacetTypeId facetTypeId) {
final DetectionExcludesConfiguration configuration = DetectionExcludesConfiguration.getInstance(project);
final FacetType facetType = FacetTypeRegistry.getInstance().findFacetType(facetTypeId);
final FrameworkType frameworkType = FrameworkDetectionUtil.findFrameworkTypeForFacetDetector(facetType);
if (frameworkType != null) {
configuration.addExcludedFramework(frameworkType);
}
}
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:10,代码来源:ImportProjectProgressModalWindow.java
示例2: actionPerformed
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@Override
public void actionPerformed(AnActionEvent e) {
final FacetType type = myFacetType;
if (type == null) return;
final FacetTypeId underlyingFacetType = type.getUnderlyingFacetType();
if (underlyingFacetType == null) {
addFacetToModule(type);
}
else {
addSubFacet(type, underlyingFacetType);
}
}
示例3: hasFacetOfType
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
public boolean hasFacetOfType(final @Nullable FacetInfo parent, final FacetTypeId typeId) {
final List<FacetInfo> list = getChildren(parent);
for (FacetInfo info : list) {
if (info.getFacetType().getId() == typeId) {
return true;
}
}
return false;
}
示例4: findFacet
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@Override
@Nullable
public <F extends Facet> F findFacet(final FacetTypeId<F> type, final String name) {
final Collection<F> fs = getFacetsByType(type);
for (F f : fs) {
if (f.getName().equals(name)) {
return f;
}
}
return null;
}
示例5: removeAllFacetsOfType
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
public static <T extends Facet> void removeAllFacetsOfType(@NotNull Module module, @NotNull FacetTypeId<T> typeId) {
FacetManager facetManager = FacetManager.getInstance(module);
Collection<T> facets = facetManager.getFacetsByType(typeId);
if (!facets.isEmpty()) {
ModifiableFacetModel model = facetManager.createModifiableModel();
try {
for (T facet : facets) {
model.removeFacet(facet);
}
}
finally {
model.commit();
}
}
}
示例6: selectFramework
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
protected FrameworkSupportInModuleConfigurable selectFramework(@NotNull FacetTypeId<?> id) {
return selectFramework(FacetBasedFrameworkSupportProvider.getProviderId(id));
}
示例7: getFacet
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@NotNull
protected <F extends Facet> F getFacet(FacetTypeId<F> id) {
final F facet = FacetManager.getInstance(myModule).getFacetByType(id);
assertNotNull(id + " facet not found", facet);
return facet;
}
示例8: FacetBasedPackagingSourceItemsProvider
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
protected FacetBasedPackagingSourceItemsProvider(FacetTypeId<F> facetTypeId, PackagingElementType<E> elementType) {
myFacetTypeId = facetTypeId;
myElementType = elementType;
}
示例9: getExistentFacets
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@NotNull
protected Collection<? extends Facet> getExistentFacets(FacetTypeId<?> underlyingFacetType) {
return Collections.emptyList();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:FacetBasedDetectedFrameworkDescriptionInWizard.java
示例10: FacetBasedPackagingElementType
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
protected FacetBasedPackagingElementType(@NotNull @NonNls String id, @NotNull String presentableName, FacetTypeId<F> facetType) {
super(id, presentableName);
myFacetType = facetType;
}
示例11: getFacetsByType
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@NotNull
public <F extends Facet> Collection<F> getFacetsByType(Module module, FacetTypeId<F> type) {
return getModifiableFacetModel(module).getFacetsByType(type);
}
示例12: findFacet
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
public <F extends Facet> F findFacet(Module module, FacetTypeId<F> type, String name) {
return getModifiableFacetModel(module).findFacet(type, name);
}
示例13: getFacetsByType
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@NotNull
<F extends Facet> Collection<F> getFacetsByType(Module module, FacetTypeId<F> type);
示例14: findFacet
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@Nullable
<F extends Facet> F findFacet(Module module, FacetTypeId<F> type, String name);
示例15: getFacetByType
import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@Override
@Nullable
public <F extends Facet> F getFacetByType(@NotNull final Facet underlyingFacet, final FacetTypeId<F> typeId) {
final Collection<F> fs = getFacetsByType(underlyingFacet, typeId);
return fs.isEmpty() ? null : fs.iterator().next();
}