Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with TableViewer and SWT.CHECK
Problem with TableViewer and SWT.CHECK [message #81387] |
Fri, 04 April 2008 08:32  |
Eclipse User |
|
|
|
Hi!
About an half year ago i created a Composite with a TableViewer with
SWT.CHECK. It worked fine.
Today i tried to reuse this Composite, but i got an error page saying:
'Could not evaluate javascript response:
TypeError: item has no properties'.
If i remove SWT.CHECK in the constructor it works again, but of course
without checkboxes.
Has something been changed here in the last months?
Here is the complete error message:
Could not evaluate javascript response:
TypeError: item has no properties
org.eclipse.swt.EventUtil.suspendEventHandling();var req =
org.eclipse.swt.Request.getInstance();req.setRequestCounter( "19" );var
wm = org.eclipse.swt.WidgetManager.getInstance();var w =
wm.findWidgetById( "w3" );w.setSpace( 2, 832, 21, 20 );var w =
wm.findWidgetById( "w37" );w.setVisibility( false );var w =
wm.findWidgetById( "w70" );w.setVisibility( true );var w =
wm.findWidgetById( "w73" );w.setValue( "Container" );var w =
wm.findWidgetById( "w75" );w.setValue( "ein Beispielcontainer" );var w =
wm.findWidgetById( "w77" );w.setItemMetrics( 0, 0, 0, 0, 9
);w.setItemMetrics( 1, 9, 0, 9, 130 );w.setItemMetrics( 2, 139, 0, 139,
80 );w.setItemMetrics( 3, 219, 0, 219, 80 );w.setItemMetrics( 4, 299, 0,
299, 80 );w.setItemCount( 5 );var w = wm.newWidget( "w196", "", false,
null, 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ),
0' );w.setTexts( [ "", "Unteraktion 4", "2", "", "" ] );w.update();var w
= wm.newWidget( "w197", "", false, null,
'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 1'
);w.setTexts( [ "", "Unteraktion 5", "2", "", "" ] );w.update();var w =
wm.newWidget( "w198", "", false, null,
'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 2'
);w.setTexts( [ "", "Unteraktion 1", "2", "", "" ] );w.update();var w =
wm.newWidget( "w199", "", false, null,
'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 3'
);w.setTexts( [ "", "Unteraktion 2", "2", "", "" ] );w.update();var w =
wm.newWidget( "w200", "", false, null,
'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 4'
);w.setTexts( [ "", "Unteraktion 3", "2", "", "" ] );w.update();var w =
wm.findWidgetById( "w84" );w.setChecked( true
);qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.Even tUtil.resumeEventHandling();
Regards Magnus
|
|
|
Re: Problem with TableViewer and SWT.CHECK [message #81415 is a reply to message #81387] |
Fri, 04 April 2008 09:07   |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Magnus,
this looks like it is caused by this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=220963
that was fixed in CVS HEAD some time ago.
Cn you confirm this? If you are already working with CVS HEAD, feel
free to open a bugzilla.
Cheers,
Rüdiger
Magnus Konze wrote:
> Hi!
> About an half year ago i created a Composite with a TableViewer with
> SWT.CHECK. It worked fine.
> Today i tried to reuse this Composite, but i got an error page saying:
> 'Could not evaluate javascript response:
> TypeError: item has no properties'.
> If i remove SWT.CHECK in the constructor it works again, but of course
> without checkboxes.
> Has something been changed here in the last months?
>
> Here is the complete error message:
>
> Could not evaluate javascript response:
>
> TypeError: item has no properties
>
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "19" );var
> wm = org.eclipse.swt.WidgetManager.getInstance();var w =
> wm.findWidgetById( "w3" );w.setSpace( 2, 832, 21, 20 );var w =
> wm.findWidgetById( "w37" );w.setVisibility( false );var w =
> wm.findWidgetById( "w70" );w.setVisibility( true );var w =
> wm.findWidgetById( "w73" );w.setValue( "Container" );var w =
> wm.findWidgetById( "w75" );w.setValue( "ein Beispielcontainer" );var w =
> wm.findWidgetById( "w77" );w.setItemMetrics( 0, 0, 0, 0, 9
> );w.setItemMetrics( 1, 9, 0, 9, 130 );w.setItemMetrics( 2, 139, 0, 139,
> 80 );w.setItemMetrics( 3, 219, 0, 219, 80 );w.setItemMetrics( 4, 299, 0,
> 299, 80 );w.setItemCount( 5 );var w = wm.newWidget( "w196", "", false,
> null, 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ),
> 0' );w.setTexts( [ "", "Unteraktion 4", "2", "", "" ] );w.update();var w
> = wm.newWidget( "w197", "", false, null,
> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 1'
> );w.setTexts( [ "", "Unteraktion 5", "2", "", "" ] );w.update();var w =
> wm.newWidget( "w198", "", false, null,
> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 2'
> );w.setTexts( [ "", "Unteraktion 1", "2", "", "" ] );w.update();var w =
> wm.newWidget( "w199", "", false, null,
> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 3'
> );w.setTexts( [ "", "Unteraktion 2", "2", "", "" ] );w.update();var w =
> wm.newWidget( "w200", "", false, null,
> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 4'
> );w.setTexts( [ "", "Unteraktion 3", "2", "", "" ] );w.update();var w =
> wm.findWidgetById( "w84" );w.setChecked( true
> );qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.Even tUtil.resumeEventHandling();
>
>
> Regards Magnus
|
|
|
Re: Problem with TableViewer and SWT.CHECK [message #81912 is a reply to message #81415] |
Tue, 08 April 2008 05:15  |
Eclipse User |
|
|
|
Hi!
i tried it again with RAP 1.1.0-M3 and it works again.
Thank you very much!
Magnus
Rüdiger Herrmann schrieb:
> Magnus,
>
> this looks like it is caused by this bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=220963
> that was fixed in CVS HEAD some time ago.
> Cn you confirm this? If you are already working with CVS HEAD, feel free
> to open a bugzilla.
>
> Cheers,
> Rüdiger
>
> Magnus Konze wrote:
>> Hi!
>> About an half year ago i created a Composite with a TableViewer with
>> SWT.CHECK. It worked fine.
>> Today i tried to reuse this Composite, but i got an error page saying:
>> 'Could not evaluate javascript response:
>> TypeError: item has no properties'.
>> If i remove SWT.CHECK in the constructor it works again, but of course
>> without checkboxes.
>> Has something been changed here in the last months?
>>
>> Here is the complete error message:
>>
>> Could not evaluate javascript response:
>>
>> TypeError: item has no properties
>>
>> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
>> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "19"
>> );var wm = org.eclipse.swt.WidgetManager.getInstance();var w =
>> wm.findWidgetById( "w3" );w.setSpace( 2, 832, 21, 20 );var w =
>> wm.findWidgetById( "w37" );w.setVisibility( false );var w =
>> wm.findWidgetById( "w70" );w.setVisibility( true );var w =
>> wm.findWidgetById( "w73" );w.setValue( "Container" );var w =
>> wm.findWidgetById( "w75" );w.setValue( "ein Beispielcontainer" );var w
>> = wm.findWidgetById( "w77" );w.setItemMetrics( 0, 0, 0, 0, 9
>> );w.setItemMetrics( 1, 9, 0, 9, 130 );w.setItemMetrics( 2, 139, 0,
>> 139, 80 );w.setItemMetrics( 3, 219, 0, 219, 80 );w.setItemMetrics( 4,
>> 299, 0, 299, 80 );w.setItemCount( 5 );var w = wm.newWidget( "w196",
>> "", false, null, 'org.eclipse.swt.widgets.TableItem',
>> 'wm.findWidgetById( "w77" ), 0' );w.setTexts( [ "", "Unteraktion 4",
>> "2", "", "" ] );w.update();var w = wm.newWidget( "w197", "", false,
>> null, 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77"
>> ), 1' );w.setTexts( [ "", "Unteraktion 5", "2", "", "" ]
>> );w.update();var w = wm.newWidget( "w198", "", false, null,
>> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 2'
>> );w.setTexts( [ "", "Unteraktion 1", "2", "", "" ] );w.update();var w
>> = wm.newWidget( "w199", "", false, null,
>> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 3'
>> );w.setTexts( [ "", "Unteraktion 2", "2", "", "" ] );w.update();var w
>> = wm.newWidget( "w200", "", false, null,
>> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w77" ), 4'
>> );w.setTexts( [ "", "Unteraktion 3", "2", "", "" ] );w.update();var w
>> = wm.findWidgetById( "w84" );w.setChecked( true
>> );qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.Even tUtil.resumeEventHandling();
>>
>>
>> Regards Magnus
|
|
|
Goto Forum:
Current Time: Wed Jul 02 16:20:17 EDT 2025
Powered by FUDForum. Page generated in 0.03461 seconds
|