Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyrak Paen2021-08-10 09:56:59 -0400
committerEyrak Paen2021-08-12 11:09:10 -0400
commit1b137752fe0cd5e0e7ab68a8485fa33d76d3d7a0 (patch)
treecec0c8dfa50df2404be454be4f0a18de9fbb81bd
parentd3707cf78422b45c55d4f6e878363e53469cd559 (diff)
downloadorg.eclipse.etrice-1b137752fe0cd5e0e7ab68a8485fa33d76d3d7a0.tar.gz
org.eclipse.etrice-1b137752fe0cd5e0e7ab68a8485fa33d76d3d7a0.tar.xz
org.eclipse.etrice-1b137752fe0cd5e0e7ab68a8485fa33d76d3d7a0.zip
[generator.doc] Change formatting of system instance diagram
- Limit width and add link to open in new window - Change image file reference from jpg to svg Bug 575132 Change-Id: I0516058233e2bd7a8f0df5c193633584e0458d07
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
index d442e7762..7540343b1 100644
--- a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
@@ -187,8 +187,9 @@ class AsciiDocGen {
«system.docText»
«IF includeImages»
- «includeImage(system.name + "_instanceTree.jpg")»
+ «includeImage(system.name + "_instanceTree.svg", true)»
«ENDIF»
+
«tagEnd(system)»
'''
}
@@ -462,7 +463,12 @@ class AsciiDocGen {
}
def private includeImage(String filename) {
- '''image:«filename»[]'''
+ includeImage(filename, false)
+ }
+
+ def private includeImage(String filename, boolean limitWidth) {
+ val options = limitWidth ? '''width=100%, link={imagesdir}/«filename»''' : ""
+ '''image:«filename»[«options»]'''
}
def private static crossReference(RoomClass rc) {

Back to the top