Control a connection appearance [message #146295] |
Sun, 12 August 2007 12:27  |
Eclipse User |
|
|
|
Originally posted by: jorge.matos_.-gmail.com
Hello!
I'm doing a graphic plugin with GMF to make a fluxogram that represents a
programming language. One of the possible figures that an user can use is a
representation of a switch statement. And each switch can have multiple
cases.
The problem is that, for example, if a switch has 10 cases because the
connections are a strait line the graphic will look like a tree...
What I wanted to do is to pre-define the connections between the switch and
the various cases statments to have a specific look. Something like this:
-------------
| | | |
| | | |
This is suposed to be an example of a switch with 4 cases :)
Thanks in advance
|
|
|
|
|
|
Re: Control a connection appearance [message #147832 is a reply to message #146959] |
Sat, 25 August 2007 10:16  |
Eclipse User |
|
|
|
Originally posted by: jorge.matos_.-gmail.com
Ok, thanks.
But what I want is to control the connections look, and to do that I will
have to work with edit policies, isn't?
----- Original Message -----
From: "Dmitry Stadnik" <5d5@mail.ru>
Newsgroups: eclipse.modeling.gmf
Sent: Friday, August 17, 2007 11:41 AM
Subject: Re: Control a connection appearance
>I just mean that you could break multisegment connection in a number of
>connections with intermediate node and this could simplify your diagram
>editor.
>
> Jorge Matos wrote:
>> Thanks for your help, but i'm not understanding your idea... Can you
>> explain it better? If you have any doubt about what I want to do feel
>> free to ask!
>>
>> I think I will have to use edit policies to achieve those connections,
>> right?
>>
>> "Dmitry Stadnik" <5d5@mail.ru> wrote in message
>> news:f9rroq$hv3$1@build.eclipse.org...
>>> It will be easier to represent it like this:
>>>
>>> |
>>> |
>>> +--+--+
>>> | |
>>> +++++++
>>> | | |
>>> | | |
>>>
>>>
>>> Jorge Matos wrote:
>>>> Hello!
>>>>
>>>> I'm doing a graphic plugin with GMF to make a fluxogram that represents
>>>> a programming language. One of the possible figures that an user can
>>>> use is a representation of a switch statement. And each switch can have
>>>> multiple cases.
>>>>
>>>> The problem is that, for example, if a switch has 10 cases because the
>>>> connections are a strait line the graphic will look like a tree...
>>>> What I wanted to do is to pre-define the connections between the switch
>>>> and the various cases statments to have a specific look. Something like
>>>> this:
>>>>
>>>> -------------
>>>> | | | |
>>>> | | | |
>>>>
>>>> This is suposed to be an example of a switch with 4 cases :)
>>>>
>>>> Thanks in advance
>>
|
|
|
Powered by
FUDForum. Page generated in 0.19831 seconds