From ca55e0e3e256f0a8abf77fb473d6838c0093f74d Mon Sep 17 00:00:00 2001 From: Niklas Rentz Date: Wed, 27 Nov 2024 17:44:28 +0100 Subject: [PATCH] label the main overview after the project name instead of "Overview" --- .../cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/de.cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend b/plugins/de.cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend index d289f3d..d46ce9e 100644 --- a/plugins/de.cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend +++ b/plugins/de.cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend @@ -197,7 +197,7 @@ class GenerateSyntheses { if (TOPDOWN_LAYOUT.booleanValue) { SynthesisUtils.configureTopdownLayout(it, false) } - addProjectRendering + addProjectRendering(model.projectName) «FOR view : data.views» val overview«view.name»Nodes = «view.name.toFirstLower»OverviewSynthesis.transform(visContext.«view.name.toFirstLower»OverviewContext) @@ -942,12 +942,12 @@ class GenerateSyntheses { /** * Adds the rendering as a project overview. */ - def void addProjectRendering(KNode node) { + def void addProjectRendering(KNode node, String projectName) { node.addRoundedRectangle(ROUNDNESS, ROUNDNESS) => [ setGridPlacement(1) addRectangle => [ invisible = true - addSimpleLabel("Overview") => [ + addSimpleLabel(projectName) => [ fontBold = true selectionFontBold = true ]