|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
Registered: December 2015
Camille Letavernier wrote on Fri, 08 January 2016 10:24|
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  , 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)
 Update site: http://download.eclipse.org/modeling/mdt/papyrus/components/sysml14
 Sources: https://git.eclipse.org/r/papyrus/org.eclipse.papyrus-sysml
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!
Powered by FUDForum
. Page generated in 0.02269 seconds