diff --git a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/gson_utils/EObjectSerializer.xtend b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/gson_utils/EObjectSerializer.xtend index cddd4ea41..de797ad0d 100644 --- a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/gson_utils/EObjectSerializer.xtend +++ b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/gson_utils/EObjectSerializer.xtend @@ -116,6 +116,10 @@ class EObjectSerializer implements JsonSerializer { if (propertyHolder.hasProperty(SprottyProperties.CALCULATED_TEXT_LINE_HEIGHTS)) { jsonObject.add("calculatedTextLineHeights", context.serialize( propertyHolder.getProperty(SprottyProperties.CALCULATED_TEXT_LINE_HEIGHTS))) + } + if (propertyHolder.hasProperty(KlighdProperties.IS_NODE_TITLE)) { + jsonObject.add("isNodeTitle", context.serialize( + propertyHolder.getProperty(KlighdProperties.IS_NODE_TITLE))) } } } diff --git a/plugins/de.cau.cs.kieler.klighd/src/de/cau/cs/kieler/klighd/util/KlighdProperties.java b/plugins/de.cau.cs.kieler.klighd/src/de/cau/cs/kieler/klighd/util/KlighdProperties.java index 9f2f14277..f07f74907 100644 --- a/plugins/de.cau.cs.kieler.klighd/src/de/cau/cs/kieler/klighd/util/KlighdProperties.java +++ b/plugins/de.cau.cs.kieler.klighd/src/de/cau/cs/kieler/klighd/util/KlighdProperties.java @@ -357,4 +357,12 @@ public static boolean isSelectable(final EObject viewElement) { */ public static final IProperty CALCULATED_TEXT_BOUNDS = new Property("klighd.calculated.text.bounds", null); + + + /** + * Determines whether a KText can be interpreted as a title for a node. + * By default the KText is not a title. + */ + public static final IProperty IS_NODE_TITLE = + new Property("klighd.isNodeTitle", false); }