com.intellij.facet.FacetType Java Examples

The following examples show how to use com.intellij.facet.FacetType. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MuleFacet.java    From mule-intellij-plugins with Apache License 2.0 5 votes vote down vote up
public MuleFacet(FacetType facetType,
                 Module module,
                 String name,
                 MuleFacetConfiguration configuration,
                 Facet underlyingFacet) {
    super(facetType, module, name, configuration, underlyingFacet);
}
 
Example #2
Source File: DemoFacet.java    From intellij-sdk-docs with Apache License 2.0 5 votes vote down vote up
public DemoFacet(FacetType facetType,
                 Module module,
                 String name,
                 DemoFacetConfiguration configuration,
                 Facet underlyingFacet) {
  super(facetType, module, name, configuration, underlyingFacet);
}
 
Example #3
Source File: DWFacet.java    From intellij-demandware with MIT License 5 votes vote down vote up
public DWFacet(FacetType facetType,
               Module module,
               String name,
               DWFacetConfiguration configuration,
               Facet underlyingFacet) {
    super(facetType, module, name, configuration, underlyingFacet);
    Disposer.register(this, configuration);
}
 
Example #4
Source File: PolygeneFacet.java    From attic-polygene-java with Apache License 2.0 5 votes vote down vote up
public PolygeneFacet( @NotNull FacetType facetType,
                  @NotNull Module module,
                  String name,
                  @NotNull PolygeneFacetConfiguration configuration,
                  Facet underlyingFacet
)
{
    super( facetType, module, name, configuration, underlyingFacet );
}
 
Example #5
Source File: MindMapFacet.java    From netbeans-mmd-plugin with Apache License 2.0 5 votes vote down vote up
public MindMapFacet(@Nonnull final FacetType facetType, @Nonnull final Module module,
                    @Nonnull final String name, @Nonnull final MindMapFacetConfiguration configuration, final Facet underlyingFacet) {
  super(facetType, module, name, configuration, underlyingFacet);

  if (!this.getConfiguration().isDisableAutoCreateProjectKnowledgeFolder()) {
    ApplicationManager.getApplication().invokeLater(new Runnable() {

      @Override
      public void run() {
        IdeaUtils.findKnowledgeFolderForModule(module, true);
      }

    });
  }
}
 
Example #6
Source File: PythonFacetUtil.java    From intellij with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings({"unchecked", "rawtypes"})
static FacetType<? extends LibraryContributingFacet<?>, ?> getFacetType() {
  for (FacetType type : FacetType.EP_NAME.getExtensions()) {
    if (ID.equals(type.getStringId())) {
      return type;
    }
  }
  throw new RuntimeException("No Python facet type found");
}
 
Example #7
Source File: QuarkusProjectDataService.java    From intellij-quarkus with Eclipse Public License 2.0 5 votes vote down vote up
private static void ensureQuarkusFacet(Module module, IdeModifiableModelsProvider modelsProvider, ProjectSystemId externalSystemId) {
    FacetType<QuarkusFacet, QuarkusFacetConfiguration> facetType = QuarkusFacet.getQuarkusFacetType();
    ModifiableFacetModel facetModel = modelsProvider.getModifiableFacetModel(module);
    QuarkusFacet facet = facetModel.getFacetByType(facetType.getId());
    if (facet == null) {
        facet = facetType.createFacet(module, facetType.getDefaultFacetName(), facetType.createDefaultConfiguration(), (Facet)null);
        facetModel.addFacet(facet, ExternalSystemApiUtil.toExternalSource(externalSystemId));
    }
}
 
Example #8
Source File: DuneFrameworkDetector.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public FacetType<DuneFacet, DuneFacetConfiguration> getFacetType() {
    return DuneFacet.getFacetType();
}
 
Example #9
Source File: DuneFacet.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
@NotNull
static FacetType<DuneFacet, DuneFacetConfiguration> getFacetType() {
    return FacetTypeRegistry.getInstance().findFacetType(ID);
}
 
Example #10
Source File: DuneFacet.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
DuneFacet(@NotNull FacetType facetType, @NotNull Module module, @NotNull String name, @NotNull DuneFacetConfiguration configuration,
          Facet underlyingFacet) {
    super(facetType, module, name, configuration, underlyingFacet);
}
 
Example #11
Source File: SlingModuleFacet.java    From aem-ide-tooling-4-intellij with Apache License 2.0 4 votes vote down vote up
public SlingModuleFacet(@NotNull FacetType facetType, @NotNull Module module, @NotNull String name, @NotNull SlingModuleFacetConfiguration configuration) {
    super(facetType, module, name, configuration, null);
}
 
Example #12
Source File: SlingModuleFacet.java    From aem-ide-tooling-4-intellij with Apache License 2.0 4 votes vote down vote up
public static FacetType<SlingModuleFacet, SlingModuleFacetConfiguration> getFacetType() {
    return FacetTypeRegistry.getInstance().findFacetType(ID);
}
 
Example #13
Source File: MindMapFacetDetector.java    From netbeans-mmd-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public FacetType<MindMapFacet, MindMapFacetConfiguration> getFacetType() {
  return MindMapFacetType.INSTANCE;
}
 
Example #14
Source File: QuarkusFacet.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
public static FacetType<QuarkusFacet, QuarkusFacetConfiguration> getQuarkusFacetType() {
    return FacetTypeRegistry.getInstance().findFacetType(FACET_TYPE_ID);
}
 
Example #15
Source File: QuarkusFacet.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
protected QuarkusFacet(FacetType facetType, Module module, String name, QuarkusFacetConfiguration configuration, Facet underlyingFacet) {
    super(facetType, module, name, configuration, underlyingFacet);
}
 
Example #16
Source File: QuarkusFrameworkDetector.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
@NotNull
@Override
public FacetType<QuarkusFacet, QuarkusFacetConfiguration> getFacetType() {
    return FacetType.findInstance(QuarkusFacetType.class);
}
 
Example #17
Source File: QuarkusFacetMavenImporter.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
protected QuarkusFacetMavenImporter() {
    super("io.quarkus", "quarkus-maven-plugin", FacetType.findInstance(QuarkusFacetType.class));
}