Home » Eclipse Projects » Remote Application Platform (RAP) » error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar
error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar [message #1066022] |
Sat, 29 June 2013 03:26 |
David Song Messages: 217 Registered: April 2011 |
Senior Member |
|
|
hi,
error code like below occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar, when I remove the dropDownViewer from the text widget, everything goes ok!
Client Error
Details:
Error: TypeError: this.getParent(...) is null
stack: .members.getFocusRoot@http://localhost:10080/rwt-resources/rap-client.js:12137
hasFocus@http://localhost:10080/score#gradeinput:436
checkFocus@http://localhost:10080/score#gradeinput:374
.members._dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6261
.members.dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6191
.members._oninterval@http://localhost:10080/rwt-resources/rap-client.js:6902
.statics.bind/wrap@http://localhost:10080/rwt-resources/rap-client.js:5725
fileName: http://localhost:10080/rwt-resources/rap-client.js
lineNumber: 12137
columnNumber: 8
Stack: .members.getFocusRoot@http://localhost:10080/rwt-resources/rap-client.js:12137
hasFocus@http://localhost:10080/score#gradeinput:436
checkFocus@http://localhost:10080/score#gradeinput:374
.members._dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6261
.members.dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6191
.members._oninterval@http://localhost:10080/rwt-resources/rap-client.js:6902
.statics.bind/wrap@http://localhost:10080/rwt-resources/rap-client.js:5725
Debug: on
david
[Updated on: Sat, 29 June 2013 04:57] Report message to a moderator
|
|
| | | | | | | |
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066426 is a reply to message #1066360] |
Tue, 02 July 2013 15:37 |
Tim Buschtoens Messages: 396 Registered: July 2009 |
Senior Member |
|
|
That's not it either. This approach isn't going to work.
When I search for "checkFocus" and "hasFocus" it finds nothing in the
RAP core, but it does in a RAP custom widget from the Incubator
(DropDown, even in the call order from your stack trace). So unless I'm
severely mistaken, you *DO* have a custom widget in your launch config
that causes this error and should remove it from your code and launch
config to see if it fixes the issue. If so, it's a bug in that custom
widget.
Greetings,
Tim
Am 02.07.2013 12:41, schrieb Song David:
> Thanks Tim, as you said, I click the track view item, nothing happened excepted just a yellow flash line on the bottom in Sources window. When I click the pause button, the code displays as below screenshot.
>
>
>
> Regards
> David
>
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
| | | |
Re: error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar [message #1066966 is a reply to message #1066588] |
Fri, 05 July 2013 09:26 |
|
David,
I've just tried this in a simple snippet, but couldn't reproduce:
ToolBar toolBar = new ToolBar( parent, SWT.NONE );
new ToolItem( toolBar, SWT.NONE ).setText( "toolbar" );
ToolItem toolItem = new ToolItem( toolBar, SWT.SEPARATOR );
Text text = new Text( toolBar, SWT.BORDER );
toolItem.setControl( text );
toolItem.setWidth( 200 );
DropDownViewer viewer = new DropDownViewer( text );
viewer.setContentProvider( new ArrayContentProvider() );
viewer.setLabelProvider( new LabelProvider() );
viewer.setInput( new String[] { "One", "Two", "Three" } );
This snippet works fine in FF and Chrome. Could you provide a snippet
that shows the exception and explain the steps to reproduce it?
Thanks,
Ralf
--
Ralf Sternberg
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Goto Forum:
Current Time: Fri Sep 20 16:01:55 GMT 2024
Powered by FUDForum. Page generated in 0.05087 seconds
|