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

Conversation

ezr-ondrej
Copy link

Hi all!

Very nice tool! :) I'm trying it out, but one thing I've noticed when using hyperlinks in plantuml export is, that the link is on the component.
I'm not sure if that was by purpose (to keep the formating of the component), tho in my use case I'd really want the link to be visible to the user.

Let me know what you think :)

I can of course use some post processing if this was intentional :)

When deploymentNode has an url, we were adding hyperlink to the node itself.
This adds the link on the element name instead.
@@ -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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant