How to load a UI PlugIn by code without UI elements being already there [message #758929] |
Fri, 25 November 2011 05:39  |
Eclipse User |
|
|
|
Hi
i am just starting with RCP/OSGI and just ran into this Problem:
I have a main application that provides a log in dialog. Depending on the credentials of the user i want to provide different UIs. Example:
- Main Application
Provides the login dialog and calls the login handler of the different "base" plug ins
- AdministrationBase
Checks if the user has the necessary rights to use the Administration dialog. If so, loads the AdministrationUI
- AdministrationUI
Provides the UI for Administration
So far this works fine but when i start the Application all menu entries defined in the PlugIn.xml of the AdministrationUI are already there before the log in is performed. I set the start level to a value > 4 and autostart to false without success. It seems that eclipse already reads the plugin.xml. So how can i tell eclipse to load the xml only then when the AdministrationBase loads the corresponding UI?
Or do i have to do this by code? If so, how can i ensure that the advisor classes are correctly executed?
Thanks
Matthias
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03340 seconds