Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Palette reset on nodes not connections
Palette reset on nodes not connections [message #176184] Fri, 08 April 2005 14:50 Go to next message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

Once a node has been added to a GEF diagram, the palette automatically
resets itself to be the general selection tool. This is not the case for
connection tools. How would I go about changing the moding so that the
node tools behave the same way as connection tools (remain in the same
mode until the user chooses something different)?

Thanks.

James
Re: Palette reset on nodes not connections [message #176221 is a reply to message #176184] Fri, 08 April 2005 15:49 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
If you're using the latest build or HEAD:
toolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOAD_WHEN_ FINISHED,
Boolean.FALSE);

Otherwise, override createTool() and invoke
tool.setUnloadWhenFinished(false)



"James Willans" <james.willans@xactium.com> wrote in message
news:001126e0dd67ee7d3f37310db43927c1$1@www.eclipse.org...
> Once a node has been added to a GEF diagram, the palette automatically
> resets itself to be the general selection tool. This is not the case for
> connection tools. How would I go about changing the moding so that the
> node tools behave the same way as connection tools (remain in the same
> mode until the user chooses something different)?
>
> Thanks.
>
> James
>
Re: Palette reset on nodes not connections [message #176334 is a reply to message #176221] Sat, 09 April 2005 11:09 Go to previous message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

Thanks Pratik - that worked.

Pratik Shah wrote:

> If you're using the latest build or HEAD:
> toolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOAD_WHEN_ FINISHED,
> Boolean.FALSE);

> Otherwise, override createTool() and invoke
> tool.setUnloadWhenFinished(false)



> "James Willans" <james.willans@xactium.com> wrote in message
> news:001126e0dd67ee7d3f37310db43927c1$1@www.eclipse.org...
>> Once a node has been added to a GEF diagram, the palette automatically
>> resets itself to be the general selection tool. This is not the case for
>> connection tools. How would I go about changing the moding so that the
>> node tools behave the same way as connection tools (remain in the same
>> mode until the user chooses something different)?
>>
>> Thanks.
>>
>> James
>>
Previous Topic:Limit number of Lines in TextFlow
Next Topic:How to limit the number of connections?
Goto Forum:
  


Current Time: Sat Apr 20 01:26:03 GMT 2024

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

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

Back to the top