public abstract class ModuleElementTypeBase<E extends ModulePackagingElementBase> extends PackagingElementType<E>
EP_NAME
Constructor and Description |
---|
ModuleElementTypeBase(java.lang.String id,
java.lang.String presentableName) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate(ArtifactEditorContext context,
Artifact artifact) |
java.util.List<? extends PackagingElement<?>> |
chooseAndCreate(ArtifactEditorContext context,
Artifact artifact,
CompositePackagingElement<?> parent) |
protected abstract ModulePackagingElementBase |
createElement(Project project,
ModulePointer pointer) |
javax.swing.Icon |
getElementIcon(Module module) |
abstract java.lang.String |
getElementText(java.lang.String moduleName)
Provides element presentation text.
|
abstract boolean |
isSuitableModule(ModulesProvider modulesProvider,
Module module) |
createElementPropertiesPanel, createEmpty, getCreateElementIcon, getId, getInstance, getPresentableName
public ModuleElementTypeBase(java.lang.String id, java.lang.String presentableName)
public boolean canCreate(ArtifactEditorContext context, Artifact artifact)
canCreate
in class PackagingElementType<E extends ModulePackagingElementBase>
public java.util.List<? extends PackagingElement<?>> chooseAndCreate(ArtifactEditorContext context, Artifact artifact, CompositePackagingElement<?> parent)
chooseAndCreate
in class PackagingElementType<E extends ModulePackagingElementBase>
protected abstract ModulePackagingElementBase createElement(Project project, ModulePointer pointer)
public abstract boolean isSuitableModule(ModulesProvider modulesProvider, Module module)
public abstract java.lang.String getElementText(java.lang.String moduleName)
moduleName
- name of the module for which this presentation is requested.public javax.swing.Icon getElementIcon(Module module)