|
|
|
|
Re: Custom diagram type for DSML: plugin/extension [message #1719512 is a reply to message #1719485] |
Fri, 08 January 2016 14:16 |
Kristof De Middelaer Messages: 10 Registered: December 2015 |
Junior Member |
|
|
Camille Letavernier wrote on Fri, 08 January 2016 10:24Hi Kristof,
The SysML (1.1) diagrams rely on a different, deprecated code generator. They are a programmatic extension of UML Diagrams, with a very thin CSS customization.
We don't recommend this approach anymore (Especially since the code generator is not publicly available nor maintained)
It would be better to rely on the SysML 1.4 approach [1] [2], as it requires much less code and is the one we want to promote in Papyrus Mars and further versions
Using a Viewpoint model will avoid the manual declaration for several extension points (Including Wizards integration, Diagram creation commands/menus, and others). You can check the embedded documentation to get more information about what Viewpoints do, and how you define them (Help > Help Contents > Papyrus Guide > User Guide > Viewpoints in Papyrus)
[1] Update site: http://download.eclipse.org/modeling/mdt/papyrus/components/sysml14
[2] Sources: https://git.eclipse.org/r/papyrus/org.eclipse.papyrus-sysml
Hello Camille,
This looks amazing! I've been playing around with it and it looks a lot easier than what I was doing before! Good that there's documentation about it too.
The thing I'm figuring out now is how to create a diagram category so that it stands next to SysML and SysML1.4 in the new project/new diagram wizard. I'll have a look at the SysML1.4 files. I was hoping the 'View Category' in the viewpoint .configuration file was going to take care of this but it looks like it doesn't. It doesn't show up anywhere.
I chose the configuration element in the viewpoints.policy.custom but in the model rule and owning rule of my diagram I've selected the UML package. Maybe this is why it is not showing up? (As the configuration element gets rid of all the UML/SysML diagrams etc.)
Thanks again, I really appreciate your replies!
Kristof
|
|
|
|
|
|
Re: Custom diagram type for DSML: plugin/extension [message #1719691 is a reply to message #1719684] |
Mon, 11 January 2016 13:35 |
|
On 2016-01-11 13:01:24 +0000, Camille Letavernier said:
> Hi Kristof,
>
> If you use a GenModel for your Profile, then you can generate the Java
> Code associated to it. Pro: it's easier to manipulate your profile
> programmatically. Con: You lose support for automatic version update
> ("Reapply Profile")
Ah, but that's also a "pro": if changes to the profile are compatible,
then there is no need for any re-application step. The profile
application and stereotype applications just continue to work always.
:-)
Christian
|
|
|
|
Powered by
FUDForum. Page generated in 0.04056 seconds