Skip to main content



      Home
Home » Newcomers » Newcomers » Getting information from other plugins
Getting information from other plugins [message #251208] Tue, 11 March 2008 09:31 Go to next message
Eclipse UserFriend
Originally posted by: baule.upb.de

Hi,

I created a new Plugin in Eclipse using the Plugin-Project-Wizard and the
Hello-World Template with an action set.

I can start my plugin and it works. Now I am trying to get some
information from a different plugin, which is also loaded. It consists of
a multipage-Editor wirh an underlying EMF Model. How can I access the data
stored in the EMF-Model? I canŽt find an instance of the MultiPageEditor
or an abstractSinglePageEditor?

Regards Daniel
Re: Getting information from other plugins [message #251220 is a reply to message #251208] Tue, 11 March 2008 10:37 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Daniel,

I often see questions about getting things from another plugins and
typically those questions are a little confusing. The generated EMF
editor plugin doesn't itself keep track of all the editors that are
created using the code in that plugin. You'd have to inspect the
workbench and look at its editors to find one with a particular ID.
There might be zero or many instances of the editor. A generated EMF
editor will implement IEditingDomainProvider and from that you can
access the resource set, the resources in it, and the model instances
within those. Here's one way to find open editors...

IWorkbenchWindow workbenchWindow =
workbench.getActiveWorkbenchWindow();
IWorkbenchPage page = workbenchWindow.getActivePage();
page.getEditorReferences()...

Daniel wrote:
> Hi,
>
> I created a new Plugin in Eclipse using the Plugin-Project-Wizard and
> the Hello-World Template with an action set.
>
> I can start my plugin and it works. Now I am trying to get some
> information from a different plugin, which is also loaded. It consists
> of a multipage-Editor wirh an underlying EMF Model. How can I access
> the data stored in the EMF-Model? I canŽt find an instance of the
> MultiPageEditor or an abstractSinglePageEditor?
>
> Regards Daniel
>
Previous Topic:SWT PaintListener question
Next Topic:JFace TableViewer and Progress Bar/Indicator
Goto Forum:
  


Current Time: Tue Jul 08 13:44:11 EDT 2025

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

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

Back to the top