How to write a plugin register mechanism, that can register own icons, commands, handlers etc. [message #1360785] |
Fri, 16 May 2014 20:05  |
Eclipse User |
|
|
|
I have created an extension point that allows extensions to set things like a class to execute or the addition of an optional icon.
The problem now is that I don't know how to register extensions in the Eclipse runtime. I know that I can access all the available extensions with
org.eclipse.core.runtime.Platform.getExtensionRegistry().getConfigurationElementsFor(id)
I get all the information I need from the extensions but I'm unable to find a way to register, say, a command + a handler + a corresponding icon that would allow me to call the class (which is provided by the extension) by executing this command.
The org.eclipse.ui.newWizards extension for example does something similar. How can I implement something similar?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08449 seconds