public abstract class FacetBasedFrameworkSupportProvider<F extends Facet> extends FrameworkSupportProviderBase
EXTENSION_POINT
Modifier | Constructor and Description |
---|---|
protected |
FacetBasedFrameworkSupportProvider(FacetType<F,?> facetType) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSupport(Module module,
ModifiableRootModel rootModel,
FrameworkVersion version,
Library library) |
javax.swing.Icon |
getIcon() |
static java.lang.String |
getProviderId(FacetType facetType)
Returns internal ID.
|
static java.lang.String |
getProviderId(FacetTypeId<?> typeId)
Returns internal ID.
|
java.lang.String |
getUnderlyingFrameworkId() |
boolean |
isEnabledForModuleType(ModuleType moduleType) |
boolean |
isSupportAlreadyAdded(Module module,
FacetsProvider facetsProvider) |
protected void |
onFacetCreated(F facet,
ModifiableRootModel rootModel,
FrameworkVersion version)
Called last after facet and library have been setup.
|
protected void |
onLibraryAdded(F facet,
Library library) |
void |
processAddedLibraries(Module module,
java.util.List<Library> addedLibraries)
Override to e.g.
|
protected abstract void |
setupConfiguration(F facet,
ModifiableRootModel rootModel,
FrameworkVersion version)
Tune facet before it is added.
|
createConfigurable, getVersionLabelText, getVersions
getGroupId, getId, getPrecedingFrameworkProviderIds, getProjectCategories, getRoles, getTitle, isEnabledForModuleBuilder, isSupportAlreadyAdded
public static java.lang.String getProviderId(FacetType facetType)
facetType
- Facet type.FrameworkSupportProvider.getPrecedingFrameworkProviderIds()
public static java.lang.String getProviderId(FacetTypeId<?> typeId)
typeId
- Facet type ID.FrameworkSupportProvider.getPrecedingFrameworkProviderIds()
public java.lang.String getUnderlyingFrameworkId()
getUnderlyingFrameworkId
in class FrameworkSupportProvider
public boolean isEnabledForModuleType(ModuleType moduleType)
isEnabledForModuleType
in class FrameworkSupportProvider
public boolean isSupportAlreadyAdded(Module module, FacetsProvider facetsProvider)
isSupportAlreadyAdded
in class FrameworkSupportProvider
public javax.swing.Icon getIcon()
getIcon
in class FrameworkSupportProvider
protected void addSupport(Module module, ModifiableRootModel rootModel, FrameworkVersion version, Library library)
addSupport
in class FrameworkSupportProviderBase
protected void onFacetCreated(F facet, ModifiableRootModel rootModel, FrameworkVersion version)
facet
- Created facet.rootModel
- Model.version
- Framework version.protected abstract void setupConfiguration(F facet, ModifiableRootModel rootModel, FrameworkVersion version)
facet
- Facet to be created.rootModel
- Model.version
- Framework version.