Skip to main content



      Home
Home » Archived » Sapphire » Get the current Element as Java Object
Get the current Element as Java Object [message #1717968] Fri, 18 December 2015 05:11 Go to next message
Eclipse UserFriend
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 12:46 Go to previous message
Eclipse UserFriend
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: Mon May 05 04:30:31 EDT 2025

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

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

Back to the top