Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Papyrus/customizations/robotics/references

< Papyrus‎ | customizations/robotics
Revision as of 14:22, 28 March 2020 by Ansgar.radermacher.cea.fr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Reference Handling

There are to different ways to reference other models, depending on where these models are stored.

  • In the first case, the model is stored in your Eclipse workspace. If you create a new port or want to change the type of a port, the selection dialog shows these as workspace matches. As the tool scans your workspace, it only shows models that have a specific extension. For instance, if you are typing a port with a service definition, the tool examines all UML models with the .servicedef.uml file extension.
  • In the 2nd case, the model is stored in an Eclipse plugin and accessible via a so-called pathmap (that has been registered by the plugin). The advantage of pathmaps is that the location of the plugin can change, but the reference remains valid (provided that the relative location of the model compared to the pathmap remains intact).

Papyrus-customizations-robotics-references.png
Reference selection dialog. The "simple" service definition model can be referenced in two different ways

Please note that the example models reference the "simple" service definition using a pathmap, as shown in the figure above. This implies that it would still reference the service definition stored in a plugin, even if you import the service definition into your workspace. You need to change the reference, if updates in the workspace should be taken into account.

Back to the top