Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Condition in Figure name
Condition in Figure name [message #1052813] Tue, 30 April 2013 15:03 Go to next message
bradai hazem is currently offline bradai hazem
Messages: 20
Registered: March 2013
Junior Member
Hi,
I want to add a condition to my diagram.
I have two class figure,the second is contained in the first like this :
index.php/fa/14577/0/
i want to add a condition to the name of the first figure,so if the name of the first class figure ="Echelle Specifique 1" i can add a composant in the this figure else i can't.
  • Attachment: ec.jpg
    (Size: 13.94KB, Downloaded 94 times)

[Updated on: Tue, 30 April 2013 15:04]

Report message to a moderator

Re: Condition in Figure name [message #1053251 is a reply to message #1052813] Fri, 03 May 2013 11:48 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

I can not fully understand what you want to do. Do you want to be able to add children to a container depending on its name?

Ralph
Re: Condition in Figure name [message #1053304 is a reply to message #1053251] Fri, 03 May 2013 17:39 Go to previous messageGo to next message
bradai hazem is currently offline bradai hazem
Messages: 20
Registered: March 2013
Junior Member
Ralph Gerbig wrote on Fri, 03 May 2013 07:48
Hi,

I can not fully understand what you want to do. Do you want to be able to add children to a container depending on its name?

Ralph


yes
Re: Condition in Figure name [message #1053489 is a reply to message #1053304] Mon, 06 May 2013 08:58 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

take a look at xxxCreateCommand. It has a method called canExecute(). There you can place you logic.

Ralph
Previous Topic:Additional nodes on subdiagram.
Next Topic:GMF compare
Goto Forum:
  


Current Time: Tue Sep 16 15:41:18 GMT 2014

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

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