Pre-requisit
Have your profile myprofile.profile.uml, in our case SysML14.profile.uml
Have a Papyrus instance with UML2Extension and Developer tools installed
Step 1: generation of model,edit plugins code
1.0: Purpose
Generate the "static profile" (the java code related to the UML profile)
1.1: Create the EMF generator Model
right-click on the profile, select new EMF Generator Model
Options
- load
- skip warning
- next
- select SysML
1.2: Generate the code
Modify the options
- switch the default output directory from src to src-gen
- for the EditPluginClass remove intermediate package name, to reflect .provider.SysmlEditPlugin
- switch NLS on
Right click generate Model and Edit code
1.x: Validation
Code should compile at this step
Step 2: generation of ElementType configuration files
2.0: Purpose
Generate semantic and diagramatics elementtypes related to the profile
2.1: Semantic Elementtypeconfiguration
- Open the profil with Papyrus
- Select generate Tooling Model Elementtype
- base: uml o.e.p.uml.servicetype
- identifier o.e.p.sysML14
- file name: SysML.elemeznttypeconfiguration
Move it to the right plugin place
2.1: UI Elementtypeconfiguration
- Open the profil with Papyrus
- Select generate Tooling Model> Elementtype
- base: uml o.e.p.uml.uml.diagramclass and composite
- identifier o.e.p.sysML14
- file name: SysML.elemeznttypeconfiguration
Move it to the common plugin place and do it foreach root diagrams
2.x: Validation
to be completed...
Step 3: generation of New Child Menu
3.0: Purpose
Generate the new child menu present in the model explorer
3.1: Action
to be completed...
3.x: Validation
to be completed...
Step 4: generation of Property view
4.0: Purpose
Generate the default property views (one context .ctx file and multiple xwt files)
4.1: Action
- Select New...> Other
- Select Papyrus Category
- Select Property view Configuration
- Choose create from UML Profile
- Source: /org.eclipse.papyrus.sysml14/resources/profile/SysML.profile.uml
- Choose Standard Layout Generator
- Target: /org.eclipse.papyrus.sysml14.ui/resources/properties/SysML1.4.ctx
4.x: Validation
Should generate one *.ctx file and many *.xwt files
Step 5: generation of Assistant
5.0: Purpose
Generate the tooling to have assistants in customized diagrams
5.1: Action
to be completed...
5.x: Validation
to be completed...