Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Papyrus-RT/ProfileUpdate"

(Update dependencies)
(Added header and corrected section levels accordingly)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
[[File:PapyrusForRealTime-Logo-Icon.png|left|bottom-align|]]<br/><br/><span style="font-family: Helvetica,Arial,sans-serif; font-size: 48px;"><b>Profile Update</b></span><br/><br/><br/>
 +
 +
__TOC__
 +
 +
= Introduction =
 
Here are the steps to update the UML-RT profile and its addendum UMLRT StateMachines
 
Here are the steps to update the UML-RT profile and its addendum UMLRT StateMachines
  
==Update the profile itself==
+
=Update the profile itself=
 
It is located in the plugin org.eclipse.papyrusrt.umlrt.profile.  
 
It is located in the plugin org.eclipse.papyrusrt.umlrt.profile.  
 
#Edit the *.profile.di file, and do the changes there. Ensure you have the validation profile annotation loaded (Profile selected > Property view > Applications > loaded)
 
#Edit the *.profile.di file, and do the changes there. Ensure you have the validation profile annotation loaded (Profile selected > Property view > Applications > loaded)
 
#Ensure the profile validates
 
#Ensure the profile validates
 
#Save and do not generate a definition. These are static profiles, no need to define them to use them
 
#Save and do not generate a definition. These are static profiles, no need to define them to use them
#Reload the genmodel files (Right click > Reload... > OK (etc...)  
+
#Reload the genmodel files (Right click on the .genmodel-file > Reload... > OK (etc...)  
 
#Generate static profile code from the genmodels root (open the gen model file > generate model code)
 
#Generate static profile code from the genmodels root (open the gen model file > generate model code)
 
#(Optional) Modify the URI of the profile in the plugin.xml if you made an uncompatible change (as removing a stereotype or a property). Adding elements is not considered as being uncompatible.
 
#(Optional) Modify the URI of the profile in the plugin.xml if you made an uncompatible change (as removing a stereotype or a property). Adding elements is not considered as being uncompatible.
Line 12: Line 17:
 
#Update the tests on the profile
 
#Update the tests on the profile
  
==Update dependencies==
+
=Update dependencies=
 
#Update all version numbers for Plugin and dependencies (search and replace is the working solution for now) for plugins, features and releng project
 
#Update all version numbers for Plugin and dependencies (search and replace is the working solution for now) for plugins, features and releng project
 
##Currently (0.8.0 version), all version numbers are synchronized to facilitate the deployment
 
##Currently (0.8.0 version), all version numbers are synchronized to facilitate the deployment
Line 21: Line 26:
 
##Open the Profile Di files with Papyrus
 
##Open the Profile Di files with Papyrus
 
##Right click on the root profile > Generate validation plugin for this profile
 
##Right click on the root profile > Generate validation plugin for this profile
##Check the plugin.xml has only correct changes
+
##Check the plugin.xml has only correct changes.
 +
##Also check any changes to MANIFEST.MF and build.properties and revert any unnecessary/incorrect changes

Latest revision as of 17:10, 26 April 2016

PapyrusForRealTime-Logo-Icon.png


Profile Update


Introduction

Here are the steps to update the UML-RT profile and its addendum UMLRT StateMachines

Update the profile itself

It is located in the plugin org.eclipse.papyrusrt.umlrt.profile.

  1. Edit the *.profile.di file, and do the changes there. Ensure you have the validation profile annotation loaded (Profile selected > Property view > Applications > loaded)
  2. Ensure the profile validates
  3. Save and do not generate a definition. These are static profiles, no need to define them to use them
  4. Reload the genmodel files (Right click on the .genmodel-file > Reload... > OK (etc...)
  5. Generate static profile code from the genmodels root (open the gen model file > generate model code)
  6. (Optional) Modify the URI of the profile in the plugin.xml if you made an uncompatible change (as removing a stereotype or a property). Adding elements is not considered as being uncompatible.
  7. Update profile plugin version number
  8. Update the tests on the profile

Update dependencies

  1. Update all version numbers for Plugin and dependencies (search and replace is the working solution for now) for plugins, features and releng project
    1. Currently (0.8.0 version), all version numbers are synchronized to facilitate the deployment
    2. Search and replace should be done on all files in the whole workspace, with all plugins / features / releng project
    3. This should impact those files: pom.xml, Manifest.MF,
  2. Update the validation plugin
    1. DSML Validation extra from Papyrus should be installed
    2. Open the Profile Di files with Papyrus
    3. Right click on the root profile > Generate validation plugin for this profile
    4. Check the plugin.xml has only correct changes.
    5. Also check any changes to MANIFEST.MF and build.properties and revert any unnecessary/incorrect changes

Back to the top