Contexte
Sometimes the sysml profile norm do not reflect the text/pdf norm document. It is pertinent to modify the sysml profile to add new operations.
SOP
Documentation
Reference your new operations here, in order to be able to process the model automatically in a near future.: /org.eclipse.papyrus.sysml14/doc/SysML-Extension.di
Open it with UML Editor to access UML type and cardinality
Add your requirements here by creating a new derive requirement with Papyrus Req plugin: /org.eclipse.papyrus.sysml14/doc/org.eclipse.papyrus.sysml14.di
SysML profile: semantic upgrade
Modify /org.eclipse.papyrus.sysml14/resources/profile/SysML.profile.uml to add a new operation, with its parameters.
Open the genmodel and reload the UMl profile and regenerate the Model and Edit code.
Validate your enhancement by looking in /org.eclipse.papyrus.sysml14/src-gen
Implement the function in the /org.eclipse.papyrus.sysml14/src; do not forget to reference the requirement
SysML diagram upgrade
Modify the Expansion diagram of your /org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/blockDefinitionDiagramConfig.expansionmodel
Add new representation, a new induced representation and do not forget to add it to the context.
Becareful the editor replace all platform:/plugin by a ../.../..
SysML element type
/org.eclipse.papyrus.sysml14.diagram.common/resources/SysML14ClassDiagram-extension.elementtypesconfigurations
Add a new Specialization type configuration and eventually its edit helper
Palette
Add your element in the palette: /org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDefinitionDiagram.paletteconfiguration
CSS
Modify the CSS to display your compartment:/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/style/blockDefinitionDiagram.css
Test
Implement your test in /org.eclipse.papyrus.sysml14.tests/src/org/eclipse/papyrus/sysml14/tests/blocks/BlockTest.java
Open a runtime, you should be able to do the move from the palette to your compartment
todo
