Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » When are my (injected) POJO methods called?
When are my (injected) POJO methods called? [message #577774] Wed, 16 June 2010 11:50
No real name is currently offline No real nameFriend
Messages: 13
Registered: June 2010
Junior Member
Hello Everyone,

I am trying to write an RCP where I need to get the shell of the main application window AFTER it has been created. In 3.x I would override the WorkbenchWindowAdvisor .postWindowCreate() method, but as far as I could tell this is not used in e4.

I tried to write a class (which is not a part, since all parts already have been created and should be children of the shell I get from shellProvider....) like this:

public class MyClass {

private IShellProvider shellProvider;

private Object myMethod() {
System.out.println("Do something using the shell! ");
return shellProvider.getShell();


but myMethod() does not get called. I also tried to use @Execute and @CanExecute but they donĀ“t help. (Is there a good page that explains exactly what these annotations do, btw?)

Do I need to register MyClass through en extension point? Which one, and with what attributes?

I am using e4 M6.

Previous Topic:PartServiceImpl - rootContainer update currently broken?
Next Topic:Readiness of replacing a RCP app with e4
Goto Forum:

Current Time: Tue Dec 01 20:10:19 GMT 2015

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

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