Home » Eclipse Projects » Remote Application Platform (RAP) » IDoubleClickListener(CheckboxTableViewer's IDoubleClickListener)
IDoubleClickListener [message #645778] |
Mon, 20 December 2010 15:02 |
Sudesh Bulathsinhala Messages: 193 Registered: October 2010 |
Senior Member |
|
|
hi,
i've experienced following error using IDoubleClickListener + CheckboxTableViewer combination in RAP. however the same works fine, when double click event is triggered from our single source RCP product, which uses the same code base.
also, it works as expected in RAP, when the method is invoked from toolbar event in RAP client.
i've tried to debug IDoubleClickListener event and surprisingly it works as expected during the debug mode, and when invoked several times repeatedly during debug mode, it produces the error message after few attempts.
METHOD :
_doubleClickListener = new IDoubleClickListener() {
@Override
public void doubleClick(final DoubleClickEvent event) {
if (_isRecordViewSupported) {
if (event.getSelection() != null) {
final IStructuredSelection selection = (IStructuredSelection) event
.getSelection();
if (selection.getFirstElement() != null) {
final DatasetGridRecordModel datasetGridRecordModel = (DatasetGridRecordModel) selection
.getFirstElement();
if (datasetGridRecordModel.getRecordId() != null) {
getDatasetBroadcast().notifyRecordView(
getName(),
new UUIDDataValue(
datasetGridRecordModel
.getRecordId()));
}
}
}
}
}
};
ERROR MESSAGE :
Could not evaluate javascript response:
TypeError: Cannot call method '_render' of undefined
var wm = org.eclipse.swt.WidgetManager.getInstance();var w = wm.findWidgetById( "w554" );w.dispose();var w = wm.findWidgetById( "w555" );w.dispose();var w = wm.findWidgetById( "w556" );w.dispose();var w = wm.findWidgetById( "w557" );w.dispose();var w = wm.findWidgetById( "w558" );w.dispose();var w = wm.findWidgetById( "w559" );w.dispose();var w = wm.findWidgetById( "w560" );w.dispose();var w = wm.findWidgetById( "w561" );w.dispose();var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "38" );wm.setToolTip( wm.findWidgetById( "w138" ), "Locked" );var w = wm.findWidgetById( "w138" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w139" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w141" ), "Locked" );var w = wm.findWidgetById( "w141" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w142" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w144" ), "Locked" );var w = wm.findWidgetById( "w144" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w145" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w147" ), "Locked" );var w = wm.findWidgetById( "w147" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w149" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );var w = wm.findWidgetById( "w150" );w.setEnabled( false );w.resetTextColor();wm.setToolTip( wm.findWidgetById( "w152" ), "Locked" );var w = wm.findWidgetById( "w152" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w153" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w160" ), "Locked" );var w = wm.findWidgetById( "w160" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w162" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );var w = wm.findWidgetById( "w163" );w.setEnabled( false );w.resetTextColor();wm.setToolTip( wm.findWidgetById( "w165" ), "Locked" );var w = wm.findWidgetById( "w165" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w166" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w168" ), "Locked" );var w = wm.findWidgetById( "w168" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w169" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w171" ), "Locked" );var w = wm.findWidgetById( "w171" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w172" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w174" ), "Locked" );var w = wm.findWidgetById( "w174" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w175" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w177" ), "Locked" );var w = wm.findWidgetById( "w177" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w179" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );var w = wm.findWidgetById( "w180" );w.setEnabled( false );w.resetTextColor();wm.setToolTip( wm.findWidgetById( "w187" ), "Locked" );var w = wm.findWidgetById( "w187" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w189" );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor( "#dcdfe4" );var w = wm.findWidgetById( "w190" );w.setEnabled( false );w.resetTextColor();var w = wm.findWidgetById( "w191" );w.setEnabled( false );w.resetTextColor();var w = wm.findWidgetById( "w193" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w196" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w199" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w202" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w205" );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w217" );w.setVisibility( true );var w = wm.findWidgetById( "w226" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w228" );w.setValue( "C001ADD5" );org.eclipse.swt.TextUtil.setSelection( w, 0, 8 );var w = wm.findWidgetById( "w233" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w237" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w238" );w.setMonth( 10 );w.setDay( 5 );var w = wm.findWidgetById( "w241" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w245" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w254" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w260" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w266" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w272" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w278" );w.setIcon( "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w289" );w.setVisibility( false );var w = wm.findWidgetById( "w290" );w.setItemCount( 1 );w.setFocusIndex( -1 );var w = new org.eclipse.swt.widgets.TableItem( wm.findWidgetById( "w290" ), 0 );wm.add( w, "w562", false );w.setTexts( [ "C001ADD5", "", "11/5/09", "", "Not Required/Completed", "Id Cust Sort Code 1", "", "", "", "" ] );w.update();var w = wm.findWidgetById( "w305" );w.setEnabled( false );var w = wm.findWidgetById( "w309" );w.setEnabled( false );var w = wm.findWidgetById( "w310" );w.setEnabled( false );var w = wm.findWidgetById( "w311" );w.setEnabled( false );var w = wm.findWidgetById( "w312" );w.setEnabled( false );var w = wm.findWidgetById( "w314" );w.setEnabled( true );var w = wm.findWidgetById( "w315" );w.setEnabled( true );var w = wm.findWidgetById( "w317" );w.setEnabled( false );var w = wm.findWidgetById( "w331" );w.setEnabled( false );var w = wm.findWidgetById( "w332" );w.setEnabled( false );var w = wm.findWidgetById( "w333" );w.setEnabled( false );var w = wm.findWidgetById( "w334" );w.setEnabled( false );var w = wm.findWidgetById( "w335" );w.setEnabled( false );var w = wm.findWidgetById( "w336" );w.setEnabled( false );var w = wm.findWidgetById( "w338" );w.setEnabled( false );var w = wm.findWidgetById( "w339" );w.setEnabled( false );var w = wm.findWidgetById( "w340" );w.setEnabled( false );var w = wm.findWidgetById( "w341" );w.setEnabled( false );var w = wm.findWidgetById( "w346" );w.setEnabled( false );var w = wm.findWidgetById( "w16" );w.setActiveControl( wm.findWidgetById( "w228" ) );org.eclipse.swt.WidgetManager.getInstance().focus( "w228" );
any help on this will be highly appreciated.
thanks & regards,
sudesh
[Updated on: Mon, 20 December 2010 15:06] Report message to a moderator
|
|
|
Re: IDoubleClickListener [message #645802 is a reply to message #645778] |
Mon, 20 December 2010 16:18 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Sudesh,
could you open a bugzilla with a self-running snippet to reproduce it?
Which version of RAP are you using?
Best,
Ivan
On 20.12.2010 5:02 PM, Sudesh Bulathsinhala wrote:
> hi,
>
> i've experienced following error using IDoubleClickListener +
> CheckboxTableViewer in RAP. however the same works fine, when double
> click event is triggered from our single source RCP product, which
> uses the same code base.
>
> also, it works as expected in RAP, when the method is invoked from
> toolbar event in RAP client.
>
> i've tried to debug using IDoubleClickListener and surprisingly it
> works while debug mode, and when invoked several times repeatedly it
> produces the error message after few attempts.
>
> METHOD :
> _doubleClickListener = new IDoubleClickListener() {
> @Override
> public void doubleClick(final DoubleClickEvent event) {
> if (_isRecordViewSupported) {
> if (event.getSelection() != null) {
> final IStructuredSelection selection =
> (IStructuredSelection) event
> .getSelection();
> if (selection.getFirstElement() != null) {
> final DatasetGridRecordModel
> datasetGridRecordModel = (DatasetGridRecordModel) selection
> .getFirstElement();
> if (datasetGridRecordModel.getRecordId()
> != null) {
> getDatasetBroadcast().notifyRecordView(
> getName(),
> new UUIDDataValue(
> datasetGridRecordModel
> .getRecordId()));
> }
> }
> }
> }
> }
> };
>
> ERROR MESSAGE :
> Could not evaluate javascript response:
>
> TypeError: Cannot call method '_render' of undefined
>
> var wm = org.eclipse.swt.WidgetManager.getInstance();var w =
> wm.findWidgetById( "w554" );w.dispose();var w = wm.findWidgetById(
> "w555" );w.dispose();var w = wm.findWidgetById( "w556"
> );w.dispose();var w = wm.findWidgetById( "w557" );w.dispose();var w =
> wm.findWidgetById( "w558" );w.dispose();var w = wm.findWidgetById(
> "w559" );w.dispose();var w = wm.findWidgetById( "w560"
> );w.dispose();var w = wm.findWidgetById( "w561" );w.dispose();var req
> = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "38"
> );wm.setToolTip( wm.findWidgetById( "w138" ), "Locked" );var w =
> wm.findWidgetById( "w138" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w139"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w141" ), "Locked" );var
> w = wm.findWidgetById( "w141" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w142"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w144" ), "Locked" );var
> w = wm.findWidgetById( "w144" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w145"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w147" ), "Locked" );var
> w = wm.findWidgetById( "w147" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w149"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );var w = wm.findWidgetById( "w150" );w.setEnabled( false
> );w.resetTextColor();wm.setToolTip( wm.findWidgetById( "w152" ),
> "Locked" );var w = wm.findWidgetById( "w152" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w153"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w160" ), "Locked" );var
> w = wm.findWidgetById( "w160" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w162"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );var w = wm.findWidgetById( "w163" );w.setEnabled( false
> );w.resetTextColor();wm.setToolTip( wm.findWidgetById( "w165" ),
> "Locked" );var w = wm.findWidgetById( "w165" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w166"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w168" ), "Locked" );var
> w = wm.findWidgetById( "w168" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w169"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w171" ), "Locked" );var
> w = wm.findWidgetById( "w171" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w172"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w174" ), "Locked" );var
> w = wm.findWidgetById( "w174" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w175"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );wm.setToolTip( wm.findWidgetById( "w177" ), "Locked" );var
> w = wm.findWidgetById( "w177" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w179"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );var w = wm.findWidgetById( "w180" );w.setEnabled( false
> );w.resetTextColor();wm.setToolTip( wm.findWidgetById( "w187" ),
> "Locked" );var w = wm.findWidgetById( "w187" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w189"
> );w.setEnabled( false );w.resetTextColor();w.setBackgroundColor(
> "#dcdfe4" );var w = wm.findWidgetById( "w190" );w.setEnabled( false
> );w.resetTextColor();var w = wm.findWidgetById( "w191" );w.setEnabled(
> false );w.resetTextColor();var w = wm.findWidgetById( "w193"
> );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w =
> wm.findWidgetById( "w196" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w199"
> );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w =
> wm.findWidgetById( "w202" );w.setIcon(
> "rwt-resources/generated/9b5ecf3b" );var w = wm.findWidgetById( "w205"
> );w.setIcon( "rwt-resources/generated/9b5ecf3b" );var w =
> wm.findWidgetById( "w217" );w.setVisibility( true );var w =
> wm.findWidgetById( "w226" );w.setIcon(
> "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w228"
> );w.setValue( "C001ADD5" );org.eclipse.swt.TextUtil.setSelection( w,
> 0, 8 );var w = wm.findWidgetById( "w233" );w.setIcon(
> "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w237"
> );w.setIcon( "rwt-resources/generated/ce9553dd" );var w =
> wm.findWidgetById( "w238" );w.setMonth( 10 );w.setDay( 5 );var w =
> wm.findWidgetById( "w241" );w.setIcon(
> "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w245"
> );w.setIcon( "rwt-resources/generated/ce9553dd" );var w =
> wm.findWidgetById( "w254" );w.setIcon(
> "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w260"
> );w.setIcon( "rwt-resources/generated/ce9553dd" );var w =
> wm.findWidgetById( "w266" );w.setIcon(
> "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w272"
> );w.setIcon( "rwt-resources/generated/ce9553dd" );var w =
> wm.findWidgetById( "w278" );w.setIcon(
> "rwt-resources/generated/ce9553dd" );var w = wm.findWidgetById( "w289"
> );w.setVisibility( false );var w = wm.findWidgetById( "w290"
> );w.setItemCount( 1 );w.setFocusIndex( -1 );var w = new
> org.eclipse.swt.widgets.TableItem( wm.findWidgetById( "w290" ), 0
> );wm.add( w, "w562", false );w.setTexts( [ "C001ADD5", "", "11/5/09",
> "", "Not Required/Completed", "Id Cust Sort Code 1", "", "", "", "" ]
> );w.update();var w = wm.findWidgetById( "w305" );w.setEnabled( false
> );var w = wm.findWidgetById( "w309" );w.setEnabled( false );var w =
> wm.findWidgetById( "w310" );w.setEnabled( false );var w =
> wm.findWidgetById( "w311" );w.setEnabled( false );var w =
> wm.findWidgetById( "w312" );w.setEnabled( false );var w =
> wm.findWidgetById( "w314" );w.setEnabled( true );var w =
> wm.findWidgetById( "w315" );w.setEnabled( true );var w =
> wm.findWidgetById( "w317" );w.setEnabled( false );var w =
> wm.findWidgetById( "w331" );w.setEnabled( false );var w =
> wm.findWidgetById( "w332" );w.setEnabled( false );var w =
> wm.findWidgetById( "w333" );w.setEnabled( false );var w =
> wm.findWidgetById( "w334" );w.setEnabled( false );var w =
> wm.findWidgetById( "w335" );w.setEnabled( false );var w =
> wm.findWidgetById( "w336" );w.setEnabled( false );var w =
> wm.findWidgetById( "w338" );w.setEnabled( false );var w =
> wm.findWidgetById( "w339" );w.setEnabled( false );var w =
> wm.findWidgetById( "w340" );w.setEnabled( false );var w =
> wm.findWidgetById( "w341" );w.setEnabled( false );var w =
> wm.findWidgetById( "w346" );w.setEnabled( false );var w =
> wm.findWidgetById( "w16" );w.setActiveControl( wm.findWidgetById(
> "w228" ) );org.eclipse.swt.WidgetManager.getInstance().focus( "w228" );
>
> any help on this will be highly appreciated.
>
> thanks & regards,
> sudesh
|
|
| |
Re: IDoubleClickListener [message #646463 is a reply to message #646455] |
Fri, 24 December 2010 13:25 |
Sudesh Bulathsinhala Messages: 193 Registered: October 2010 |
Senior Member |
|
|
hello ivan,
i just did some further analysis and actually located where the real problem was.
during the following method, it gets crashed..
public void switchView(final String viewType) {
/* RECORD_VIEW */
if (viewType.equals(RECORD_VIEW)) {
_stackLayout.topControl = _gridRecordContentComposite;
}
/* GRID_VIEW */
else if (viewType.equals(GRID_VIEW)) {
_stackLayout.topControl = _gridTableContentComposite;
}
_gridComposite.layout();
}
actually the above method functionality is expected to switch between grid view and record view using StackLayout. when the appropriate type is invoked from DoubleClickListener event.
(the idea is to bring the underlying composite to the topmost, according to the viewType parameter)
the above snippet works fine with RCP, and sometimes it works with RAP in debug mode, provided i run through incremental steps.
however, if i invoke the same method from tool bar action, it just works in both RCP and RAP, without crashing.
hope above scenario will help you further.
any idea ?
regards,
sudesh
|
|
|
Re: IDoubleClickListener [message #646552 is a reply to message #646463] |
Mon, 27 December 2010 10:55 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Sudesh,
I will really appreciate, if you open a bugzilla with a self-running
snippet to reproduce it. Without it, I can't help you much.
Thanks,
Ivan
On 24.12.2010 3:25 PM, Sudesh Bulathsinhala wrote:
> hello ivan,
>
> i just did some further analysis and actually located where the real
> problem was.
>
> during the following method, it gets crashed..
>
> public void switchView(final String viewType) {
> /* RECORD_VIEW */
> if (viewType.equals(RECORD_VIEW)) {
> _stackLayout.topControl = _gridRecordContentComposite;
> }
> /* GRID_VIEW */
> else if (viewType.equals(GRID_VIEW)) {
> _stackLayout.topControl = _gridTableContentComposite;
> }
> _gridComposite.layout();
> }
>
> actually the above method functionality is expected to switch between
> grid view and record view using StackLayout. when the appropriate type
> is invoked from DoubleClickListener event. (the idea is to bring the
> underlying composite to the topmost, according to the viewType parameter)
>
> the above snippet works fine with RCP, and sometimes it works with RAP
> in debug mode, provided i run through incremental steps.
>
> however, if i invoke the same method from tool bar action, it just
> works in both RCP and RAP, without crashing.
>
> hope above scenario will help you further.
> any idea ?
>
> regards,
> sudesh
>
>
|
|
| | |
Re: IDoubleClickListener [message #647865 is a reply to message #647826] |
Mon, 10 January 2011 08:17 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Sudesh,
it's good to know that you find a solution of your problem, but I think
that it's a workaround. In any case, there should be NO javascript error
on the client. I'm interesting in a snippet that provokes this
javascript error and really ask you to open a bug with a snippet to
reproduce it.
Thanks in advanced,
Ivan
On 1/9/2011 7:23 PM, Sudesh Bulathsinhala wrote:
> hello ivan,
>
> actually it's working properly as expected. i had a method attached to
> both DoubleClickListener and SelectionListener, which is conflicting.
> this was causing the trouble. i had to move certain stuff to
> SelectionListener and the rest to DoubleClickLitener and it's working
> as expected.
>
> thanks & regards,
> sudesh
|
|
| | |
Re: IDoubleClickListener [message #659702 is a reply to message #659697] |
Tue, 15 March 2011 09:59 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Bassspieler,
any kind of JavaScript errors are bugs in RAP, but without a snippet to
reproduce it it's very hard to do anything about it.
Best,
Ivan
On 3/15/2011 11:50 AM, Bassspieler wrote:
> I seem to have the same problem. I have 1 method. This method lies in
> an editor, that has a list of contained further objects. The list of
> contained objects is displayed in a table. The method takes the ID of
> a selected contained object and tries to open another editor, to
> display the content of the selected object.
>
> This code to open another editor works, when I trigger it from a
> toolbar's button, that is inside the first editor. When I add a
> DoubleClickListener, that triggers the same method, it crashes every
> time with a javascript error.Could not evaluate javascript response:
>
> Error: TypeError: Cannot call method '_render' of undefined
> Then I have added a breakpoint to the first line of the triggered
> method. When the VM stops at this point and I simply press "play" the
> method works. Without the breakpoint it is crashing again.
>
> Sorry I am too layz to create a snippet for now. But can anyone use
> the information I could give?
>
> Best regards!
|
|
|
Re: IDoubleClickListener [message #664106 is a reply to message #645778] |
Thu, 07 April 2011 13:47 |
Bassspieler Messages: 40 Registered: April 2010 Location: Germany |
Member |
|
|
Still don't have overcome my laziness, but I have new information. I could solve my problem.
I had an editor that opened another editor via double-click. The opended editor had a refreshing method at the end of his start-up process that fetched all instances of editors of the kind of the very first editor and forced them to update. It was not a loop, but a strange thing, though. I changed the behaviour so that the 2nd editor does not try to refresh the 1st editor's types editors. Now the double click works fine.
Sounds like some kind of runtime-thready-issue, but I am not so into this stuff.
Best regards,
Bassspieler
[Updated on: Thu, 07 April 2011 13:47] Report message to a moderator
|
|
| |
Re: IDoubleClickListener [message #675754 is a reply to message #675740] |
Wed, 01 June 2011 11:54 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Bassspieler,
as we mention several times in this thread, without a bugreport and a
snippet to reproduce it we can't help you much.
Best,
Ivan
On 6/1/2011 2:31 PM, Bassspieler wrote:
> I am into this trouble again. This time I have a editor with a table.
> Double click on the table opens another editor. The only thing I do
> within the IDoubleClickListener is
>
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input,
> editorId)
>
> But I get
>
> Quote:
>> Could not evaluate javascript response:
>> Error: 'undefined' ist Null oder kein Objekt
>> name: TypeError
>> message: 'undefined' ist Null oder kein Objekt
>> number: -2146823281
>> description: 'undefined' ist Null oder kein Objekt
>> Debug: off
>> Request:
>> org.eclipse.swt.events.widgetDefaultSelected=w512&org.eclipse.swt.events.widgetSelected.index=0&org.eclipse.swt.events.keyDown=w512&org.eclipse.swt.events.keyDown.keyCode=13&org.eclipse.swt.events.keyDown.charCode=0&org.eclipse.swt.events.keyDown.modifier=&w1.cursorLocation.x=478&w1.cursorLocation.y=527&uiRoot=w1&requestCounter=123
>
>
> The reason for this seems to be the first editor. It's a special one.
> I have other editors where the same actions runs fine. The special
> thing with the editor is, that it contains a ComboBox and a table. On
> changing selection in the box, the TableViewer gets set new columns
> and data.
>
> The upper code that opens the editor returns the correct IEditorPart,
> but something while trying to create the UI crashes. The behaviour is
> exactly as described in the first post. In debug mode everything runs
> fine. On runtime is crashes.
>
> I know you RAP developers need code that contains the error, but still
> I can't help with that. So this post may serve as further
> documentation that something about the IDoubleClickListener is strange.
>
> Best regards.
|
|
|
Goto Forum:
Current Time: Thu Sep 19 22:53:39 GMT 2024
Powered by FUDForum. Page generated in 0.04295 seconds
|