Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Retrieving content from Part, created with a PartDescriptor?
Retrieving content from Part, created with a PartDescriptor? [message #1200650] Thu, 21 November 2013 05:42
Eclipse UserFriend
I am creating a Part using PartDescriptors.

@Inject EPartService partService;
..
partService.createPart(ModelIds.PARTDESCRIPTOR_EMTPYPART);


The PartDescriptor contains the instance of MyPage.
It injects itselfe into the context, when the page is activated,
so I can retrieve it once the page was focused.

class MyPage{

@PostCreate
void onCreate(Composite parent){
...
}

@Focus
onFocus(IEclipseContext context){
 context.set(MyPage.class, this);
}


How would I retrieve the instance of MyPage, BEFORE the part was focused?
I would like to add some context to the part's MyPage without activating the Part!

Is the part filled lazy ? (only when it is really activated?)
How can make it to be filled immediately on creation, without activating it?
Previous Topic:Can not inject Addons?
Next Topic:Open-With behaviour
Goto Forum:
  


Current Time: Mon Jul 07 13:07:18 EDT 2025

Powered by FUDForum. Page generated in 0.03252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top