Class OAuthBrowserDialog

java.lang.Object
org.eclipse.swt.widgets.Dialog
com.iizigo.ws.editor.OAuthBrowserDialog

public class OAuthBrowserDialog extends org.eclipse.swt.widgets.Dialog
Browser in dialog used to show the OAuth (2) client authentication. This dialog must be created with the constructor, then called with "open()". The "open" method is modal until dialog is closed from the authentication callback or the user. If the user closes the dialog box, the session is disposed of.
Author:
Christopher Mindus
  • Constructor Summary

    Constructors
    Constructor
    Description
    OAuthBrowserDialog(org.eclipse.swt.widgets.Shell parent, IOAuthService service, String url)
    Create the dialog.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when dialog should be closed due to completed or failed authentication.
    void
    Open the dialog in a modal window.

    Methods inherited from class org.eclipse.swt.widgets.Dialog

    checkSubclass, getParent, getStyle, getText, setText

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuthBrowserDialog

      public OAuthBrowserDialog(org.eclipse.swt.widgets.Shell parent, IOAuthService service, String url)
      Create the dialog.
      Parameters:
      parent - Parent shell.
      service - The service to authenticate.
      url - The URL to display.
  • Method Details

    • open

      public void open()
      Open the dialog in a modal window.
    • close

      public void close()
      Called when dialog should be closed due to completed or failed authentication.