- java.lang.Object
-
- org.nasdanika.html.ecore.EObjectActionSupplier<T>
-
- org.nasdanika.html.ecore.EModelElementActionSupplier<T>
-
- org.nasdanika.html.ecore.ENamedElementActionSupplier<EPackage>
-
- org.nasdanika.html.ecore.EPackageActionSupplier
-
- All Implemented Interfaces:
AutoCloseable,BiFunction<EClass,ProgressMonitor,Action>,Diagnosable,ExecutionParticipant,ExecutionParticipantInfo,Function<EClass,Action>,EcoreActionSupplier
public class EPackageActionSupplier extends ENamedElementActionSupplier<EPackage>
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<EClassifier,String>eClassifierLinkResolver-
Fields inherited from class org.nasdanika.html.ecore.EModelElementActionSupplier
context, descriptionTabLengthThreshold, ePackagePathComputer, ICONS_BASE
-
Fields inherited from class org.nasdanika.html.ecore.EObjectActionSupplier
eObject
-
Fields inherited from interface org.nasdanika.common.Diagnosable
SUCCESS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Actionexecute(EClass contextEClass, ProgressMonitor progressMonitor)protected StringgenerateDiagram(int depth, DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations)Generates PNG diagram.protected DiagramTextGeneratorgetDiagramTextGenerator(StringBuilder sb, boolean appendAttributes, boolean appendOperations)protected Collection<EClass>getSubTypes(EClass eClass)Override to return a list of sub-types of given EClass.protected voidheader(Action action, ProgressMonitor progressMonitor)Content before documentation.-
Methods inherited from class org.nasdanika.html.ecore.ENamedElementActionSupplier
name
-
Methods inherited from class org.nasdanika.html.ecore.EModelElementActionSupplier
addContent, cardinality, computeLabel, encodeEPackage, genericName, genericName, genericType, genericTypeArguments, genericTypeArguments, getEModelElementFirstDocSentence, getReferrers, getUses, interpolatedMarkdown, link, path, size, typeParameters
-
Methods inherited from class org.nasdanika.html.ecore.EObjectActionSupplier
adaptChild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
Methods inherited from interface org.nasdanika.common.Diagnosable
diagnose
-
Methods inherited from interface org.nasdanika.common.ExecutionParticipant
close, commit, rollback, split, split, splitAndCommit, splitAndCommit, splitAndDiagnose, splitAndDiagnose, splitAndRollback, splitAndRollback
-
Methods inherited from interface org.nasdanika.common.Function
apply, asFunction, before, splitAndExecute, splitAndExecute, then, then, then
-
-
-
-
Field Detail
-
eClassifierLinkResolver
protected Function<EClassifier,String> eClassifierLinkResolver
-
-
Method Detail
-
header
protected void header(Action action, ProgressMonitor progressMonitor) throws Exception
Description copied from class:EModelElementActionSupplierContent before documentation.- Overrides:
headerin classEModelElementActionSupplier<EPackage>- Throws:
Exception
-
execute
public Action execute(EClass contextEClass, ProgressMonitor progressMonitor) throws Exception
-
getDiagramTextGenerator
protected DiagramTextGenerator getDiagramTextGenerator(StringBuilder sb, boolean appendAttributes, boolean appendOperations)
-
generateDiagram
protected String generateDiagram(int depth, DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations) throws Exception
Generates PNG diagram.- Returns:
- Inline PNG and the image map.
- Throws:
IOExceptionException
-
getSubTypes
protected Collection<EClass> getSubTypes(EClass eClass)
Override to return a list of sub-types of given EClass. This implementation returns all sub-types found in the current package.- Parameters:
eClass-- Returns:
-
-