Skip to main content



      Home
Home » Eclipse Projects » GEF » Getting the editor from a PropertySection
Getting the editor from a PropertySection [message #519886] Wed, 10 March 2010 06:15 Go to next message
Eclipse UserFriend
Hi!

I have the following Problem:

I have a class that subclasses AbstractPropertySection to provide a PropertiesView for a GEF editor. Now I need to access the Editor from that PropertyView.

Or more specifically: I need to get the IFile that is being edited.

I can't find a way to get the editor from the PropertySection class. Am I missing something or is there just no way to do this?

Thanks and Greetings,
Fabian
Re: Getting the editor from a PropertySection [message #520012 is a reply to message #519886] Wed, 10 March 2010 13:48 Go to previous messageGo to next message
Eclipse UserFriend
On 10/03/2010 11:15, Fabian Streitel wrote:
> Hi!
>
> I have the following Problem:
>
> I have a class that subclasses AbstractPropertySection to provide a
> PropertiesView for a GEF editor. Now I need to access the Editor from
> that PropertyView.
>
> Or more specifically: I need to get the IFile that is being edited.
>
> I can't find a way to get the editor from the PropertySection class. Am
> I missing something or is there just no way to do this?
>
> Thanks and Greetings,
> Fabian

The Editor should be the Editor Part in:

public void setInput(IWorkbenchPart part, ISelection selection)

And perhaps the IFile is in the selection?

PB
Re: Getting the editor from a PropertySection [message #520218 is a reply to message #520012] Thu, 11 March 2010 10:22 Go to previous message
Eclipse UserFriend
Thank you very much, but the problem has resolved itself already, since my requirements have changed.

Thanks anyways for the answer.

Greetings!
Previous Topic:PaletteEntry - ToolEntry - Enable/Disable
Next Topic:[Zest] layout without keeping width / height ratio?
Goto Forum:
  


Current Time: Wed Jul 16 01:31:10 EDT 2025

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

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

Back to the top