Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Text widget in ToolBar
Text widget in ToolBar [message #527250] Wed, 14 April 2010 14:49 Go to next message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
Hello,

With the snippet below I place a text widget in a toolbar. But upon typing
in text I get JS errors like

Fehler: this._hoverItem._onKeyDown is not a function
Quelldatei:
http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
Zeile: 355
Fehler: this._hoverItem._onKeyUp is not a function
Quelldatei:
http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
Zeile: 355

Are text widgets in toolbars not allowed?!?

Snippet:

public void createPartControl(Composite parent) {
parent.setLayout(new RowLayout());
ToolBar b = new ToolBar(parent, SWT.BORDER);
ToolItem ti1 = new ToolItem(b, SWT.PUSH);
ti1.setText("Item 1");
ToolItem ti2 = new ToolItem(b, SWT.SEPARATOR);
Text text = new Text(b, SWT.BORDER);
text.setText("Item 2");
ti2.setControl(text);
ti2.setWidth(100);
b.pack();
}


Regards, Niels
Re: Text widget in ToolBar [message #527269 is a reply to message #527250] Wed, 14 April 2010 15:21 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Niels,

just checked your snippet in IE 8 and FF 3.6.3 (CVS HEAD) and it works
without errors. What RAP version are you using?

Best,
Ivan

On 04/14/2010 5:49 PM, Niels Lippke wrote:
> Hello,
>
> With the snippet below I place a text widget in a toolbar. But upon
> typing in text I get JS errors like
>
> Fehler: this._hoverItem._onKeyDown is not a function
> Quelldatei:
> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>
> Zeile: 355
> Fehler: this._hoverItem._onKeyUp is not a function
> Quelldatei:
> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>
> Zeile: 355
>
> Are text widgets in toolbars not allowed?!?
>
> Snippet:
>
> public void createPartControl(Composite parent) {
> parent.setLayout(new RowLayout());
> ToolBar b = new ToolBar(parent, SWT.BORDER);
> ToolItem ti1 = new ToolItem(b, SWT.PUSH);
> ti1.setText("Item 1");
> ToolItem ti2 = new ToolItem(b, SWT.SEPARATOR);
> Text text = new Text(b, SWT.BORDER);
> text.setText("Item 2");
> ti2.setControl(text);
> ti2.setWidth(100);
> b.pack();
> }
>
>
> Regards, Niels
Re: Text widget in ToolBar [message #527270 is a reply to message #527269] Wed, 14 April 2010 15:37 Go to previous messageGo to next message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
Hi,

this time I did a CVS HEAD update before posting. And I just updated again.
Still those errors (IE8, FF3.6).

If I use a CCombo instead of Text, everything is fine.

Regards,
Niels

"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:hq4mh1$hmt$1@build.eclipse.org...
> Hi Niels,
>
> just checked your snippet in IE 8 and FF 3.6.3 (CVS HEAD) and it works
> without errors. What RAP version are you using?
>
> Best,
> Ivan
>
> On 04/14/2010 5:49 PM, Niels Lippke wrote:
>> Hello,
>>
>> With the snippet below I place a text widget in a toolbar. But upon
>> typing in text I get JS errors like
>>
>> Fehler: this._hoverItem._onKeyDown is not a function
>> Quelldatei:
>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>> Zeile: 355
>> Fehler: this._hoverItem._onKeyUp is not a function
>> Quelldatei:
>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>> Zeile: 355
>>
>> Are text widgets in toolbars not allowed?!?
>>
>> Snippet:
>>
>> public void createPartControl(Composite parent) {
>> parent.setLayout(new RowLayout());
>> ToolBar b = new ToolBar(parent, SWT.BORDER);
>> ToolItem ti1 = new ToolItem(b, SWT.PUSH);
>> ti1.setText("Item 1");
>> ToolItem ti2 = new ToolItem(b, SWT.SEPARATOR);
>> Text text = new Text(b, SWT.BORDER);
>> text.setText("Item 2");
>> ti2.setControl(text);
>> ti2.setWidth(100);
>> b.pack();
>> }
>>
>>
>> Regards, Niels
Re: Text widget in ToolBar [message #527291 is a reply to message #527270] Wed, 14 April 2010 16:37 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Niels,

I've managed to reproduce it. Please file a bugzilla to keep track on
this issue.

TIA,
Ivan

On 04/14/2010 6:37 PM, Niels Lippke wrote:
> Hi,
>
> this time I did a CVS HEAD update before posting. And I just updated
> again. Still those errors (IE8, FF3.6).
>
> If I use a CCombo instead of Text, everything is fine.
>
> Regards,
> Niels
>
> "Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
> news:hq4mh1$hmt$1@build.eclipse.org...
>> Hi Niels,
>>
>> just checked your snippet in IE 8 and FF 3.6.3 (CVS HEAD) and it
>> works without errors. What RAP version are you using?
>>
>> Best,
>> Ivan
>>
>> On 04/14/2010 5:49 PM, Niels Lippke wrote:
>>> Hello,
>>>
>>> With the snippet below I place a text widget in a toolbar. But upon
>>> typing in text I get JS errors like
>>>
>>> Fehler: this._hoverItem._onKeyDown is not a function
>>> Quelldatei:
>>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>>>
>>> Zeile: 355
>>> Fehler: this._hoverItem._onKeyUp is not a function
>>> Quelldatei:
>>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>>>
>>> Zeile: 355
>>>
>>> Are text widgets in toolbars not allowed?!?
>>>
>>> Snippet:
>>>
>>> public void createPartControl(Composite parent) {
>>> parent.setLayout(new RowLayout());
>>> ToolBar b = new ToolBar(parent, SWT.BORDER);
>>> ToolItem ti1 = new ToolItem(b, SWT.PUSH);
>>> ti1.setText("Item 1");
>>> ToolItem ti2 = new ToolItem(b, SWT.SEPARATOR);
>>> Text text = new Text(b, SWT.BORDER);
>>> text.setText("Item 2");
>>> ti2.setControl(text);
>>> ti2.setWidth(100);
>>> b.pack();
>>> }
>>>
>>>
>>> Regards, Niels
>
Re: Text widget in ToolBar [message #527397 is a reply to message #527270] Thu, 15 April 2010 06:48 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
I filled a bug for you:

309263: [ToolBar] Javascript error when using Text widget in the toolbar
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309263

Best,
Ivan

On 04/14/2010 6:37 PM, Niels Lippke wrote:
> Hi,
>
> this time I did a CVS HEAD update before posting. And I just updated
> again. Still those errors (IE8, FF3.6).
>
> If I use a CCombo instead of Text, everything is fine.
>
> Regards,
> Niels
>
> "Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
> news:hq4mh1$hmt$1@build.eclipse.org...
>> Hi Niels,
>>
>> just checked your snippet in IE 8 and FF 3.6.3 (CVS HEAD) and it
>> works without errors. What RAP version are you using?
>>
>> Best,
>> Ivan
>>
>> On 04/14/2010 5:49 PM, Niels Lippke wrote:
>>> Hello,
>>>
>>> With the snippet below I place a text widget in a toolbar. But upon
>>> typing in text I get JS errors like
>>>
>>> Fehler: this._hoverItem._onKeyDown is not a function
>>> Quelldatei:
>>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>>>
>>> Zeile: 355
>>> Fehler: this._hoverItem._onKeyUp is not a function
>>> Quelldatei:
>>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>>>
>>> Zeile: 355
>>>
>>> Are text widgets in toolbars not allowed?!?
>>>
>>> Snippet:
>>>
>>> public void createPartControl(Composite parent) {
>>> parent.setLayout(new RowLayout());
>>> ToolBar b = new ToolBar(parent, SWT.BORDER);
>>> ToolItem ti1 = new ToolItem(b, SWT.PUSH);
>>> ti1.setText("Item 1");
>>> ToolItem ti2 = new ToolItem(b, SWT.SEPARATOR);
>>> Text text = new Text(b, SWT.BORDER);
>>> text.setText("Item 2");
>>> ti2.setControl(text);
>>> ti2.setWidth(100);
>>> b.pack();
>>> }
>>>
>>>
>>> Regards, Niels
>
Re: Text widget in ToolBar [message #527398 is a reply to message #527397] Thu, 15 April 2010 06:57 Go to previous message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
Thanks Ivan,

didn't manage to file a bug, yesterday.

Regards,
Niels

"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:hq6csn$i32$1@build.eclipse.org...
>I filled a bug for you:
>
> 309263: [ToolBar] Javascript error when using Text widget in the toolbar
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=309263
>
> Best,
> Ivan
>
> On 04/14/2010 6:37 PM, Niels Lippke wrote:
>> Hi,
>>
>> this time I did a CVS HEAD update before posting. And I just updated
>> again. Still those errors (IE8, FF3.6).
>>
>> If I use a CCombo instead of Text, everything is fine.
>>
>> Regards,
>> Niels
>>
>> "Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
>> news:hq4mh1$hmt$1@build.eclipse.org...
>>> Hi Niels,
>>>
>>> just checked your snippet in IE 8 and FF 3.6.3 (CVS HEAD) and it works
>>> without errors. What RAP version are you using?
>>>
>>> Best,
>>> Ivan
>>>
>>> On 04/14/2010 5:49 PM, Niels Lippke wrote:
>>>> Hello,
>>>>
>>>> With the snippet below I place a text widget in a toolbar. But upon
>>>> typing in text I get JS errors like
>>>>
>>>> Fehler: this._hoverItem._onKeyDown is not a function
>>>> Quelldatei:
>>>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>>>> Zeile: 355
>>>> Fehler: this._hoverItem._onKeyUp is not a function
>>>> Quelldatei:
>>>> http://localhost:10080/rap?custom_service_handler=org.eclips e.rwt.internal.service.JSLibraryServiceHandler&hash=H-13 38003700
>>>> Zeile: 355
>>>>
>>>> Are text widgets in toolbars not allowed?!?
>>>>
>>>> Snippet:
>>>>
>>>> public void createPartControl(Composite parent) {
>>>> parent.setLayout(new RowLayout());
>>>> ToolBar b = new ToolBar(parent, SWT.BORDER);
>>>> ToolItem ti1 = new ToolItem(b, SWT.PUSH);
>>>> ti1.setText("Item 1");
>>>> ToolItem ti2 = new ToolItem(b, SWT.SEPARATOR);
>>>> Text text = new Text(b, SWT.BORDER);
>>>> text.setText("Item 2");
>>>> ti2.setControl(text);
>>>> ti2.setWidth(100);
>>>> b.pack();
>>>> }
>>>>
>>>>
>>>> Regards, Niels
>>
Previous Topic:Adding a command to view's tool bar throws java.lang.IllegalArgumentException: Index out of bounds
Next Topic:Application-wide preferences
Goto Forum:
  


Current Time: Tue Dec 07 19:39:53 GMT 2021

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

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

Back to the top