Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Removing Braces from a String Array
Removing Braces from a String Array [message #204789] Tue, 09 September 2008 15:14 Go to next message
Raphael is currently offline RaphaelFriend
Messages: 47
Registered: July 2009
Member
Hello everybody!

In my .ecore I have an eAttribute that is a String array, like:

eAttribute
name:myArray
eType:String
LowerBound: 0
UpperBound: -1

In my .gmfmap I'm mapping this eAttribute as a label inside a rectangle.
The problem is, when the eAttribute doesn't have any value, inside of my
rectangle, the braces of the array insists in appear, like:
______________
| |
| [] |
|______________|

Is there someway to remove this braces?!

Thanks,
raphael
Re: Removing Braces from a String Array [message #204883 is a reply to message #204789] Tue, 09 September 2008 20:11 Go to previous messageGo to next message
Raphael is currently offline RaphaelFriend
Messages: 47
Registered: July 2009
Member
Any Ideas?!

Regards,
Raphael
Re: Removing Braces from a String Array [message #204905 is a reply to message #204789] Wed, 10 September 2008 06:07 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hello Raphael,

You could provide your own implementation for the getLabelText method in
your [EcoreType]MyArrayEditPart in your diagram plugin.

Regards

Enrico

Raphael wrote:

> Hello everybody!
>
> In my .ecore I have an eAttribute that is a String array, like:
>
> eAttribute
> name:myArray
> eType:String
> LowerBound: 0
> UpperBound: -1
>
> In my .gmfmap I'm mapping this eAttribute as a label inside a rectangle.
> The problem is, when the eAttribute doesn't have any value, inside of my
> rectangle, the braces of the array insists in appear, like:
> ______________
> | |
> | [] |
> |______________|
>
> Is there someway to remove this braces?!
>
> Thanks,
> raphael
Re: Removing Braces from a String Array [message #205375 is a reply to message #204905] Thu, 11 September 2008 14:26 Go to previous message
Raphael is currently offline RaphaelFriend
Messages: 47
Registered: July 2009
Member
Thanks Enrico!

This tip solve my problem...

See ya!
Previous Topic:Multiple Connections between Objects
Next Topic:[Properties] Undo/Redo again
Goto Forum:
  


Current Time: Thu Apr 18 08:19:45 GMT 2024

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

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

Back to the top