Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection with Label to have enumerated values
Connection with Label to have enumerated values [message #54605] Mon, 25 September 2006 04:12 Go to next message
Eclipse UserFriend
Hi,

i want to have a label associated with a connection. This label can hold
enumerated values. How can I have this done?

In the xsd I have the element declared as follows:

<root>
...
...
<xsd:complexType name="connectorRelationType">
<xsd:attribute name="connectionLabel" type="xsd:string" />
</xsd:complexType>
...
...
</root>


In the map file when I create the link mappings How do I write the ocl
script which will enable the user input values between say "optional" and
mandatory".

I tried creating enumerated values for the connectionLabel but, I was
unable to set the string values to the label.

Please suggest..

Thanks & Regards
Balraj
Re: Connection with Label to have enumerated values [message #54927 is a reply to message #54605] Mon, 25 September 2006 06:56 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

I suggest to modify the generated IParser for the label to accept only
appropriate values. There are pending requests to support this scenario:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=158116
https://bugs.eclipse.org/bugs/show_bug.cgi?id=146818

Balraj Kannan wrote:
>
> Hi,
>
> i want to have a label associated with a connection. This label can
> hold enumerated values. How can I have this done?
>
> In the xsd I have the element declared as follows:
>
> <root>
> ...
> ...
> <xsd:complexType name="connectorRelationType">
> <xsd:attribute name="connectionLabel" type="xsd:string" />
> </xsd:complexType>
> ...
> ...
> </root>
>
>
> In the map file when I create the link mappings How do I write the ocl
> script which will enable the user input values between say "optional"
> and mandatory".
>
> I tried creating enumerated values for the connectionLabel but, I was
> unable to set the string values to the label.
>
> Please suggest..
>
> Thanks & Regards
> Balraj
>
>
Previous Topic:Two instances of same diagram type for one model file
Next Topic:Update site problems
Goto Forum:
  


Current Time: Wed Apr 30 07:36:33 EDT 2025

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

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

Back to the top