Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Link element name instead of element #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,20 @@ protected void startDeploymentNodeBoundary(DeploymentView view, DeploymentNode d
}

String url = deploymentNode.getUrl();
String nodeName = deploymentNode.getName()
if (!StringUtils.isNullOrEmpty(url)) {
url = " [[" + url + "]]";
nodeName = " [[" + url + " " + nodeName + "]]";
} else {
url = "";
}

writer.writeLine(
format("rectangle \"%s\\n<size:10>%s</size>%s\" <<%s>> as %s%s {",
deploymentNode.getName() + (!"1".equals(deploymentNode.getInstances()) ? " (x" + deploymentNode.getInstances() + ")" : ""),
nodeName + (!"1".equals(deploymentNode.getInstances()) ? " (x" + deploymentNode.getInstances() + ")" : ""),
typeOf(view, deploymentNode, true),
icon,
idOf(deploymentNode),
idOf(deploymentNode),
url
idOf(deploymentNode)
)
);
writer.indent();
Expand Down Expand Up @@ -351,7 +351,7 @@ protected void writeElement(ModelView view, Element element, IndentingWriter wri
shape = plantUMLShapeOf(view, elementInstance.getElement());

if (StringUtils.isNullOrEmpty(url)) {
url = element.getUrl();
url = elementInstance.getUrl();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this was supposed to be the instance Url - just noticed this when going through the code.

if (!StringUtils.isNullOrEmpty(url)) {
url = " [[" + url + "]]";
} else {
Expand Down