Using CNF in E4 application [message #889786] |
Tue, 19 June 2012 15:12 |
Neeraj Bhusare Messages: 177 Registered: July 2009 Location: Canada |
Senior Member |
|
|
Hi,
I need to make use of the Common Navigator Framework (CNF) in an RCP application that is based on E4 (makes use of DI and the application model). I have looked at the SimpleIDE plugin "org.eclipse.e4.demo.simpleide.navigator". Can I use this as a reference while investigating the CNF + E4 usecase? Are there any pointers specific to the use of CNF on E4 based applications? I have looked through the forum but I haven't found anything specific (other than the use of comparability layer).
Any help would be highly appreciated.
Thanks in advance,
Best regards, Neeraj
Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
|
|
|
|
|
Re: Using CNF in E4 application [message #890044 is a reply to message #890012] |
Wed, 20 June 2012 19:04 |
Brian de Alwis Messages: 242 Registered: July 2009 |
Senior Member |
|
|
Neeraj Mising name wrote on Wed, 20 June 2012 10:56With the current state of E4, is it appropriate to do something like - setting the View (extending o.e.u.navigator.CommonNavigator) in the application model "Part#Class URI" field. Is this handled by the compatibility layer?
No, that won't work: the object in the Class URI is assumed to be an injectable POJO that responds to @PostCreate, etc. The IWorkbenchPart implementations (ViewPart, EditorPart) assume certain setup items to be done. What you're trying to achieve isn't officially supported at the moment: if you want to have a view shown at X, you need to use E3.X APIs create a perspective definition, etc.
Unofficially you can try creating to recreate the situation created by the compatibility layer: use the live model editor and look at the tags, persistentState, transientState, and see how it's done. But don't be surprised if it breaks :-/
Brian.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04515 seconds