|Re: Riena 5.0.0: No More Handles [message #1270802 is a reply to message #1270062]
||Thu, 13 March 2014 14:13
| Jordan Dukadinov
Registered: July 2009
I looked at Riena for Eclipse 4.x and there's still a problem with the view cleanup, so it is not working. I created Bug 430168 for that and we will address it in the near future.
Until the bug is fixed, you can try to work around it:
When a view has to be shown, Riena looks for it in the E4 application model. If the view is not found there, Riena looks up the contribution from the extension registry (plugin.xml) and instantiates the view part. This happens in:
To "clean up" views manually, you can try these steps:
(1) remove the MPart instance from the E4 application model like in
(2) remove the mapping from the ISubModuleNode to the partId by calling
The next time Riena looks up this view, it should go through the process described above as if this view has never been open. Be very careful with shared views, they're also registered in the ViewInstanceProvider!
For this to work, the RCP view contributions should be in the plugin.xml (the good old Eclipse 3.x way), not in the E4 e4xmi file. In any case, the RienaPartHelper is your friend (bundle org.eclipse.riena.e4.launcher).
I hope this helps!
Powered by FUDForum
. Page generated in 0.02214 seconds