PartDescriptor in fragments [message #899250] |
Tue, 31 July 2012 08:41 |
ALex W Messages: 56 Registered: July 2012 |
Member |
|
|
Hello folks,
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 :
- PartDescriptor
- sharedElements
None of them work...
I think it might be linked to this bug, but not sure :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384514
Anyone already managed to have PartDescriptor working in fragments ??
Thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03141 seconds