Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Get the current Element as Java Object
Get the current Element as Java Object [message #1717968] Fri, 18 December 2015 10:11 Go to next message
Amaury TETREL is currently offline Amaury TETRELFriend
Messages: 9
Registered: December 2015
Junior Member
Hello everyone.

Is there a way to retrieve the Element which is currently opened in an editor as a Java object ?

I set a button on this editor and I would like to process a Java object.
I managed to get all the properties, but that's all.

Thank you,

Cheers.
Re: Get the current Element as Java Object [message #1718345 is a reply to message #1717968] Tue, 22 December 2015 17:46 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
When you are saying, "I set a button on this editor", I assume that you mean that you've implemented an action handler. In your SapphireActionHandler, you can call getModelElement() to get access to the element associated with the part where the action handler is attached.
Previous Topic:Sapphire mac issues with help and calendar
Next Topic:null context in PossibleValuesService
Goto Forum:
  


Current Time: Wed Sep 19 12:28:45 GMT 2018

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

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

Back to the top