public class SaveAsDialog extends TitleAreaDialog
Window.IExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected IEditorPart |
editor |
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
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
CANCEL, OK, resizeHasOccurred
Constructor and Description |
---|
SaveAsDialog(Shell parentShell) |
Modifier and Type | Method and Description |
---|---|
void |
associateWithEditor(IEditorPart editor) |
protected Control |
createContents(Composite parent) |
protected Control |
createDialogArea(Composite parent) |
void |
okPressed()
public for testing purposes
|
protected IStatus |
run(IRunnableWithProgress runnable,
boolean fork)
Runs the given runnable with the dialog's progress monitor, if available,
or with the Workbench progress service otherwise.
|
getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
protected IEditorPart editor
public SaveAsDialog(Shell parentShell)
protected Control createDialogArea(Composite parent)
createDialogArea
in class TitleAreaDialog
protected Control createContents(Composite parent)
createContents
in class TitleAreaDialog
protected IStatus run(IRunnableWithProgress runnable, boolean fork)
runnable
- the runnable that will be run.fork
- if false
, run in the UI thread, otherwise, the
implementation may fork to a separate threadCoreException
the result will be a MultiStatus containing
the CoreException
's status.public void associateWithEditor(IEditorPart editor)