[e4-dev] MPart.getContext() is null
For my demo app I want clicking a button on part 'a' to set part 'b' to visible (it is initially invisible).
My part b relies on a domain object com.acme.SalesOrder so i have
@Inject public PartB(SalesOrder salesOrder) ...
I wondered how I should provide this domain object dependency. In the code responsible for making part 'b' visible, I did:
MPart partB= partService.findPart("com.acme.partb");
So, IEclipseContext was null for an MPart obtained thru the part service. On the other hand, I noticed the following idiom in most of the other MPart getters:
So I was wondering whether this was a bug, or I am not using the platform correctly?
Thanks in advance!