File tree Expand file tree Collapse file tree
org.omg.sysml.plantuml/src/org/omg/sysml/plantuml Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments