| How to run code in a contributing plugin after a view has been created? [message #489783]
||Mon, 05 October 2009 18:15
| Marian Seitner
Registered: October 2009
at first I'd like to outline my project shape to clarify things...
Plugin A (RCP Application running the display and workbench)
Plugin B (contributing perspectives, views etc. to Plugin A)
After one of the perspectives (and the corresponding views) in plugin B gets loaded I want some code to be run. How to do that most elegantly?
Invoke the code from createPartControl() of the view(s).
- Horrible since that creates hard-coded dependencies I want to avoid
Register an IPartListener(2) in the plugin activator of B that runs the code after the view(s) of interest have been opened.
- Works great so far, however I'm curious if this is the way to go...
Any comments are greatly appreciated!
Powered by FUDForum
. Page generated in 0.02006 seconds