|Expand Section widget in Eclipse Forms [message #1752242]
||Fri, 20 January 2017 08:58
| Deepak Sharma
Registered: January 2017
I am new to eclipse and wanted to know few things on Section widget. I have a custom form with around 4 to 5 expandable sections added to it.
My requirement is to have a button to expand all or collapse all section with one mouse click. I am able to get the form and its section name but not able to get the section control to expand it programmatically.
So my questions is, if I have a form with multiple section widgets in it,
how do i get the section control so that I can use section.setexpanded(true).
Currently in my handler class i used
IWorkbenchPart wbPart = HandlerUtil.getActivePart(executionevent);
IViewPart iviewpart = (IViewPart)HandlerUtil.getActivePart(executionevent);
to get the viewpart.
Powered by FUDForum
. Page generated in 0.01493 seconds