public final class OAuthLoginDialog
extends org.eclipse.jface.dialogs.Dialog
Modifier and Type | Field and Description |
---|---|
private static int |
HEIGHT
Initial dialog height.
|
private IGoogleLogger |
logger
Logger instance that provides OAuth URL.
|
private static java.lang.String |
OAUTH_ERROR_MESSAGE
Error message displayed when an error occurs during OAuth phase.
|
private static int |
WIDTH
Initial dialog width.
|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
Constructor and Description |
---|
OAuthLoginDialog(org.eclipse.swt.widgets.Shell parentShell,
IGoogleLogger logger)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.graphics.Point |
getInitialSize() |
protected boolean |
isResizable() |
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
private static final java.lang.String OAUTH_ERROR_MESSAGE
private final IGoogleLogger logger
private static final int WIDTH
private static final int HEIGHT
public OAuthLoginDialog(org.eclipse.swt.widgets.Shell parentShell, IGoogleLogger logger)
parentShell
- Shell that owns this dialog.logger
- Logger instance that provides OAuth URL.protected boolean isResizable()
isResizable
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.graphics.Point getInitialSize()
getInitialSize
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonsForButtonBar
in class org.eclipse.jface.dialogs.Dialog