platform:/resource/org.eclipse.xtext.example.fowlerdsl.viewpoint/description/fowlerdsl.odesign
+ fowlerdsl
+ Statemachine
+ Statemachine Diagram
+ Default
+ TransitionEdge (2)
domainClass=statemachine.Transition
labelDirectEdit=TransitionEdit
+ Edge Style solid
+ Center Label Style 8
labelExpression="ocl:self.event.name.concat( ' as Label')"
+ EventsContainer
+ EventNode (1)
domainClass=statemachine.Event
labelDirectEdit=EventEdit
+ Square gray
labelExpression="ocl:self.name.concat(if(self.guard.oclIsUndefined()) then '' else ' [' + self.guard.toString() + ']' endif)"
+ CommandsContainer
+ StateNode
+ description (3)
domainClass=statemachine.State
labelDirectEdit=DescriptionEdit
+ square gray
labelExpression="ocl:'Desc: '.concat(self.description)"
+ Section DefaultSection
+ Direct Edit Label SimpleTextEdit
+ Xtext Model Direct Edit Label EventEdit (1)
id=EventEdit
mapping=EventNode
inputLabelExpression="var:self"
injectorId="org.eclipse.xtext.example.fowlerdsl.viewpoint.fowlerdslInjectorId"
lines=singleLine
+ Begin
+ Set
featureName=«empty»
+ valueExpression="var:newValue"
External Java Action
name="MyAction"
id="exampleAction"
+ ignoredNestedFeatures=guard.min
+ selectedFeatures=Event.name
+ Xtext Edge Model Direct Edit Label TransitionEdit (2)
id=TransitionEdit
mapping=TransitionEdge
inputLabelExpression="var:self"
injectorId="org.eclipse.xtext.example.fowlerdsl.viewpoint.inlineEditInjectorId"
edgeLabelMappings=Center Label Style 8
lines=singleLine
editableFeatures=Transition.event, Transition.guard
prefixTerminalsExpression="aql:'['"
suffixTerminalsExpression="zxcvzxcv"
+ Begin
+ Set
featureName=«empty»
valueExpression="var:newValue"
+ Xtext Value Direct Edit Label DescriptionEdit (3)
id=DescriptionEdit
mapping=description
inputLabelExpression="feature:description"
injectorId="org.eclipse.xtext.example.fowlerdsl.viewpoint.htmlInjectorId"
lines=multiLine
prefixTextExpression="<html><head><title>t</title></head><body>"
suffixTextExpression="</body></html>"
+ Begin
+ Set description
featureName=description
valueExpression="var:newValue"
+ org.eclipse.xtext.example.fowlerdsl.viewpoint.Services
+ EventProperties
+ Default
+ Default12369
+ EventProperties
domainClass=statemachine.Event
+ Name
+ Guard (4)
id=EventGuardId
labelExpression="Guard"
valueExpression="feature:guard"
injectorId="org.eclipse.xtext.example.fowlerdsl.viewpoint.fowlerdslInjectorId"
+ Begin
+ Set guard
featureName=guard
valueExpression="var:newValue"
+ StateProperties
+ Default
+ Defaultxvsdas
+ StateProperties
domainClass=statemachine.State
+ Name
+ Description (5)
id=StateDescriptionId
labelExpression="Description"
valueExpression="feature:description"
lineCount=5
injectorId="org.eclipse.xtext.example.fowlerdsl.viewpoint.htmlInjectorId"
prefixTextExpression="<html><head><title>t</title></head><body>"
suffixTextExpression="</body></html>"
+ Begin
+ Set description
featureName=description
valueExpression="var:newValue"
platform:/resource/org.eclipse.xtext.example.fowlerdsl/model/generated/Statemachine.ecore
-
Single-line direct editor of all features of Event instance of Sirius element
EventNode
with the injector supplied byFowlerdslLanguageInjector
. Changes to the nested feature Event.guard.min will be ignored. The feature Event.name is pre-selected when showing the Xtext editor. The External Java ActionexampleAction
is called after the semantic element has been edited. Persisted to itself because EventEdit.Set.featureName is empty. -
Single-line direct editor of features
{Transition.event, Transition.guard}
of Transition instance of theCenter Label Style 8
label of Sirius elementTransitionEdge
with the injector supplied byInlineEditLanguageInjector
. Persisted to itself because TransitionEdit.Set.featureName is empty. -
Multi-line direct editor of description feature of State instance of Sirius element
description
with the injector supplied byHtmlLanguageInjector
. The attribute value will be prefixed by an HTML header and suffixed by an HTML footer. Persisted to State.description because of DescriptionEdit.Set.featureName=description. -
Single-line property editor of guard feature of Event instance of Sirius element
EventGuardId
with the injector supplied byFowlerdslLanguageInjector
. Persisted to Event.guard because of EventGuardId.Set.featureName=guard. -
Multi-line property editor of description feature of State instance of Sirius element
StateDescriptionId
with the injector supplied byHtmlLanguageInjector
. The attribute value will be prefixed by an HTML header and suffixed by an HTML footer. Persisted to State.description because of StateDescriptionId.Set.featureName=description.
<extension point="com.altran.general.integration.xtextsirius.runtime.xtextLanguageInjector">
<injector
id="org.eclipse.xtext.example.fowlerdsl.viewpoint.fowlerdslInjectorId"
class="org.eclipse.xtext.example.fowlerdsl.viewpoint.xtextsirius.FowlerdslLanguageInjector"
/>
<injector
id="org.eclipse.xtext.example.fowlerdsl.viewpoint.inlineEditInjectorId"
class="org.eclipse.xtext.example.fowlerdsl.viewpoint.xtextsirius.InlineEditLanguageInjector"
/>
<injector
id="org.eclipse.xtext.example.fowlerdsl.viewpoint.htmlInjectorId"
class="org.eclipse.xtext.example.fowlerdsl.viewpoint.xtextsirius.HtmlLanguageInjector"
/>
</extension>