com.intellij.facet.FacetTypeRegistry Java Examples

The following examples show how to use com.intellij.facet.FacetTypeRegistry. 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: MuleMavenModuleBuilder.java    From mule-intellij-plugins with Apache License 2.0 5 votes vote down vote up
public void setMuleFacet(Module module) {
    MuleFacetType type = (MuleFacetType)FacetTypeRegistry.getInstance().findFacetType(MuleFacet.ID);
    MuleFacetConfiguration configuration = type.createDefaultConfiguration();
    configuration.setPathToSdk(MuleSdkManager.getInstance().findFromVersion(muleVersion).getMuleHome());
    Facet facet = type.createFacet(module, type.getPresentableName(), configuration, null);
    ModifiableFacetModel model = FacetManager.getInstance(module).createModifiableModel();
    model.addFacet(facet);
    model.commit();
}
 
Example #2
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 #3
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 #4
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 #5
Source File: PolygeneApplicationComponent.java    From attic-polygene-java with Apache License 2.0 4 votes vote down vote up
private void registerFacet()
{
    FacetTypeRegistry facetTypeRegistry = FacetTypeRegistry.getInstance();
    facetTypeRegistry.registerFacetType( polygeneFacetType );
}
 
Example #6
Source File: PolygeneApplicationComponent.java    From attic-polygene-java with Apache License 2.0 4 votes vote down vote up
private void unregisterFacet()
{
    FacetTypeRegistry facetTypeRegistry = FacetTypeRegistry.getInstance();
    facetTypeRegistry.unregisterFacetType( polygeneFacetType );
}