Support uml model linking

- Essentially add support to be able to understand
  papyrus uml linked models.
- Change handling of files in a classpath(fat-jar) to copy
  those into jvm tmp directory in a structure where relative
  links can work.
- Forward port #888
This commit is contained in:
Janne Valkealahti
2020-12-05 13:36:46 +00:00
parent 943346e182
commit f4ce9310c1
14 changed files with 682 additions and 73 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

View File

@@ -2723,6 +2723,27 @@ sub-state.
image::images/papyrus-gs-15.png[scaledwidth="100%"]
[[sm-papyrus-import]]
=== Using a Machine Import
It's also possible to use import functionality where uml files can reference to other models.
image::images/papyrus-gs-22.png[scaledwidth="100%"]
Within `UmlStateMachineModelFactory` it's possible to use additional resources or locations
to define referenced model files.
====
[source,java,indent=0]
----
include::samples/DocsUmlSampleTests1.java[tags=snippetC]
----
====
IMPORTANT: Links between files in uml models needs to be relative as
otherwise things break when model files are copied out from a
classpath to a temporary directory so that eclipse parsing classes can
read those.
[[sm-repository]]
== Repository Support