Skip to main content


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 07:06 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Thu Dec 26 09:52:35 GMT 2024

Powered by FUDForum. Page generated in 0.04425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top