org.eclipse.emf.ecp.internal.ui.dialogs
Class PropertyDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.dialogs.TitleAreaDialog
org.eclipse.emf.ecp.internal.ui.dialogs.PropertyDialog
- All Implemented Interfaces:
- org.eclipse.jface.window.IShellProvider
public class PropertyDialog
- extends org.eclipse.jface.dialogs.TitleAreaDialog
Dialog to edit one property.
- Author:
- Eike Stepper
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
org.eclipse.jface.window.Window.IExceptionHandler |
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE |
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, 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 |
Fields inherited from class org.eclipse.jface.window.Window |
CANCEL, OK |
Constructor Summary |
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. |
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
getErrorMessage, getMessage, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage |
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
closeTray, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager |
PropertyDialog
public PropertyDialog(org.eclipse.swt.widgets.Shell parentShell,
boolean keyEditable,
String key,
String value)
- Constructor to edit an existing property.
- Parameters:
parentShell
- the paren Shell
keyEditable
- if the property is editablekey
- the key of the propertyvalue
- the current value of the property
PropertyDialog
public PropertyDialog(org.eclipse.swt.widgets.Shell parentShell)
- Constructor for a new property.
- Parameters:
parentShell
- the parent Shell
getKey
public final String getKey()
- Returns:
- the key of the currently edited property
getValue
public final String getValue()
- Returns:
- the value of the currently edited property
isKeyEditable
public final boolean isKeyEditable()
- Returns:
- whether the property is editable
Copyright © 2015. All Rights Reserved.