Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » getAfterCreateCommand and new element
getAfterCreateCommand and new element [message #912317] Thu, 13 September 2012 06:36 Go to next message
Goood Guy is currently offline Goood Guy
Messages: 96
Registered: September 2011
Member
Hi,

I have created an advice for an element:
protected ICommand getAfterCreateCommand(CreateElementRequest request) {

The method is called, but request.getNewElement() is always null. Is it possible to access the new element somehow from the advice?

Re: getAfterCreateCommand and new element [message #916013 is a reply to message #912317] Tue, 18 September 2012 08:03 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 555
Registered: November 2009
Senior Member
Hi,

what do you want to achieve? Maybe there is an easier way to do it.

Ralph
Re: getAfterCreateCommand and new element [message #933003 is a reply to message #916013] Thu, 04 October 2012 12:42 Go to previous message
Goood Guy is currently offline Goood Guy
Messages: 96
Registered: September 2011
Member
I am using the getAfterConfigureCommand now, where newElement is available.
Previous Topic:Re:Bug: visual diagram properties automatically updated based on the values of semantic element
Next Topic:Get an image from a GMF/EMF diagram
Goto Forum:
  


Current Time: Fri May 24 09:57:46 EDT 2013

Powered by FUDForum. Page generated in 0.02416 seconds