Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Obtain the plugin where an editor is contained
Obtain the plugin where an editor is contained [message #330597] Tue, 05 August 2008 03:06 Go to next message
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 04:34 Go to previous message
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!
Previous Topic:How to make a window toolbar combo box editable?
Next Topic:ant-question: how to extend/concatenate a property with some additional text?
Goto Forum:
  


Current Time: Fri Aug 22 08:00:53 EDT 2014

Powered by FUDForum. Page generated in 0.09095 seconds