Package com._1c.g5.v8.dt.qw.ui.dialogs
Class AbstractQueryWizardDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- com._1c.g5.v8.dt.qw.ui.dialogs.AbstractQueryWizardDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
- Direct Known Subclasses:
AvailableTableSelectionDialog
,QueryExpressionEditDialog
,QueryTextEditDialog
,QueryWizard
,TempTableDescriptionDialog
,VirtTableParamsDialog
public abstract class AbstractQueryWizardDialog extends org.eclipse.jface.dialogs.Dialog
Base dialog class for query wizard dialogs
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.dialogs.Dialog
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 Summary
Constructors Constructor Description AbstractQueryWizardDialog(org.eclipse.swt.widgets.Shell parentShell)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
close()
static org.eclipse.swt.graphics.Point
getDialogLocation(org.eclipse.jface.dialogs.Dialog dialog)
Get saved dialog locationstatic org.eclipse.swt.graphics.Point
getDialogSize(org.eclipse.jface.dialogs.Dialog dialog)
Get saved dialog sizeprotected org.eclipse.swt.graphics.Point
getInitialLocation(org.eclipse.swt.graphics.Point initialSize)
protected org.eclipse.swt.graphics.Point
getInitialSize()
protected org.eclipse.swt.graphics.Point
getInitialSize(org.eclipse.swt.graphics.Point defaultSizae)
Returns the initial size to use for the shellstatic void
saveState(org.eclipse.jface.dialogs.Dialog dialog)
Save dialog parameters-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, createDialogArea, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
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
-
-
-
-
Method Detail
-
getDialogSize
public static org.eclipse.swt.graphics.Point getDialogSize(org.eclipse.jface.dialogs.Dialog dialog)
Get saved dialog size- Parameters:
dialog
- - dialog- Returns:
- dialog size or null if can't load saved dialog size
-
getDialogLocation
public static org.eclipse.swt.graphics.Point getDialogLocation(org.eclipse.jface.dialogs.Dialog dialog)
Get saved dialog location- Parameters:
dialog
- - dialog- Returns:
- dialog size or null if can't load saved dialog size
-
saveState
public static void saveState(org.eclipse.jface.dialogs.Dialog dialog)
Save dialog parameters- Parameters:
dialog
- - dialog
-
close
public boolean close()
- Overrides:
close
in classorg.eclipse.jface.dialogs.Dialog
-
getInitialSize
protected org.eclipse.swt.graphics.Point getInitialSize()
- Overrides:
getInitialSize
in classorg.eclipse.jface.dialogs.Dialog
-
getInitialSize
protected org.eclipse.swt.graphics.Point getInitialSize(org.eclipse.swt.graphics.Point defaultSizae)
Returns the initial size to use for the shell- Parameters:
defaultSizae
- - if have no saved size will return default size- Returns:
- initial size
-
getInitialLocation
protected org.eclipse.swt.graphics.Point getInitialLocation(org.eclipse.swt.graphics.Point initialSize)
- Overrides:
getInitialLocation
in classorg.eclipse.jface.dialogs.Dialog
-
-