|
|
|
Re: Is there a way to get all Eclipse instance's widgets ? [message #1737249 is a reply to message #1737244] |
Wed, 06 July 2016 15:27 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
Note that a tree could potentially be infinitely expandable.
I have a feeling that calling setExpanded doesn't produce a notification
so org.eclipse.jface.viewers.AbstractTreeViewer.hookControl(Control)
wouldn't see an event. So you might need to create an event and notify
the tree so the viewer sees it. But I'm not sure about that.
On 06.07.2016 16:45, opendev cartu38 wrote:
> Thanks such is helpful as at least confirms my on going trials. Having
> some doubts initially as not getting back properly Menu(s) etc ... but
> sounds some progress about iterating over Controls using getMenu()
> method.
>
> Now facing concerns trying to retrieve all TreeItem from a Tree. My
> today result is only providing me children nodes if such are end user
> visible (i.e. expanded first) ... any advice about ?
> PS : I've tried already ((TreeItem) item).setExpanded(true) but not
> ending with same result as UI based end user tree expansion activity
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.07704 seconds