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

Disappearing Toolbar Items #74

Merged
merged 1 commit into from
Jun 2, 2021
Merged

Disappearing Toolbar Items #74

merged 1 commit into from
Jun 2, 2021

Conversation

a-sr
Copy link
Member

@a-sr a-sr commented Oct 26, 2020

In the Eclipse 2020-09 release the toolbar of the diagram view loses all its items as soon as an editor is switched. This commit fixes this issue.
However, the responsible code has the comment "important for correct toolbar layout". I guess I added it for a reason but I could not reproduce the problem that requires this line of code. Hence, in 2020-09 this line breaks the toolbar, in 2020-06 and 2020-03 this line makes no difference (tested) and probably in some previous release it was necessary.

I would say we want to have this bugfix anyway but you might want to check that it has no consequences for earlier releases that are important to you.

@a-sr
Copy link
Member Author

a-sr commented Oct 26, 2020

@sailingKieler Christian, do you have an idea why updateActionBars() might have been necessary at one time.

@sailingKieler
Copy link
Member

@sailingKieler Christian, do you have an idea why updateActionBars() might have been necessary at one time.

Could be that you copied this part from other implementation. I vaguely remember this call from the past, too.
Could be that one had to execute that in case menu contributions had to added (too) late wrt. expected time of the runtime.

Could also make a difference whether you added contributions via extension points, which is actually possible (a colleague of mine one day figured out how).

@NiklasRentzCAU
Copy link
Member

I don't work on much earlier releases of Eclipse either and see no problem with this fix, If it allows us to support current releases of Eclipse as well.

@a-sr
Copy link
Member Author

a-sr commented Nov 17, 2020

Ok, well it is code that changes the content of the toolbar and menu at runtime based on the model type but it obliviously works without this line now. Furthermore, such behavior will not work well with contributions added via extension points, which is not done anyway at the moment.
Hence, I would say we can merge it to fix this issue.

Copy link
Member

@NiklasRentzCAU NiklasRentzCAU left a comment

Choose a reason for hiding this comment

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

Works in current versions and there are no objections, so LGTM

@NiklasRentzCAU NiklasRentzCAU merged commit 351b791 into master Jun 2, 2021
@NiklasRentzCAU NiklasRentzCAU deleted the als/toolbarfix branch June 2, 2021 09:50
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.

3 participants