Community
Participate
Working Groups
I have org.eclipse.ui.forms.widgets.Section widget that contains control with a org.eclipse.jface.fieldassist.ControlDecoration that is always visible (not only when widget is on focus). On the first display of the Section even if the widget is collapsed, the control decorators are displayed. After expanding the section then collapsing it, the decorators are correctly hidden. It seems that it come from child controls of the Section widget that seems to not be set as not visible.
Please provide a reproducible test case. What version of Eclipse are you using?
I believe this is not SWT, please send it back if I'm wrong.
Created attachment 187617 [details] Decorators are visible Here is a screenshot of the visible decorators. I can reproduce it in my rcp app but not in a snippet. I'll try to provide steps to reproduce this bug ASAP.
UA owns the Forms API
If you can create a snippet I will take a look at it.
Analysis: If a section is created without the EXPANDED style, the section is correctly collapsed. However, the visibility state of the client is not set correctly. Hence, the control decoration is rendered. Workaround: Always use style EXPANDED when creating the section and set desired expanded state of section after client has been set. This ensures that all relevant elements are set to visible=false if not expanded.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.