two dialogs in one method PROBLEM?! [message #60455] |
Mon, 19 November 2007 07:03  |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
hi!
i'm experiencing a pretty annoying problem.
when i open 2 different dialogs during one method call the browser shows
the following error:
Could not evaluate javascript response:
TypeError: t has no properties
org.eclipse.swt.EventUtil.suspendEventHandling();var wm =
org.eclipse.swt.WidgetManager.getInstance();var t = wm.findWidgetById(
"w310" );t.setDefaultButton( null );wm.dispose( "w316" );wm.dispose(
"w315" );
...<output omitted>...
the exception which is thrown looks like this:
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1480)
at org.eclipse.swt.SWT.error(SWT.java:1400)
at org.eclipse.swt.SWT.error(SWT.java:1371)
at
org.eclipse.rwt.internal.lifecycle.UICallBackManager.notifyU IThreadEnd(UICallBackManager.java:139)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.cleanUp(RWTL ifeCycle.java:136)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:93)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$1.r un(LifeCycleServiceHandler.java:59)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:178)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:170)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:135)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:82 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.access$0(RWTLifeCycleServiceHandlerSync.java:48)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync$1.service(RWTLifeCycleServiceHandlerSync.java:43)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.run(RWTLifeCycleBlockControl.java:68 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olRunnable.run(RWTLifeCycleThreadPool.java:38)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olWorker.run(RWTLifeCycleThreadPool.java:66)
this example code creates the error. it's the same behaviour if i use
other dialogs that pop up:
benachrichtigungButton.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
MessageDialog.openInformation(parentComp.getShell(), "test", "bla");
MessageDialog.openInformation(parentComp.getShell(), "test", "bla");
}
});
any idea??
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02772 seconds