Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » sticky tool selected on the palette
sticky tool selected on the palette [message #186410] Tue, 05 July 2005 14:32 Go to next message
Eclipse UserFriend
Originally posted by: user1981.gmail.com

Hi to all. Here's my simple question. I've noticed that my creation tools
on my editor's palette don't remain selected. I mean, when i use the
marquee or the selection tool they stay selected no mather the times a use
them. The problem is that my "other" tools get unselected when i use them.
I took a look at the logic example and it seems the same, only the
selection tools seem to stick selected.

Any idea why?

thanks in advance
Re: sticky tool selected on the palette [message #186587 is a reply to message #186410] Tue, 05 July 2005 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbernst.stanford.edu

I've never tried this, but section 4.2.2 of the redbook tutorial seems to be
what you're looking for:
http://www.redbooks.ibm.com/abstracts/sg246302.html
- Michael

""jos
Re: sticky tool selected on the palette [message #186839 is a reply to message #186410] Thu, 07 July 2005 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

paletteToolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOA D_WHEN_FINISHED,
Boolean.FALSE);

"jos
Re: sticky tool selected on the palette [message #198542 is a reply to message #186839] Wed, 12 October 2005 13:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andi.nospam.netbruns.de

Hi at all,

I see how tools can be made sticky.
I need other tools to stay draggeable at the same time.

example:

tool 1 is selected and placed several times in the editor.
after that a drag'n'drop action is performed on tool 2 which unfortunaly
does not execute since tool 1 stays selected (which is ok so placing tool 1
can be continued after the d'n'd).

While I like the behaviour of tool 1 to stay selected, the impossibility to
perform drag'n'drop actions with other tools at the same time breaks my app :-(


any idea?

thanks andreas

Pratik Shah schrieb:
> paletteToolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOA D_WHEN_FINISHED,
> Boolean.FALSE);
>
> "josé" <user1981@gmail.com> wrote in message
> news:72b826dc3be3f9d5a60692d84e4c17f2$1@www.eclipse.org...
>
>>Hi to all. Here's my simple question. I've noticed that my creation tools
>>on my editor's palette don't remain selected. I mean, when i use the
>>marquee or the selection tool they stay selected no mather the times a use
>>them. The problem is that my "other" tools get unselected when i use them.
>>I took a look at the logic example and it seems the same, only the
>>selection tools seem to stick selected.
>>
>>Any idea why?
>>
>>thanks in advance
>>
>
>
>
Re: sticky tool selected on the palette [message #198837 is a reply to message #198542] Thu, 13 October 2005 00:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

setUnloadWhenFinished(false) only prevents the tool from getting deactivated
after it has been used once. The other tools should still be working.
Dragging another tool should work fine, and the default tool should get
activated after that. You might be doing something wrong if that is not
what you're experiencing. Start another thread and provide more details.

"Andreas Bruns" <andi@nospam.netbruns.de> wrote in message
news:dij2sg$n9j$1@news.eclipse.org...
> Hi at all,
>
> I see how tools can be made sticky.
> I need other tools to stay draggeable at the same time.
>
> example:
>
> tool 1 is selected and placed several times in the editor.
> after that a drag'n'drop action is performed on tool 2 which unfortunaly
> does not execute since tool 1 stays selected (which is ok so placing tool
1
> can be continued after the d'n'd).
>
> While I like the behaviour of tool 1 to stay selected, the impossibility
to
> perform drag'n'drop actions with other tools at the same time breaks my
app :-(
>
>
> any idea?
>
> thanks andreas
>
> Pratik Shah schrieb:
> >
paletteToolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOA D_WHEN_FINISHED,
> > Boolean.FALSE);
> >
> > "jos
Re: sticky tool selected on the palette [message #198884 is a reply to message #198837] Thu, 13 October 2005 09:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andi.nospam.netbruns.de

Solved.

Class did not extend CombinedTemplateCreationEntry and so was not
noticed by the d'n'd-listener.

Pratik Shah schrieb:
> setUnloadWhenFinished(false) only prevents the tool from getting deactivated
> after it has been used once. The other tools should still be working.
> Dragging another tool should work fine, and the default tool should get
> activated after that. You might be doing something wrong if that is not
> what you're experiencing. Start another thread and provide more details.
>
> "Andreas Bruns" <andi@nospam.netbruns.de> wrote in message
> news:dij2sg$n9j$1@news.eclipse.org...
>
>>Hi at all,
>>
>>I see how tools can be made sticky.
>>I need other tools to stay draggeable at the same time.
>>
>>example:
>>
>>tool 1 is selected and placed several times in the editor.
>>after that a drag'n'drop action is performed on tool 2 which unfortunaly
>>does not execute since tool 1 stays selected (which is ok so placing tool
>
> 1
>
>>can be continued after the d'n'd).
>>
>>While I like the behaviour of tool 1 to stay selected, the impossibility
>
> to
>
>>perform drag'n'drop actions with other tools at the same time breaks my
>
> app :-(
>
>>
>>any idea?
>>
>>thanks andreas
>>
>>Pratik Shah schrieb:
>>
> paletteToolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOA D_WHEN_FINISHED,
>
>>>Boolean.FALSE);
>>>
>>>"josé" <user1981@gmail.com> wrote in message
>>>news:72b826dc3be3f9d5a60692d84e4c17f2$1@www.eclipse.org...
>>>
>>>
>>>>Hi to all. Here's my simple question. I've noticed that my creation
>
> tools
>
>>>>on my editor's palette don't remain selected. I mean, when i use the
>>>>marquee or the selection tool they stay selected no mather the times a
>
> use
>
>>>>them. The problem is that my "other" tools get unselected when i use
>
> them.
>
>>>>I took a look at the logic example and it seems the same, only the
>>>>selection tools seem to stick selected.
>>>>
>>>>Any idea why?
>>>>
>>>>thanks in advance
>>>>
>>>
>>>
>>>
>
>
Re: sticky tool selected on the palette [message #198892 is a reply to message #198837] Thu, 13 October 2005 10:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

Pratik,

On a related issue, I've noticed that with some Eclipse based tools you
can hold down CTRL to key to retain the current tool mode. Is this
something that can be enabled, or must it be implemented by adding
appropriate key binding etc?

James

Pratik Shah wrote:

> setUnloadWhenFinished(false) only prevents the tool from getting deactivated
> after it has been used once. The other tools should still be working.
> Dragging another tool should work fine, and the default tool should get
> activated after that. You might be doing something wrong if that is not
> what you're experiencing. Start another thread and provide more details.

> "Andreas Bruns" <andi@nospam.netbruns.de> wrote in message
> news:dij2sg$n9j$1@news.eclipse.org...
>> Hi at all,
>>
>> I see how tools can be made sticky.
>> I need other tools to stay draggeable at the same time.
>>
>> example:
>>
>> tool 1 is selected and placed several times in the editor.
>> after that a drag'n'drop action is performed on tool 2 which unfortunaly
>> does not execute since tool 1 stays selected (which is ok so placing tool
> 1
>> can be continued after the d'n'd).
>>
>> While I like the behaviour of tool 1 to stay selected, the impossibility
> to
>> perform drag'n'drop actions with other tools at the same time breaks my
> app :-(
>>
>>
>> any idea?
>>
>> thanks andreas
>>
>> Pratik Shah schrieb:
>> >
> paletteToolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOA D_WHEN_FINISHED,
>> > Boolean.FALSE);
>> >
>> > "josé" <user1981@gmail.com> wrote in message
>> > news:72b826dc3be3f9d5a60692d84e4c17f2$1@www.eclipse.org...
>> >
>> >>Hi to all. Here's my simple question. I've noticed that my creation
> tools
>> >>on my editor's palette don't remain selected. I mean, when i use the
>> >>marquee or the selection tool they stay selected no mather the times a
> use
>> >>them. The problem is that my "other" tools get unselected when i use
> them.
>> >>I took a look at the logic example and it seems the same, only the
>> >>selection tools seem to stick selected.
>> >>
>> >>Any idea why?
>> >>
>> >>thanks in advance
>> >>
>> >
>> >
>> >
Re: sticky tool selected on the palette [message #199029 is a reply to message #198892] Thu, 13 October 2005 17:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Open a feature request and mention where you see similar behaviour
(Eclipse-based tools or other software, if any). You should be able to
implement this on your own as well without too much trouble.

For 3.2, we have a feature request for palette keybindings, where pressing a
key combination would select a tool. You might find that to be a
satisfactory alternative.

"James Willans" <james.willans@xactium.com> wrote in message
news:15826ff6c6f8ea1efb12f394d6681cc0$1@www.eclipse.org...
> Pratik,
>
> On a related issue, I've noticed that with some Eclipse based tools you
> can hold down CTRL to key to retain the current tool mode. Is this
> something that can be enabled, or must it be implemented by adding
> appropriate key binding etc?
>
> James
>
> Pratik Shah wrote:
>
> > setUnloadWhenFinished(false) only prevents the tool from getting
deactivated
> > after it has been used once. The other tools should still be working.
> > Dragging another tool should work fine, and the default tool should get
> > activated after that. You might be doing something wrong if that is not
> > what you're experiencing. Start another thread and provide more
details.
>
> > "Andreas Bruns" <andi@nospam.netbruns.de> wrote in message
> > news:dij2sg$n9j$1@news.eclipse.org...
> >> Hi at all,
> >>
> >> I see how tools can be made sticky.
> >> I need other tools to stay draggeable at the same time.
> >>
> >> example:
> >>
> >> tool 1 is selected and placed several times in the editor.
> >> after that a drag'n'drop action is performed on tool 2 which
unfortunaly
> >> does not execute since tool 1 stays selected (which is ok so placing
tool
> > 1
> >> can be continued after the d'n'd).
> >>
> >> While I like the behaviour of tool 1 to stay selected, the
impossibility
> > to
> >> perform drag'n'drop actions with other tools at the same time breaks my
> > app :-(
> >>
> >>
> >> any idea?
> >>
> >> thanks andreas
> >>
> >> Pratik Shah schrieb:
> >> >
> >
paletteToolEntry.setToolProperty(AbstractTool.PROPERTY_UNLOA D_WHEN_FINISHED,
> >> > Boolean.FALSE);
> >> >
> >> > "jos
Re: sticky tool selected on the palette [message #199974 is a reply to message #199029] Thu, 20 October 2005 09:39 Go to previous message
Nicolai Guba is currently offline Nicolai GubaFriend
Messages: 8
Registered: July 2009
Junior Member
Pratik Shah wrote:


> For 3.2, we have a feature request for palette keybindings, where pressing
> a
> key combination would select a tool. You might find that to be a
> satisfactory alternative.

Oh, that would be a great feature. Quite a few of our users have requested
that feature in our alpha trials.

--
Nicolai Guba
+44.(0)151.282.3709
Sony Computer Entertainment Europe
http://www.scee.com
Previous Topic:EditPart can't receive REQ_OPEN and REQ_SELECTION request
Next Topic:DND
Goto Forum:
  


Current Time: Tue Nov 12 17:31:47 GMT 2024

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

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

Back to the top