Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » get business object from editpart
get business object from editpart [message #987423] Mon, 26 November 2012 14:50 Go to next message
Matthias N is currently offline Matthias N
Messages: 65
Registered: June 2012
Member
Hi,

this may be a very simple question for you.

How can I get the business object of an EditPart ?!

I tried in XXXEditPart.java

... = (BusinessObject) this.getModel();


however it does not work...

Thanks
Re: get business object from editpart [message #987424 is a reply to message #987423] Mon, 26 November 2012 14:56 Go to previous messageGo to next message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 563
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

use resolveSemanticElement().

Regards,


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Re: get business object from editpart [message #987426 is a reply to message #987424] Mon, 26 November 2012 14:57 Go to previous message
Matthias N is currently offline Matthias N
Messages: 65
Registered: June 2012
Member
Great, this is I was looking for

Thanks!
Previous Topic:set decorators without validation
Next Topic:Notify associated element
Goto Forum:
  


Current Time: Tue Sep 23 18:42:50 GMT 2014

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

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