public class EModelElementActionSupplier<T extends EModelElement> extends EObjectActionSupplier<T>
| Modifier and Type | Field and Description |
|---|---|
protected Context |
context |
protected int |
descriptionTabLengthThreshold
Descriptions shorter than this value are put on the top of the tabs, longer
ones end up in their own tab.
|
protected Function<EPackage,String> |
ePackagePathComputer |
static String |
ICONS_BASE |
eObject| Constructor and Description |
|---|
EModelElementActionSupplier(T value,
Context context,
Function<EPackage,String> ePackagePathComputer) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addContent(Action action,
String content)
Adds textual content.
|
protected static String |
cardinality(ETypedElement typedElement) |
protected String |
computeLabel(EGenericType genericType,
ProgressMonitor monitor) |
String |
encodeEPackage(EPackage ePackage)
Encodes ePackage path.
|
Action |
execute(ProgressMonitor progressMonitor) |
protected String |
genericName(EGenericType eGenericType) |
protected String |
genericName(ETypeParameter typeParameter) |
protected void |
genericType(EGenericType eGenericType,
List<Object> accumulator,
ProgressMonitor monitor)
Generates generic type text with links to classifiers.
|
protected String |
genericTypeArguments(EGenericType eGenericType) |
protected void |
genericTypeArguments(EGenericType eGenericType,
List<Object> accumulator,
ProgressMonitor monitor) |
protected String |
getEModelElementFirstDocSentence(EModelElement modelElement) |
protected Collection<EClass> |
getReferrers(EClass eClass)
In situations where classes referencing this class are known this method can be overridden.
|
protected Collection<EClass> |
getUses(EClassifier eClassifier)
Finds all type uses in the resourceset.
|
protected void |
header(Action action,
ProgressMonitor progressMonitor)
Content before documentation.
|
protected static Markdown |
interpolatedMarkdown(String markdown) |
protected String |
link(EClassifier eClassifier) |
String |
name() |
protected String |
path(EClassifier eClassifier) |
double |
size() |
protected String |
typeParameters(EClassifier eClassifier) |
adaptChildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, asCallable, asFunction, asSupplier, empty, from, fromCallable, fromFunction, fromSupplier, splitAndExecute, splitAndExecute, then, then, thenclose, commit, rollback, split, split, splitAndCommit, splitAndCommit, splitAndDiagnose, splitAndDiagnose, splitAndRollback, splitAndRollbackdiagnosepublic static final String ICONS_BASE
protected int descriptionTabLengthThreshold
protected Context context
public Action execute(ProgressMonitor progressMonitor) throws Exception
Exceptionprotected void header(Action action, ProgressMonitor progressMonitor) throws Exception
action - progressMonitor - Exceptionpublic double size()
public String name()
protected static Markdown interpolatedMarkdown(String markdown)
markdown - Markdown textprotected String getEModelElementFirstDocSentence(EModelElement modelElement)
protected Collection<EClass> getReferrers(EClass eClass)
protected Collection<EClass> getUses(EClassifier eClassifier)
protected static String cardinality(ETypedElement typedElement)
protected String computeLabel(EGenericType genericType, ProgressMonitor monitor) throws Exception
Exceptionprotected String typeParameters(EClassifier eClassifier)
eClassifier - protected String genericName(ETypeParameter typeParameter)
protected String genericName(EGenericType eGenericType)
protected String genericTypeArguments(EGenericType eGenericType)
protected void genericType(EGenericType eGenericType, List<Object> accumulator, ProgressMonitor monitor) throws Exception
eGenericType - accumulator - Exceptionprotected String path(EClassifier eClassifier)
eClassifier - EClassifier or null if the classifier is not part of the documentation resource set.protected String link(EClassifier eClassifier)
EClassifier if it is part of the doc or plain text if it is not.protected void genericTypeArguments(EGenericType eGenericType, List<Object> accumulator, ProgressMonitor monitor) throws Exception
Exceptionpublic String encodeEPackage(EPackage ePackage)
ePackage - Copyright © 2022 Nasdanika. All rights reserved.