Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Control a connection appearance
Control a connection appearance [message #146295] Sun, 12 August 2007 12:27 Go to next message
Eclipse UserFriend
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 #146475 is a reply to message #146295] Tue, 14 August 2007 05:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

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
>
>
Re: Control a connection appearance [message #146912 is a reply to message #146475] Thu, 16 August 2007 20:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jorge.matos_.-gmail.com

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
Re: Control a connection appearance [message #146959 is a reply to message #146912] Fri, 17 August 2007 06:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

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
>
>
Re: Control a connection appearance [message #147832 is a reply to message #146959] Sat, 25 August 2007 10:16 Go to previous message
Eclipse UserFriend
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
>>
Previous Topic:Get the primary edit part
Next Topic:Problem with the second part of the Gmf tutorial
Goto Forum:
  


Current Time: Thu May 08 21:36:05 EDT 2025

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

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

Back to the top