Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » stop view creation when modelElement is null
stop view creation when modelElement is null [message #176038] Thu, 06 March 2008 13:09 Go to next message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

hello every body,

How can I stop the operation that create the view when the execution of
the command to create the model element return null(if the
xxxCreateCommand#doDefaultElementCreation() return null).

Regards,
Ali
Re: stop view creation when modelElement is null [message #177230 is a reply to message #176038] Thu, 13 March 2008 19:33 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Ali,

Normally if a command is not going to be able to execute then it should
be returning false in the canExecute() method. If your xxxCreateCommand
returns false when it cannot execute then I believe the code should
never reach the point where the view creation command is executed.

Regards,
Cherie

Ali Akar wrote:
> hello every body,
>
> How can I stop the operation that create the view when the execution of
> the command to create the model element return null(if the
> xxxCreateCommand#doDefaultElementCreation() return null).
>
> Regards,
> Ali
Previous Topic:Overlap Compartment Figure
Next Topic:how to add a view in GMF generated diagramm
Goto Forum:
  


Current Time: Sat Apr 20 03:01:42 GMT 2024

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

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

Back to the top