public class EModelElementActionSupplier<T extends org.eclipse.emf.ecore.EModelElement> extends EObjectActionSupplier<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.nasdanika.common.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<org.eclipse.emf.ecore.EPackage,String> |
ePackagePathComputer |
static String |
ICONS_BASE |
eObject| Constructor and Description |
|---|
EModelElementActionSupplier(T value,
org.nasdanika.common.Context context,
Function<org.eclipse.emf.ecore.EPackage,String> ePackagePathComputer) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addContent(org.nasdanika.html.model.app.Action action,
String content)
Adds textual content.
|
protected static String |
cardinality(org.eclipse.emf.ecore.ETypedElement typedElement) |
protected String |
computeLabel(org.eclipse.emf.ecore.EGenericType genericType,
org.nasdanika.common.ProgressMonitor monitor) |
String |
encodeEPackage(org.eclipse.emf.ecore.EPackage ePackage)
Encodes ePackage path.
|
org.nasdanika.html.model.app.Action |
execute(org.nasdanika.common.ProgressMonitor progressMonitor) |
protected String |
genericName(org.eclipse.emf.ecore.EGenericType eGenericType) |
protected String |
genericName(org.eclipse.emf.ecore.ETypeParameter typeParameter) |
protected void |
genericType(org.eclipse.emf.ecore.EGenericType eGenericType,
List<Object> accumulator,
org.nasdanika.common.ProgressMonitor monitor)
Generates generic type text with links to classifiers.
|
protected String |
genericTypeArguments(org.eclipse.emf.ecore.EGenericType eGenericType) |
protected void |
genericTypeArguments(org.eclipse.emf.ecore.EGenericType eGenericType,
List<Object> accumulator,
org.nasdanika.common.ProgressMonitor monitor) |
protected String |
getEModelElementFirstDocSentence(org.eclipse.emf.ecore.EModelElement modelElement) |
protected Collection<org.eclipse.emf.ecore.EClass> |
getReferrers(org.eclipse.emf.ecore.EClass eClass)
In situations where classes referencing this class are known this method can be overridden.
|
protected Collection<org.eclipse.emf.ecore.EClass> |
getUses(org.eclipse.emf.ecore.EClassifier eClassifier)
Finds all type uses in the resourceset.
|
protected static org.nasdanika.exec.content.Markdown |
interpolatedMarkdown(String markdown) |
protected String |
link(org.eclipse.emf.ecore.EClassifier eClassifier) |
String |
name() |
protected String |
path(org.eclipse.emf.ecore.EClassifier eClassifier) |
double |
size() |
protected String |
typeParameters(org.eclipse.emf.ecore.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, thenpublic static final String ICONS_BASE
protected int descriptionTabLengthThreshold
protected org.nasdanika.common.Context context
public org.nasdanika.html.model.app.Action execute(org.nasdanika.common.ProgressMonitor progressMonitor)
throws Exception
Exceptionpublic double size()
public String name()
protected static org.nasdanika.exec.content.Markdown interpolatedMarkdown(String markdown)
markdown - Markdown textprotected String getEModelElementFirstDocSentence(org.eclipse.emf.ecore.EModelElement modelElement)
protected Collection<org.eclipse.emf.ecore.EClass> getReferrers(org.eclipse.emf.ecore.EClass eClass)
protected Collection<org.eclipse.emf.ecore.EClass> getUses(org.eclipse.emf.ecore.EClassifier eClassifier)
protected static String cardinality(org.eclipse.emf.ecore.ETypedElement typedElement)
protected String computeLabel(org.eclipse.emf.ecore.EGenericType genericType, org.nasdanika.common.ProgressMonitor monitor) throws Exception
Exceptionprotected String typeParameters(org.eclipse.emf.ecore.EClassifier eClassifier)
eClassifier - protected String genericName(org.eclipse.emf.ecore.ETypeParameter typeParameter)
protected String genericName(org.eclipse.emf.ecore.EGenericType eGenericType)
protected String genericTypeArguments(org.eclipse.emf.ecore.EGenericType eGenericType)
protected void genericType(org.eclipse.emf.ecore.EGenericType eGenericType,
List<Object> accumulator,
org.nasdanika.common.ProgressMonitor monitor)
throws Exception
eGenericType - accumulator - Exceptionprotected String path(org.eclipse.emf.ecore.EClassifier eClassifier)
eClassifier - EClassifier or null if the classifier is not part of the documentation resource set.protected String link(org.eclipse.emf.ecore.EClassifier eClassifier)
EClassifier if it is part of the doc or plain text if it is not.protected void genericTypeArguments(org.eclipse.emf.ecore.EGenericType eGenericType,
List<Object> accumulator,
org.nasdanika.common.ProgressMonitor monitor)
throws Exception
Exceptionpublic String encodeEPackage(org.eclipse.emf.ecore.EPackage ePackage)
ePackage - protected static void addContent(org.nasdanika.html.model.app.Action action,
String content)
content - Copyright © 2021 Nasdanika. All rights reserved.