Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:42
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
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: Wed Apr 24 19:21:54 GMT 2024

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

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

Back to the top