Home » Eclipse Projects » Remote Application Platform (RAP) » IDoubleClickListener(CheckboxTableViewer's IDoubleClickListener)
IDoubleClickListener [message #645778] |
Mon, 20 December 2010 10:02  |
Eclipse User |
|
|
|
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 10:06] by Moderator
|
|
|
Re: IDoubleClickListener [message #645802 is a reply to message #645778] |
Mon, 20 December 2010 11:18   |
Eclipse User |
|
|
|
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 08:25   |
Eclipse User |
|
|
|
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 05:55   |
Eclipse User |
|
|
|
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 #659702 is a reply to message #659697] |
Tue, 15 March 2011 05:59   |
Eclipse User |
|
|
|
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 #675754 is a reply to message #675740] |
Wed, 01 June 2011 07:54  |
Eclipse User |
|
|
|
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: Sun Jul 27 00:38:52 EDT 2025
Powered by FUDForum. Page generated in 0.06057 seconds
|