Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 166056 Details for
Bug 309497
Dialogs opened with Method.invoke("open") cause UIThreadTerminatedError on page refresh
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Controls demo patch
dialog_reflection.patch (text/plain), 1.86 KB, created by
Ivan Furnadjiev
on 2010-04-26 05:13:27 EDT
(
hide
)
Description:
Controls demo patch
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2010-04-26 05:13:27 EDT
Size:
1.86 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.demo >Index: src/org/eclipse/rap/demo/controls/DialogsTab.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.ui/org.eclipse.rap.demo/src/org/eclipse/rap/demo/controls/DialogsTab.java,v >retrieving revision 1.21 >diff -u -r1.21 DialogsTab.java >--- src/org/eclipse/rap/demo/controls/DialogsTab.java 7 Apr 2010 10:29:30 -0000 1.21 >+++ src/org/eclipse/rap/demo/controls/DialogsTab.java 23 Apr 2010 10:41:56 -0000 >@@ -13,6 +13,7 @@ > package org.eclipse.rap.demo.controls; > > import java.lang.reflect.InvocationTargetException; >+import java.lang.reflect.Method; > > import org.eclipse.core.runtime.*; > import org.eclipse.jface.dialogs.*; >@@ -320,7 +321,26 @@ > String message = "Please sign in with your username and password:"; > final LoginDialog loginDialog > = new LoginDialog( getShell(), "Login", message, "john" ); >- int returnCode = loginDialog.open(); >+ try { >+ Method method = LoginDialog.class.getMethod( "open", new Class[ 0 ] ); >+ method.invoke( loginDialog, null ); >+ } catch( SecurityException e ) { >+ // TODO Auto-generated catch block >+ e.printStackTrace(); >+ } catch( IllegalArgumentException e ) { >+ // TODO Auto-generated catch block >+ e.printStackTrace(); >+ } catch( NoSuchMethodException e ) { >+ // TODO Auto-generated catch block >+ e.printStackTrace(); >+ } catch( IllegalAccessException e ) { >+ // TODO Auto-generated catch block >+ e.printStackTrace(); >+ } catch( InvocationTargetException e ) { >+ // TODO Auto-generated catch block >+ e.printStackTrace(); >+ } >+ int returnCode = Window.OK; //loginDialog.open(); > String resultText = "Result: " + getReturnCodeText( returnCode ); > if( returnCode == Window.OK ) { > String username = loginDialog.getUsername();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 309497
: 166056