Connection basic [message #502479] |
Tue, 08 December 2009 13:42 |
MJG Messages: 2 Registered: December 2009 |
Junior Member |
|
|
I'm new to gef and struggling to get my connections to appear
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03095 seconds