Execute code when Eclipse workbench loads

Posted by Krt_Malta on Stack Overflow See other posts from Stack Overflow or by Krt_Malta
Published on 2010-05-09T08:30:53Z Indexed on 2010/05/09 8:38 UTC
Read the original article Hit count: 124

Filed under:

Hi!

I'm writing an Eclipse plug-in and I've bumped into an issue. Amongst others I'm creating a new custom perspective. I need to execute some code when the workbench loads. I'm using a WorkbenchAdvisor and putting the code in the initialize method. However as it is now it's not being called...

Apparently I need to call this PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor(); but I don't know where to put this... I can't put it in the createInitialLayout of the perspective because this is only called when the perspective is created for the first time.

Any ideas please? Thanks and regards, Krt_Malta

© Stack Overflow or respective owner

Related posts about eclipse