public class PropertyDialog
extends org.eclipse.jface.dialogs.TitleAreaDialog
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
Constructor and Description |
---|
PropertyDialog(org.eclipse.swt.widgets.Shell parentShell)
Constructor for a new property.
|
PropertyDialog(org.eclipse.swt.widgets.Shell parentShell,
boolean keyEditable,
String key,
String value)
Constructor to edit an existing property.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cancelPressed() |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.graphics.Point |
getInitialSize() |
String |
getKey() |
String |
getValue() |
boolean |
isKeyEditable() |
createContents, getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, 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, okPressed, 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
public PropertyDialog(org.eclipse.swt.widgets.Shell parentShell, boolean keyEditable, String key, String value)
parentShell
- the paren Shell
keyEditable
- if the property is editablekey
- the key of the propertyvalue
- the current value of the propertypublic PropertyDialog(org.eclipse.swt.widgets.Shell parentShell)
parentShell
- the parent Shell
public final String getKey()
public final String getValue()
public final boolean isKeyEditable()
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.TitleAreaDialog
protected void cancelPressed()
cancelPressed
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.graphics.Point getInitialSize()
getInitialSize
in class org.eclipse.jface.dialogs.TitleAreaDialog
Copyright © 2019. All rights reserved.