Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to customize node infos from LabelProvider #638

Merged
merged 14 commits into from
Oct 9, 2024

Conversation

klesaulnier
Copy link
Contributor

@klesaulnier klesaulnier commented Aug 1, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?
Feature

What is the current behavior?
Node legend can not be customized with a custom LabelProvider

What is the new behavior (if this is a feature change)?
Node legend can be customized with a custom LabelProvider

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • [] No

Classes which customize LabelProvider for node infos labels will need to be fixed to match the method "getElectricalNodesInfos" new signature.
"getElectricalNodesInfos" has also been renamed to "getNodesInfos"

LE SAULNIER Kevin added 2 commits August 1, 2024 13:21
Signed-off-by: LE SAULNIER Kevin <[email protected]>
Copy link
Member

@So-Fras So-Fras left a comment

Choose a reason for hiding this comment

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

Thanks for your work! I left some remarks and some questions too!

LE SAULNIER Kevin added 2 commits September 11, 2024 09:29
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

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

almost done! just still some node/electricalNode references. In SvgParameters also, we'd better rename the parameter addNodesInfos to busesLegendAdded

LE SAULNIER Kevin added 2 commits September 27, 2024 15:41
@flo-dup
Copy link
Contributor

flo-dup commented Oct 8, 2024

And you also forgot in previous comment

In SvgParameters also, we'd better rename the parameter addNodesInfos to busesLegendAdded

Signed-off-by: LE SAULNIER Kevin <[email protected]>
Copy link

sonarcloud bot commented Oct 9, 2024

@So-Fras So-Fras merged commit 562f13f into main Oct 9, 2024
7 checks passed
@So-Fras So-Fras deleted the labelprovider-nodeinfos branch October 9, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants