当前位置: 首页>>代码示例>>Java>>正文


Java FacetTypeId类代码示例

本文整理汇总了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);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:AddFacetOfTypeAction.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:FacetTreeModel.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:FacetModelBase.java

示例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();
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:Facets.java

示例6: selectFramework

import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
protected FrameworkSupportInModuleConfigurable selectFramework(@NotNull FacetTypeId<?> id) {
  return selectFramework(FacetBasedFrameworkSupportProvider.getProviderId(id));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FrameworkSupportProviderTestCase.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:FrameworkSupportProviderTestCase.java

示例8: FacetBasedPackagingSourceItemsProvider

import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
protected FacetBasedPackagingSourceItemsProvider(FacetTypeId<F> facetTypeId, PackagingElementType<E> elementType) {
  myFacetTypeId = facetTypeId;
  myElementType = elementType;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:FacetBasedPackagingSourceItemsProvider.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:FacetBasedPackagingElementType.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AbstractIdeModifiableModelsProvider.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:AbstractIdeModifiableModelsProvider.java

示例13: getFacetsByType

import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@NotNull
<F extends Facet> Collection<F> getFacetsByType(Module module, FacetTypeId<F> type);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:FacetsProvider.java

示例14: findFacet

import com.intellij.facet.FacetTypeId; //导入依赖的package包/类
@Nullable
<F extends Facet> F findFacet(Module module, FacetTypeId<F> type, String name);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:FacetsProvider.java

示例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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:FacetModelBase.java


注:本文中的com.intellij.facet.FacetTypeId类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。