public class M2EErrorDialog
extends org.eclipse.jface.dialogs.MessageDialog
Modifier and Type | Class and Description |
---|---|
(package private) class |
M2EErrorDialog.ErrorTableContentProvider
ErrorTableContentProvider
|
(package private) class |
M2EErrorDialog.ErrorTableLabelProvider |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
COL_NAMES |
protected int[] |
COL_STYLES |
protected java.util.Map<java.lang.String,java.lang.Throwable> |
errorMap |
private org.eclipse.jface.viewers.TableViewer |
errorTable |
private static int |
PROJECT_COL |
protected static int |
TABLE_WIDTH |
CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNING
imageLabel, message, messageLabel
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 |
---|
M2EErrorDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String dialogTitle,
org.eclipse.swt.graphics.Image dialogTitleImage,
java.lang.String dialogMessage,
int dialogImageType,
java.lang.String[] dialogButtonLabels,
int defaultIndex,
java.util.Map<java.lang.String,java.lang.Throwable> errorMap) |
Modifier and Type | Method and Description |
---|---|
private int |
calcStringWidth(org.eclipse.swt.graphics.GC gc,
int column)
Find out how wide the strings are so the columns can be set correctly.
|
protected org.eclipse.swt.widgets.Control |
createCustomArea(org.eclipse.swt.widgets.Composite parent) |
protected void |
setupTableColumns()
Create the table columns and set up their widths
|
buttonPressed, configureShell, createButton, createButtonsForButtonBar, createDialogArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, open, open, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtons
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
private org.eclipse.jface.viewers.TableViewer errorTable
private static final int PROJECT_COL
protected static final int TABLE_WIDTH
protected java.lang.String[] COL_NAMES
protected int[] COL_STYLES
protected java.util.Map<java.lang.String,java.lang.Throwable> errorMap
public M2EErrorDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogTitleImage, java.lang.String dialogMessage, int dialogImageType, java.lang.String[] dialogButtonLabels, int defaultIndex, java.util.Map<java.lang.String,java.lang.Throwable> errorMap)
parentShell
- dialogTitle
- dialogTitleImage
- dialogMessage
- dialogImageType
- dialogButtonLabels
- defaultIndex
- protected org.eclipse.swt.widgets.Control createCustomArea(org.eclipse.swt.widgets.Composite parent)
createCustomArea
in class org.eclipse.jface.dialogs.MessageDialog
protected void setupTableColumns()
private int calcStringWidth(org.eclipse.swt.graphics.GC gc, int column)
gc
- column
-