[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Always put focus back on SelectionToolEntry after new connection

Override your ConnectionCreationToolEntry's createTool() method and
setUnloadWhenFinished(true) on the ConnectionCreationTool before returning
it.

"Barry Andrews" <bandrews@xxxxxxxxxxxxxxxx> wrote in message
news:cndvhn$vn7$1@xxxxxxxxxxxxxxxxxx
> When I create objects on a diagram, the selection tool always gets the
> focus immediately after the object is created. But when I create a new
> connection, the ConnectionCreationToolEntry remains selected. Where is
> this mechanism that changes the focus back to the selection tool? I
> would like the same behavior when I create a new connection. Is this
> possible to do?
>
> thanks,
>
> Barry