Community
Participate
Working Groups
Created attachment 282730 [details] Example project If I call part.getToolbar().setToBeRendered(false) and part.getToolbar().setToBeRendered(true); this breaks the layout of the view. See attached example. Click on the view to trigger its focus method which calls: @Focus public void setFocus(MPart part) { tableViewer.getTable().setFocus(); part.getToolbar().setToBeRendered(false); part.getToolbar().setToBeRendered(true); }
Created attachment 282731 [details] Example screenshot
Rolf, do you know if that is a known issue? Is there a workaround to re-trigger the layout?
I have seen this issue, but never investigated it. But I assume that some (or almost all) of the code in ActionBars#updateActionbars() should be moved into the ToolBarManagerRenderer to fix this issue.
Rolf, so you know a way to renderer a model element in the ui? Would be useful for debugging.
Re-render, i.e. tell the platform to re-render a certain model element
I use the model-spy to trigger these changes. Just flipping a toggle button to render/un-render an element. I have been looking at the issue a bit now, the problem originates in the StackRenderer. Will push a Gerrit soon, that shows the experiment.
New Gerrit change created: https://git.eclipse.org/r/162592
*** Bug 550268 has been marked as a duplicate of this bug. ***
Gerrit change https://git.eclipse.org/r/162592 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=9b03a05a3907988a1a8f381e925471569875cba1
Thanks, Roland.
(In reply to Lars Vogel from comment #10) > Thanks, Roland. Sorry, should have been: Thanks, Rolf
*** Bug 563750 has been marked as a duplicate of this bug. ***