Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Getting the editor from a PropertySection
Getting the editor from a PropertySection [message #519886] Wed, 10 March 2010 11:15 Go to next message
Fabian Streitel is currently offline Fabian StreitelFriend
Messages: 2
Registered: March 2010
Junior Member
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 18:48 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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 15:22 Go to previous message
Fabian Streitel is currently offline Fabian StreitelFriend
Messages: 2
Registered: March 2010
Junior Member
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: Tue Apr 16 19:25:15 GMT 2024

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

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

Back to the top