ToolBar and Item (default) Selection [message #657123] |
Tue, 01 March 2011 16:33 |
Jens Kreidler Messages: 17 Registered: July 2009 |
Junior Member |
|
|
Hi Community,
i 'vs got an issue concerning ToolItems in a single-sourced environment.
Projects (for both RCP and RAP) are provided as attachment.
Short description:
There is a ToolBar with two IActions (manifested as ToolItems via the jface ToolBarManager-API), between these two items is a ControlContribution that displays a swt-Text widget.
The right item outputs the text in a label currently visible/entered in the textfield.
The left item resets the output.
In RCP, everything acts a wanted.
In RAP, do the following:
1- Start the ToolItems_Test rap application (accessible via "/rap?startup=ToolItem_Test.app")
2- Click left into the Text field
3- Enter any string and press return
4- Click left on 'Reset'
5- Click left into the Text field again
6- Enter any string and press return
=> you 'll see that the "action" *and* the reset-action occurs (?)
You 'll also see that the reset action is "pushed", so somehow in rap the ToolBar respectively the reset - ToolItem reacts on the return command.
Download mini-projects rcp/rap from bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338639
(tested against RAP 1.4M5 (from 4th Feb 2011))
Any hint or help is appreciated
[Updated on: Wed, 02 March 2011 10:27] Report message to a moderator
|
|
|
Re: ToolBar and Item (default) Selection [message #657265 is a reply to message #657123] |
Wed, 02 March 2011 09:06 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Jens,
if your code works fine in RAP, but RAP, it's probably a bug in RAP.
Please file a bugzilla with the projects attached to the bug. Please
specify the RAP version used. There is a small chance that this problem
is fixed by the update of JFace/Workbench to current 3.7 code base (we
did this in 1.4 M5). Is it possible to test your project with 1.4M5 (or
CVS HEAD)?
Best,
Ivan
On 3/1/2011 6:33 PM, Jens Kreidler wrote:
> Hi Community,
>
> i 'vs got an issue concerning ToolItems in a single-sourced
> environment. Projects (for both RCP and RAP) are provided as attachment.
>
> Short description:
>
> There is a ToolBar with two IActions (manifested as ToolItems via the
> jface ToolBarManager-API), between these two items is a
> ControlContribution that displays a swt-Text widget.
>
> The right item outputs the text in a label currently visible/entered
> in the textfield.
> The left item resets the output.
>
> In RCP, everything acts a wanted.
> In RAP, do the following:
> 1- Start the ToolItems_Test rap application (accessible via
> "/rap?startup=ToolItem_Test.app")
> 2- Click left into the Text field
> 3- Enter any string and press return
> 4- Click left on 'Reset'
> 5- Click left into the Text field again
> 6- Enter any string and press return
>
> => you 'll see that the "action" *and* the reset-action occurs (?) You
> 'll also see that the reset action is "pushed", so somehow in rap the
> ToolBar respectively the reset - ToolItem reacts on the return command.
>
> Any hint or help is appreciated
|
|
|
|
Powered by
FUDForum. Page generated in 0.03539 seconds