Class StatusDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.jface.dialogs.IconAndMessageDialog
-
- com._1c.g5.v8.dt.common.ui.dialogs.StatusDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class StatusDialog extends org.eclipse.jface.dialogs.IconAndMessageDialogThe dialog with icon, message and tree element ofIStatus-tree object
-
-
Field Summary
Fields Modifier and Type Field Description protected TreeViewerviewerThe dialog tree viewer;nulluntil dialog is layed out.-
Fields inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
imageLabel, message, messageLabel
-
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 StatusDialog(org.eclipse.swt.widgets.Shell parentShell, String dialogTitle, org.eclipse.core.runtime.IStatus status)Create a insatance ofStatusDialog
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuttonPressed(int id)booleanclose()protected voidconfigureShell(org.eclipse.swt.widgets.Shell shell)protected voidcreateButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)protected voidcreateDialogAndButtonArea(org.eclipse.swt.widgets.Composite parent)protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent)protected TreeViewercreateTreeArea(org.eclipse.swt.widgets.Composite parent)Create and returnTreeViewerused for show status contentsprotected org.eclipse.swt.graphics.ImagegetImage()protected booleanisResizable()static voidopen(org.eclipse.swt.widgets.Shell shell, String title, org.eclipse.core.runtime.IStatus status)Opens this dialog, creating it first if it has not yet been created.voidsetInitialShowDetails(boolean showDetails)Sets the flag whether need to show details pane with statuses content by default.voidsetShowExceptionMessage(boolean showExceptionMessage)Sets the flag whether need to show exception message (if any) in the nested node.-
Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
createButtonBar, createContents, createMessageArea, getColumnCount, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, 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
-
-
-
-
Field Detail
-
viewer
protected TreeViewer viewer
The dialog tree viewer;nulluntil dialog is layed out.
-
-
Constructor Detail
-
StatusDialog
public StatusDialog(org.eclipse.swt.widgets.Shell parentShell, String dialogTitle, org.eclipse.core.runtime.IStatus status)Create a insatance ofStatusDialog- Parameters:
parentShell- the parent shell, ornullto create a top-level shelldialogTitle- the text, which is the string that the window manager will typically display as the title, cannot benullstatus- the target status used for dialog main message and icon, children of status fill the dialog tree, cannot benull
-
-
Method Detail
-
open
public static void open(org.eclipse.swt.widgets.Shell shell, String title, org.eclipse.core.runtime.IStatus status)Opens this dialog, creating it first if it has not yet been created.- Parameters:
shell- the parent shell, ornullto create a top-level shelltitle- the text, which is the string that the window manager will typically display as the title, cannot benullstatus- the target status used for dialog main message and icon, children of status fill the dialog tree, cannot benull
-
setInitialShowDetails
public void setInitialShowDetails(boolean showDetails)
Sets the flag whether need to show details pane with statuses content by default.- Parameters:
showDetails- whether need to show details pane with statuses content by default
-
setShowExceptionMessage
public void setShowExceptionMessage(boolean showExceptionMessage)
Sets the flag whether need to show exception message (if any) in the nested node.- Parameters:
showExceptionMessage- whether need to show exception message
-
close
public boolean close()
- Overrides:
closein classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
- Overrides:
configureShellin classorg.eclipse.jface.window.Window
-
createDialogAndButtonArea
protected void createDialogAndButtonArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogAndButtonAreain classorg.eclipse.jface.dialogs.IconAndMessageDialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createButtonsForButtonBarin classorg.eclipse.jface.dialogs.Dialog
-
createTreeArea
protected TreeViewer createTreeArea(org.eclipse.swt.widgets.Composite parent)
Create and returnTreeViewerused for show status contents- Parameters:
parent- the parent composite to contain the dialog area, cannot benull- Returns:
- the dialog tree viewer, never
null
-
buttonPressed
protected void buttonPressed(int id)
- Overrides:
buttonPressedin classorg.eclipse.jface.dialogs.Dialog
-
getImage
protected org.eclipse.swt.graphics.Image getImage()
- Specified by:
getImagein classorg.eclipse.jface.dialogs.IconAndMessageDialog
-
isResizable
protected boolean isResizable()
- Overrides:
isResizablein classorg.eclipse.jface.dialogs.Dialog
-
-