Obtain the plugin where an editor is contained [message #330597] |
Tue, 05 August 2008 07:06 |
Eclipse User |
|
|
|
Originally posted by: gmerin.integranova.com
Hi everyone!
I'm having trouble trying to obtain the plugin (bundle) where an editor
is contained. My start point is an EditorID string and I need the bundle
where it is contained.
To get the bundle I need the ID of the plugin (in order to use
Platform.getBundle(String pluginID)). However, I only have the EditorID
and only the EditorPart knows the plugin where the editor is contained.
Any ideas?
Thanks in advance.
Regards,
Gabriel.
|
|
|
Re: Obtain the plugin where an editor is contained [message #330599 is a reply to message #330597] |
Tue, 05 August 2008 08:34 |
Eclipse User |
|
|
|
Originally posted by: gmerin.integranova.com
Gabriel Merin Cubero escribió:
> Hi everyone!
> I'm having trouble trying to obtain the plugin (bundle) where an editor
> is contained. My start point is an EditorID string and I need the bundle
> where it is contained.
>
> To get the bundle I need the ID of the plugin (in order to use
> Platform.getBundle(String pluginID)). However, I only have the EditorID
> and only the EditorPart knows the plugin where the editor is contained.
> Any ideas?
>
> Thanks in advance.
>
> Regards,
> Gabriel.
I solved my own question ^-^
IPluginContribution pluginContribution = (IPluginContribution)
PlatformUI.getWorkbench().getEditorRegistry().findEditor(edi torID);
pluginContribution.getPluginId();
Hope it helps!
|
|
|
Powered by
FUDForum. Page generated in 0.04425 seconds