Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Always put focus back on SelectionToolEntry after new connection
Always put focus back on SelectionToolEntry after new connection [message #158178] Tue, 16 November 2004 22:38 Go to next message
Eclipse UserFriend
Originally posted by: bandrews.nospam_bphnx.com

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
Re: Always put focus back on SelectionToolEntry after new connection [message #158211 is a reply to message #158178] Wed, 17 November 2004 02:35 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Override your ConnectionCreationToolEntry's createTool() method and
setUnloadWhenFinished(true) on the ConnectionCreationTool before returning
it.

"Barry Andrews" <bandrews@nospam_bphnx.com> wrote in message
news:cndvhn$vn7$1@www.eclipse.org...
> 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
Previous Topic:UI SWTException: Invalid thread access during a stack command
Next Topic:Problem with Figure and ToolbarLayout
Goto Forum:
  


Current Time: Sun Sep 22 03:32:34 GMT 2024

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

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

Back to the top