Module org.nasdanika.html.flow
Package org.nasdanika.html.flow
Class PackageElementActionBuilder<T extends PackageElement<?>>
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterImpl
-
- org.nasdanika.html.emf.EObjectActionBuilder<T>
-
- org.nasdanika.html.flow.PackageElementActionBuilder<T>
-
- All Implemented Interfaces:
AutoCloseable,BiFunction<BiSupplier<Action,BiConsumer<EObject,Action>>,ProgressMonitor,Action>,Adapter,Adapter.Internal,Diagnosable,ExecutionParticipant,ExecutionParticipantInfo,Function<BiSupplier<Action,BiConsumer<EObject,Action>>,Action>,ActionBuilder
- Direct Known Subclasses:
PackageActionBuilder,ParticipantResponsibilityActionBuilder,ServiceProviderActionBuilder
public class PackageElementActionBuilder<T extends PackageElement<?>> extends EObjectActionBuilder<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nasdanika.html.emf.EObjectActionBuilder
EObjectActionBuilder.ContentProvider<T extends Object>, EObjectActionBuilder.EObjectActionResolverAdapter
-
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
-
Field Summary
Fields Modifier and Type Field Description protected intdescriptionTabLengthThresholdDescriptions shorter than this value are put on the top of the tabs, longer ones end up in their own tab.-
Fields inherited from class org.nasdanika.html.emf.EObjectActionBuilder
context
-
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
-
Fields inherited from interface org.nasdanika.common.Diagnosable
SUCCESS
-
-
Constructor Summary
Constructors Constructor Description PackageElementActionBuilder(T value, Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActionbuildAction(Action action, BiConsumer<EObject,Action> registry, Consumer<Consumer<EObjectActionResolver.Context>> resolveConsumer, ProgressMonitor progressMonitor)protected GeneratorcreateGenerator()Creates a diagramGenerator.protected TablecreatePropertiesTable(Action action, EObjectActionResolver.Context context, ProgressMonitor progressMonitor)protected List<ETypedElement>getProperties()Stringname()protected voidpopulateRepresentation(Diagram representation, Action action, EObjectActionResolver.Context context, ProgressMonitor progressMonitor)Populates empty representations.protected voidresolve(Action action, EObjectActionResolver.Context context, ProgressMonitor progressMonitor)-
Methods inherited from class org.nasdanika.html.emf.EObjectActionBuilder
adaptChild, addContent, buildDynamicTable, buildDynamicTable, buildTable, buildTable, configureETypedElementLabel, createChildAction, createColumnBuilder, createColumnBuilder, createColumnBuilder, createColumnBuilder, createColumnBuilder, createColumnBuilders, createColumnBuilders, createDiagnosticAction, createDynamicColumnBuilder, createDynamicColumnBuilder, createDynamicColumnBuilder, createDynamicColumnBuilder, createDynamicColumnBuilder, createDynamicColumnBuilders, createDynamicColumnBuilders, createEMapTable, createETypedElementLabel, createFloatLeftNavigation, createFloatRightNavigation, createLeftNavigation, createRightNavigation, createTableAction, createTableAction, createText, execute, getArguments, getDiagnostic, getFeatureDiagnostic, getSeverityColor, getTarget, getTypedElementValue, getTypedElementValue, gitRemoteLink, isEmptyValue, isSet, newAction, renderList, renderValue, size, sortKeys, temporalValue, typedElementIcon, typedElementLabelText
-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
isAdapterForType, notifyChanged, setTarget, unsetTarget
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nasdanika.html.model.app.util.ActionBuilder
asActionProvider, asActionProvider
-
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
-
descriptionTabLengthThreshold
protected int descriptionTabLengthThreshold
Descriptions shorter than this value are put on the top of the tabs, longer ones end up in their own tab.
-
-
Constructor Detail
-
PackageElementActionBuilder
public PackageElementActionBuilder(T value, Context context)
-
-
Method Detail
-
buildAction
protected Action buildAction(Action action, BiConsumer<EObject,Action> registry, Consumer<Consumer<EObjectActionResolver.Context>> resolveConsumer, ProgressMonitor progressMonitor) throws Exception
- Overrides:
buildActionin classEObjectActionBuilder<T extends PackageElement<?>>- Throws:
Exception
-
name
public String name()
- Specified by:
namein interfaceExecutionParticipantInfo- Overrides:
namein classEObjectActionBuilder<T extends PackageElement<?>>
-
getProperties
protected List<ETypedElement> getProperties()
- Overrides:
getPropertiesin classEObjectActionBuilder<T extends PackageElement<?>>
-
createPropertiesTable
protected Table createPropertiesTable(Action action, EObjectActionResolver.Context context, ProgressMonitor progressMonitor) throws Exception
- Overrides:
createPropertiesTablein classEObjectActionBuilder<T extends PackageElement<?>>- Throws:
Exception
-
resolve
protected void resolve(Action action, EObjectActionResolver.Context context, ProgressMonitor progressMonitor) throws Exception
- Overrides:
resolvein classEObjectActionBuilder<T extends PackageElement<?>>- Throws:
Exception
-
createGenerator
protected Generator createGenerator()
Creates a diagramGenerator.- Returns:
-
populateRepresentation
protected void populateRepresentation(Diagram representation, Action action, EObjectActionResolver.Context context, ProgressMonitor progressMonitor) throws Exception
Populates empty representations. An empty representation indicates that it has to be auto-populated. Non-empty representations indicate that they were pre-populated, e.g. manually, and should not be auto-populated.- Parameters:
representation-- Throws:
Exception
-
-