Date post: | 16-Apr-2017 |
Category: |
Technology |
Upload: | melbats |
View: | 299 times |
Download: | 1 times |
Things we ♡ in Sirius● Define your properties in the .odesign file● Dynamic, no code generation involved
Things we ♡ in Sirius● Define your properties in the .odesign file● Dynamic, no code generation involved● Flexible even for complex Ecore models
Things we ♡ in Sirius● Define your properties in the .odesign file● Dynamic, no code generation involved● Flexible even for complex Ecore models
... APPLIED FOR THE PROPERTY VIEWS
Text widget
Initial Operation: Begin
Initial Operation
Set → Value Expression: "aql:newValue"
Set → Feature Name:"name"Model Operations
Attribute
Variable
Custom widgetLifecycle Manager Provider Demo
General EditingDomain related ServicesgetEditingDomain, getAdapterFactory, getAdapter...
4.0
Item Providers ServicesgetLabelProviderText, getLabelProviderImage,getColorProviderBackground...
General EditingDomain related ServicesgetEditingDomain, getAdapterFactory, getAdapter...
4.0
Item Providers ServicesgetLabelProviderText, getLabelProviderImage,getColorProviderBackground...
Item Property related ServicesgetPropertyDescriptorDisplayName, getPropertyDescriptorChoiceOfValues, isPropertyDescriptorMany...
General EditingDomain related ServicesgetEditingDomain, getAdapterFactory, getAdapter...
4.0
Item Providers ServicesgetLabelProviderText, getLabelProviderImage,getColorProviderBackground...
Item Property related ServicesgetPropertyDescriptorDisplayName, getPropertyDescriptorChoiceOfValues, isPropertyDescriptorMany...
Command related ServicesperformSetCommand, performAddCommand, performUnsetCommand...
How can we create a text widget for each “String” property?
without defining tons of text widgets...
Dynamic mappings
iteration condition
If property.eType = EString
If property.eType = EBoolean
widget
Dynamic mappings
iteration condition
If property.eType = EEnum
widget
If property.eType = EString
If property.eType = EBoolean
Use it !Stable
1. Install - Sirius Update Site:
http://download.eclipse.org/sirius/updates/nightly/4.1.x/neon/
2. Documentation:
https://www.eclipse.org/sirius/doc/specifier/Properties_View_Description.html