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

Difference between revisions of "Papyrus/customizations/robotics/references"

(Created page with "__NOTOC__ = 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...")
 
(Reference Handling)
Line 9: Line 9:
 
* 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).
 
* 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).
  
Please note that the example models reference the "simple" service definition using a pathmap. 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.
+
<center>
 +
[[Image:Papyrus-customizations-robotics-references.png]]<br/>
 +
Run the simple example that comes along with Papyrus for Robotics
 +
</center>
 +
 
 +
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.

Revision as of 15:12, 28 March 2020


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
Run the simple example that comes along with Papyrus for Robotics

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