|
|
Re: Show anchor shapes when connection tool enabled [message #630870 is a reply to message #630197] |
Tue, 05 October 2010 12:07 |
Tim Kaiser Messages: 118 Registered: July 2009 |
Senior Member |
|
|
Hi,
you can already listen to this type of change
by using GEF API.
To access the GEF API through Graphiti extend DiagramEditor and try with the code snippet below.
(probably it is wise to unregister the listener
via overriding dispose() in DiagramEditor)
Does it work?
Best, Tim
@Override
protected void initializeGraphicalViewer() {
super.initializeGraphicalViewer();
getEditDomain().getPaletteViewer().addPaletteListener(new PaletteListener() {
@Override
public void activeToolChanged(PaletteViewer palette, ToolEntry tool) {
// your coding
}
});
}
[Updated on: Tue, 05 October 2010 12:07] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03178 seconds