public class TypeEntityDialog extends EntityDialog
TypeEntityDefinition
.ssid
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 |
---|
TypeEntityDialog(org.eclipse.swt.widgets.Shell parentShell,
SchemaSpaceID ssid,
String title,
EntityDefinition initialSelection,
boolean onlyMappingRelevant)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addToolBarActions(org.eclipse.jface.action.ToolBarManager manager)
Add tool bar actions to the entity dialog tool bar.
|
TypeEntityDefinition |
getObject()
Get the selected object.
|
protected EntityDefinition |
getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
Retrieve the selected entity from the given selection
|
protected void |
setupViewer(org.eclipse.jface.viewers.TreeViewer viewer,
EntityDefinition initialSelection)
Setup the tree viewer with label provider, content provider and input.
|
createViewer
acceptObject, buttonPressed, cancelPressed, configureShell, createButtonsForButtonBar, createContents, createDialogArea, getFilters, getViewer, okPressed, setFilters
applyDialogFont, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
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
public TypeEntityDialog(org.eclipse.swt.widgets.Shell parentShell, SchemaSpaceID ssid, String title, EntityDefinition initialSelection, boolean onlyMappingRelevant)
parentShell
- the parent shellssid
- the schema spacetitle
- the dialog titleinitialSelection
- the entity definition to select initially (if
possible), may be null
onlyMappingRelevant
- whether to only show mapping relevant typesprotected void setupViewer(org.eclipse.jface.viewers.TreeViewer viewer, EntityDefinition initialSelection)
AbstractViewerSelectionDialog
AbstractViewerSelectionDialog.setFilters(ViewerFilter[])
.setupViewer
in class AbstractViewerSelectionDialog<EntityDefinition,org.eclipse.jface.viewers.TreeViewer>
viewer
- the tree viewerinitialSelection
- the object to select (if possible), may be
null
EntityDialog#setupViewer(TreeViewer, EntityDefinition)
protected EntityDefinition getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
AbstractViewerSelectionDialog
getObjectFromSelection
in class AbstractViewerSelectionDialog<EntityDefinition,org.eclipse.jface.viewers.TreeViewer>
selection
- the selectionnull
AbstractViewerSelectionDialog.getObjectFromSelection(ISelection)
public TypeEntityDefinition getObject()
AbstractViewerSelectionDialog
getObject
in class AbstractViewerSelectionDialog<EntityDefinition,org.eclipse.jface.viewers.TreeViewer>
null
AbstractViewerSelectionDialog.getObject()
protected void addToolBarActions(org.eclipse.jface.action.ToolBarManager manager)
AbstractViewerSelectionDialog
addToolBarActions
in class AbstractViewerSelectionDialog<EntityDefinition,org.eclipse.jface.viewers.TreeViewer>
manager
- the tool bar managerAbstractViewerSelectionDialog.addToolBarActions(org.eclipse.jface.action.ToolBarManager)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a