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

[OMEdit] Simplify visual properties of visualizers #11666

Merged

Conversation

anotheruserofgithub
Copy link
Contributor

Related Issues

PR #10355.

Purpose

Simplify template specialization of visual properties.

  • There should be no need of checking for a custom property in specializations of get(), this could be done upstream.
  • Overriding both getDefault() and get() is tedious and does not provide any interesting feature.

Approach

Merge template specializations of getDefault() and get() into a protected method getProperty() that is called by get() only when the property is not custom.

@anotheruserofgithub
Copy link
Contributor Author

@adeas31 May I ask you to review this one too, please?

@anotheruserofgithub
Copy link
Contributor Author

Apparently the CI pipeline has issues cloning OM:

stderr: fatal: unable to access 'https://github.com/OpenModelica/OpenModelica.git/': Failed to connect to github.com port 443 after 130350 ms: Connection timed out

@adeas31 adeas31 self-requested a review December 1, 2023 11:27
@adeas31
Copy link
Member

adeas31 commented Dec 1, 2023

Apparently the CI pipeline has issues cloning OM:

stderr: fatal: unable to access 'https://github.com/OpenModelica/OpenModelica.git/': Failed to connect to github.com port 443 after 130350 ms: Connection timed out

Yes, the servers are off right now. Hopefully, will be up soon.

Copy link
Member

@adeas31 adeas31 left a comment

Choose a reason for hiding this comment

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

LGTM.

@adeas31 adeas31 merged commit 0a3333e into OpenModelica:master Dec 4, 2023
2 checks passed
@anotheruserofgithub anotheruserofgithub deleted the simplify_visual_properties branch December 4, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants