|PartDescriptor in fragments [message #899250]
||Tue, 31 July 2012 08:41
| ALex W
Registered: July 2012
I'm creating an eclipse based aplpication.
To make it simple, I have 2 projects in my Eclipse workspace :
- One main plugin project (almost empty, basically a container) (Let it be project A)
- One second plugin project which contribute to the first one. (Let it be project B)
In my project B, I create a fragment for contributin to model in A. I managed to create menus, and parts : fragment is well loaded. But now I want to contribute using PartDescriptor (to allow multiple instance of the same view)
To create this from code, I use EPartService being injected in a Command, by calling ePartService.findPart(myDescriptorId). But this always returns null. I double checked, the myDescriptorId is correct.
If I dig down in debug mode to the descriptor list of the application, I cannot see my descriptor.
I tried to use different features names when creating my Partdescriptor :
None of them work...
I think it might be linked to this bug, but not sure :
Anyone already managed to have PartDescriptor working in fragments ??
Powered by FUDForum
. Page generated in 0.02966 seconds