Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connection basic
Connection basic [message #502479] Tue, 08 December 2009 13:42 Go to next message
MJG  is currently offline MJG Friend
Messages: 2
Registered: December 2009
Junior Member
I'm new to gef and struggling to get my connections to appear Sad

From what I can tell my editpartfactory is never called when I try to create a new connection from the palette. I have a test method do this:

newConnection(node1, nod2t);
newConnection(node2, node3);

And on starting the application two connections are drawn but when I try to use the tool created here:

...
instGroup.add(new ConnectionCreationToolEntry("Connection", "Creates a new edge.",
new ConnectionFactory(),
null,
null));
...

nothing happens. My editpartfactory contains the following, which works in the initial case, but not from the palette, it seems a model of type connection never reaches the factory.

...
} else if(model instanceof Connection) {
return new ConnectionEditPart((Connection) model);
}
...

Any help would be much appreciated.
Re: Connection basic [message #502501 is a reply to message #502479] Tue, 08 December 2009 15:02 Go to previous message
MJG  is currently offline MJG Friend
Messages: 2
Registered: December 2009
Junior Member
forget the above, I seem to have solved it.
Previous Topic:Resize handles
Next Topic:EditPolicies
Goto Forum:
  


Current Time: Fri Apr 26 00:37:51 GMT 2024

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

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

Back to the top