Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF map View Pattern Property
GMF map View Pattern Property [message #187023] Wed, 14 May 2008 14:45 Go to next message
Eclipse UserFriend
Is there any expression that I could enter in the View Pattern property of
the *.gmfmap that will allow me to perform the following:

instead of p{0} that will allow to enter an input I will like to replace
the {0} with an expression that will automatically increment and become
p1, p2, p3 as soon as the node is created without the user requiring to
enter any input.

e.g. something like p{++} :)))

Thanks,

Achilleas
Re: GMF map View Pattern Property [message #187128 is a reply to message #187023] Thu, 15 May 2008 05:26 Go to previous messageGo to next message
Eclipse UserFriend
Hello Achilleas,

I think you should use FeatureSeqInitializer of the corresponding NodeMapping
for it. Like (ocl): "p" + container.childElements->size()

-----------------
Alex Shatalin
Re: GMF map View Pattern Property [message #187300 is a reply to message #187128] Thu, 15 May 2008 08:55 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

And since you can't use OCL in label definition you may introduce a
derived property in a model to infer the number.

Alex Shatalin wrote:
> Hello Achilleas,
>
> I think you should use FeatureSeqInitializer of the corresponding
> NodeMapping for it. Like (ocl): "p" + container.childElements->size()
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:Problem with shared domain model
Next Topic:propsheet nodes collapsed by default
Goto Forum:
  


Current Time: Thu Jul 17 06:31:26 EDT 2025

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

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

Back to the top