Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 309497
Collapse All | Expand All

(-)src/org/eclipse/rap/demo/controls/DialogsTab.java (-1 / +21 lines)
Lines 13-18 Link Here
13
package org.eclipse.rap.demo.controls;
13
package org.eclipse.rap.demo.controls;
14
14
15
import java.lang.reflect.InvocationTargetException;
15
import java.lang.reflect.InvocationTargetException;
16
import java.lang.reflect.Method;
16
17
17
import org.eclipse.core.runtime.*;
18
import org.eclipse.core.runtime.*;
18
import org.eclipse.jface.dialogs.*;
19
import org.eclipse.jface.dialogs.*;
Lines 320-326 Link Here
320
    String message = "Please sign in with your username and password:";
321
    String message = "Please sign in with your username and password:";
321
    final LoginDialog loginDialog
322
    final LoginDialog loginDialog
322
      = new LoginDialog( getShell(), "Login", message, "john" );
323
      = new LoginDialog( getShell(), "Login", message, "john" );
323
    int returnCode = loginDialog.open();
324
    try {
325
      Method method = LoginDialog.class.getMethod( "open", new Class[ 0 ] );
326
      method.invoke( loginDialog, null );
327
    } catch( SecurityException e ) {
328
      // TODO Auto-generated catch block
329
      e.printStackTrace();
330
    } catch( IllegalArgumentException e ) {
331
      // TODO Auto-generated catch block
332
      e.printStackTrace();
333
    } catch( NoSuchMethodException e ) {
334
      // TODO Auto-generated catch block
335
      e.printStackTrace();
336
    } catch( IllegalAccessException e ) {
337
      // TODO Auto-generated catch block
338
      e.printStackTrace();
339
    } catch( InvocationTargetException e ) {
340
      // TODO Auto-generated catch block
341
      e.printStackTrace();
342
    }
343
    int returnCode = Window.OK; //loginDialog.open();
324
    String resultText = "Result: " + getReturnCodeText( returnCode );
344
    String resultText = "Result: " + getReturnCodeText( returnCode );
325
    if( returnCode == Window.OK ) {
345
    if( returnCode == Window.OK ) {
326
      String username = loginDialog.getUsername();
346
      String username = loginDialog.getUsername();

Return to bug 309497