Class DetailDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.emf.ecp.view.spi.table.swt.DetailDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class DetailDialog extends org.eclipse.jface.dialogs.Dialog
A dialog allowing to edit anEObject
.- Author:
- Eugen Neufeld
-
-
Field Summary
-
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 DetailDialog(org.eclipse.swt.widgets.Shell parentShell, org.eclipse.emf.ecore.EObject selection, VTableControl tableControl, VView view)
Creates a dialog allowing to edit anEObject
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
close()
protected void
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.graphics.Point
getInitialSize()
protected boolean
isResizable()
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, 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
-
-
-
-
Constructor Detail
-
DetailDialog
public DetailDialog(org.eclipse.swt.widgets.Shell parentShell, org.eclipse.emf.ecore.EObject selection, VTableControl tableControl, VView view)
Creates a dialog allowing to edit anEObject
.- Parameters:
parentShell
- theShell
to use in the dialogselection
- theEObject
to edittableControl
- theVTableControl
view
- the view model for the detail dialog. May not benull
.- Since:
- 1.5
-
-
Method Detail
-
isResizable
protected boolean isResizable()
- Overrides:
isResizable
in classorg.eclipse.jface.dialogs.Dialog
-
getInitialSize
protected org.eclipse.swt.graphics.Point getInitialSize()
- Overrides:
getInitialSize
in classorg.eclipse.jface.dialogs.Dialog
- See Also:
Dialog.getInitialSize()
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.Dialog
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createButtonsForButtonBar
in classorg.eclipse.jface.dialogs.Dialog
-
close
public boolean close()
- Overrides:
close
in classorg.eclipse.jface.dialogs.Dialog
- See Also:
Dialog.close()
-
-