eclipsecon europe 2016 - sirius 4.1: let me sirius that for you!

61
Sirius 4.1: Let me Sirius that for you!

Upload: melbats

Post on 11-Apr-2017

102 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Sirius 4.1:

Let me Sirius that for you!

Page 2: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Sirius

Page 3: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Statistics

Page 4: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Statistics

10 active committers

Page 5: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Statistics10 active committers

83 fixed bugs

Page 6: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Statistics10 active committers

83 fixed bugs

~300 commits

Page 7: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Statistics10 active committers

83 fixed bugs

300 commits

+470 forum messages

Page 8: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

What’s new ?

Page 9: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

4.1Pre registered service class

Page 10: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

4.1Improve selection of VSM elements

Page 11: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

I18N 4.0

plugin_xx.properties

%key

Translated Labels

Page 12: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Prefered side for border nodes

Sirius 4.04.0

Page 13: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Better Zoom & SVG rendering 4.0

Page 14: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

API to control the tabbar 4.0

Page 15: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

And even more...

Page 16: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge

4.1

Page 17: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements

4.1

Improve edge labels move

Display link between edge and labels

Page 18: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes

4.1

Page 19: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF

Edit

4.0

Page 20: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF

Edit

General EditingDomain related ServicesgetEditingDomain, getAdapterFactory, getAdapter..

4.0

Page 21: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF

Edit

General EditingDomain related ServicesgetEditingDomain, getAdapterFactory, getAdapter..

4.0

Item Providers ServicesgetLabelProviderText, getLabelProviderImage,

getColorProviderBackground...

Page 22: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF

Edit

General EditingDomain related ServicesgetEditingDomain, getAdapterFactory, getAdapter..

4.0

Item Providers ServicesgetLabelProviderText, getLabelProviderImage,

getColorProviderBackground...

Item Property related ServicesgetPropertyDescriptorDisplayName, getPropertyDescriptorChoiceOfValues, isPropertyDescriptorMany...

Page 23: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF

Edit

General EditingDomain related ServicesgetEditingDomain, getAdapterFactory, getAdapter..

4.0

Item Providers ServicesgetLabelProviderText, getLabelProviderImage,

getColorProviderBackground...

Item Property related ServicesgetPropertyDescriptorDisplayName, getPropertyDescriptorChoiceOfValues, isPropertyDescriptorMany...

Command related ServicesperformSetCommand, performAddCommand,

performUnsetCommand...

Page 24: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF Edit● Metamodel warning

4.0

Page 25: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF Edit● Metamodel warning● Contribute SVG shapes :

stencil pack

4.0

Page 26: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF Edit● Metamodel warning● Contribute SVG shapes : stencil

pack● Improve performance of

session unload

4.0

Sirius 3.0

Sirius 4.0

Close Project (Time in sec)

55 ~0

Page 27: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

● Straighten an edge● Edges improvements● Snap back labels, snap to

shapes border nodes● Better integration with EMF Edit● Metamodel warning● Contribute SVG shapes : stencil

pack● Improve performance of

session unload● DRepresentationDescriptor

introduction

4.1

Page 28: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!
Page 29: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!
Page 30: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Properties

View

Page 31: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Sirius

Page 32: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Things we ♡ in Sirius● Define your properties in the .odesign file

Page 33: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Things we ♡ in Sirius● Define your properties in the .odesign file● Dynamic, no code generation involved

Page 34: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Things we ♡ in Sirius● Define your properties in the .odesign file● Dynamic, no code generation involved● Flexible even for complex Ecore models

Page 35: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

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

Page 36: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Structure

Properties View

Properties View

Page 37: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Structure

Page

Page

Page 38: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Structure

Group

Group

Page 39: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Structure

Widget

Widget

Page 40: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Text widget

Label Expression

Label Expression:"Name:"

Page 41: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Text widget

Value Expression

Value Expression:"aql:self.name"

Variable

AttributeInterpreter

Page 42: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Text widgetHelp Expression

Help Expression:"Title of the talk"

Page 43: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Text widget

Initial Operation: Begin

Initial Operation

Set → Value Expression: "aql:newValue"

Set → Feature Name:"name"Model Operations

Attribute

Variable

Page 44: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Demo

Page 46: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Über Custom widgetLet’s see some code

Page 47: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

How can we help supporting complex meta-models?

Page 48: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

How can we create a text widget for each “String” property?

without defining tons of text widgets...

Page 49: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

How can we create multiple widgets from a singledefinition?

Page 50: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Dynamic mappings

iteration

Page 51: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Dynamic mappings

iteration condition

If property.eType = EString

Page 52: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Dynamic mappings

iteration condition widget

If property.eType = EString

Page 53: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Dynamic mappings

iteration condition

If property.eType = EString

If property.eType = EBoolean

widget

Page 54: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Dynamic mappings

iteration condition

If property.eType = EEnum

widget

If property.eType = EString

If property.eType = EBoolean

Page 55: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Demo

Page 56: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Default rulesBased on the dynamic mapping mechanism

Page 57: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Demo

Page 59: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Paris

15th November, 2016

siriuscon.org

Page 60: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!

Thanks!

Questions?

@mbats@sbegaudeau

Page 61: EclipseCon Europe 2016 - Sirius 4.1: Let me Sirius that for you!