Skip to content

Commit 4b08946

Browse files
committed
Added a comment
1 parent e86b617 commit 4b08946

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

org.omg.sysml.plantuml/src/org/omg/sysml/plantuml/VDefault.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,15 @@ private boolean addShorthandRelation(Usage u, String title) {
344344
ReferenceSubsetting rs = u.getOwnedReferenceSubsetting();
345345
if (rs == null) return false;
346346
Feature ref = rs.getReferencedFeature();
347+
348+
/* If the target is not rendered, we do not use a shorthand notation and render a distinct node.
349+
* If the target is a feature chain, we only check the first chaining feature because the visualizer
350+
* will render all of the features of the feature chain.
351+
* However it assumes the current visualizer behavior and we should provide a better 'toBeRendered()' service
352+
* by extending VPath */
347353
Feature tgt = FeatureUtil.getFirstChainingFeatureOf(ref);
348354
if (tgt == null) tgt = ref;
349-
if (!toBeRendered(tgt)) return false; // If the target is not rendered, we render a distinct node.
355+
if (!toBeRendered(tgt)) return false;
350356

351357
if (!isEmpty(u)) return false;
352358

0 commit comments

Comments
 (0)