two dialogs in one method PROBLEM?! [message #60455] |
Mon, 19 November 2007 12: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??
|
|
|
Re: two dialogs in one method PROBLEM?! [message #60935 is a reply to message #60455] |
Tue, 20 November 2007 08:29 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
which version do you use? This should be fixed in CVS-Head. See bugzilla
entry #206322.
Ciao
Frank
"Ben W." <benjamin.wolff@web.de> schrieb im Newsbeitrag
news:23829f955e840577ed0a6a891ce5c9a1$1@www.eclipse.org...
> 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??
>
|
|
|
|
|
Re: two dialogs in one method PROBLEM?! [message #61054 is a reply to message #61001] |
Tue, 20 November 2007 09:32 |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
ah ok.
so i assume the project automatically uses the plugins i checked out to my
workspace instead of the plugins from the target platform? are they
exported when i use the pde exporter (in the feature) to deploy the app?
are they updated automatically if changes in the cvs happen or do i have
to do this manually?
questions, questions and more questions =)))
thx for ur help ;P
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04115 seconds