Tool Control needs part access [message #1699682] |
Thu, 25 June 2015 15:06  |
Eclipse User |
|
|
|
Hello,
I have a problem with a tool control in a part with a TableView. The toolcontrol contains a textfield which should update the tableview.
That's why I need to notify the part.
In a former e4 swt app this works fine: I accesed the Part implementation in the control through: MPart.getObject().
But now in e(fx)clipse this is null.
Then I tried to set in the part the filter object in the context:
eclipseContext.set(FilterContainer.class, filter);
But the inject in the toolcontrol delivers also null.
Then I realized that the Toolcontrol class is created after the Part class. That does not seem to be the case in e4 SWT.
OK, as workaround I could send the text through IEventBroker but the FilterContainer would also be nice for init and model update.
I use e(fx)clipse 2.0 nightly.
Thanks
Sebastian
|
|
|
|
|
Re: Tool Control needs part access [message #1699723 is a reply to message #1699719] |
Fri, 26 June 2015 03:57  |
Eclipse User |
|
|
|
with swt renderer the object is already in the constr. set, but that must not be the case according to JavaDoc, I think.
I can solve my problem otherwise, also the little problem that eclipseContext.set(FilterContainer.class, filter); setted in part, is not available in ToolControl Field or constructor inject.
|
|
|
Powered by
FUDForum. Page generated in 0.04048 seconds