Skip to main content


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 10:36 Go to next message
Simon Schwichtenberg is currently offline Simon SchwichtenbergFriend
Messages: 126
Registered: September 2011
Senior 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 12:03 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
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 16:42 Go to previous message
Simon Schwichtenberg is currently offline Simon SchwichtenbergFriend
Messages: 126
Registered: September 2011
Senior 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 Oct 30 02:59:18 GMT 2020

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

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

Back to the top