Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Automatic-connection to an existing Node
Automatic-connection to an existing Node [message #207700] Fri, 20 January 2006 09:29 Go to next message
Eclipse UserFriend
Originally posted by: strayduck.rhathymia.net

Hello,


I made a simple editor that is able to add Node and to connect between Nodes (similar to 'Shape editor' sample).

So next I want to change the behavior as shown below:

1.) Each node can have *only one or two* Connections, which means the tree is linear, Node is either root or leaf. Root-node has one Connection to leaf, Leaf-node has one or two Connections (one point to root or leaf, another is pointed to from child-leaf).

2.) When adding new Node,

2-1.) If there are Node(s), new Node is connected to the tail Node automatically.

2-2.) If there is no Node, just new Node add.


I'd read past archives here, and found it's impossible that two actions or commands per one event.

Is there alternative resolutions?


Thanks
Re: Automatic-connection to an existing Node [message #207710 is a reply to message #207700] Fri, 20 January 2006 10:37 Go to previous message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Hi

"strayDuck" <strayduck@rhathymia.net> wrote in message
news:32759050.1137749407003.JavaMail.root@cp1.javalobby.org...
> Hello,
>
>
> I made a simple editor that is able to add Node and to connect between
Nodes (similar to 'Shape editor' sample).
>
> So next I want to change the behavior as shown below:
>
> 1.) Each node can have *only one or two* Connections, which means the tree
is linear, Node is either root or leaf. Root-node has one Connection to
leaf, Leaf-node has one or two Connections (one point to root or leaf,
another is pointed to from child-leaf).
>
> 2.) When adding new Node,
>
> 2-1.) If there are Node(s), new Node is connected to the tail Node
automatically.
>
> 2-2.) If there is no Node, just new Node add.
>
>
> I'd read past archives here, and found it's impossible that two actions or
commands per one event.
that
Previous Topic:How to save Editor's Models using serializable
Next Topic:ActionSet i n MultiPageEditor
Goto Forum:
  


Current Time: Fri Apr 19 19:32:46 GMT 2024

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

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

Back to the top