public abstract class FacetBasedPackagingElementType<E extends PackagingElement<?>,F extends Facet> extends PackagingElementType<E>
EP_NAME
Modifier | Constructor and Description |
---|---|
protected |
FacetBasedPackagingElementType(java.lang.String id,
java.lang.String presentableName,
FacetTypeId<F> facetType) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate(ArtifactEditorContext context,
Artifact artifact) |
java.util.List<? extends E> |
chooseAndCreate(ArtifactEditorContext context,
Artifact artifact,
CompositePackagingElement<?> parent) |
protected abstract E |
createElement(Project project,
F facet) |
javax.swing.Icon |
getCreateElementIcon() |
protected abstract java.lang.String |
getDialogDescription() |
protected abstract java.lang.String |
getDialogTitle() |
protected abstract java.lang.String |
getItemText(F item) |
createElementPropertiesPanel, createEmpty, getId, getInstance, getPresentableName
protected FacetBasedPackagingElementType(java.lang.String id, java.lang.String presentableName, FacetTypeId<F> facetType)
public boolean canCreate(ArtifactEditorContext context, Artifact artifact)
canCreate
in class PackagingElementType<E extends PackagingElement<?>>
public javax.swing.Icon getCreateElementIcon()
getCreateElementIcon
in class PackagingElementType<E extends PackagingElement<?>>
public java.util.List<? extends E> chooseAndCreate(ArtifactEditorContext context, Artifact artifact, CompositePackagingElement<?> parent)
chooseAndCreate
in class PackagingElementType<E extends PackagingElement<?>>
protected abstract java.lang.String getDialogTitle()
protected abstract java.lang.String getDialogDescription()
protected abstract java.lang.String getItemText(F item)