|Re: Using CNF in E4 application [message #890044 is a reply to message #890012]
||Wed, 20 June 2012 19:04
| Brian de Alwis
Registered: July 2009
Neeraj Mising name wrote on Wed, 20 June 2012 10:56|
With 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 :-/
Powered by FUDForum
. Page generated in 0.02765 seconds