public class XPathPropertyDefinitionDialog extends PropertyDefinitionDialog
PropertyDefinitionDialog
for some XPath features.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 |
---|
XPathPropertyDefinitionDialog(org.eclipse.swt.widgets.Shell parentShell,
EntityDefinition entityDef,
String title,
EntityDefinition initialSelection)
Create a dialog.
|
Modifier and Type | Method and Description |
---|---|
boolean |
atTopLevel()
Returns whether the current selection is from a top level type.
|
protected EntityDefinition |
getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
Retrieve the selected entity from the given selection
|
int |
getParentCount()
Returns how many steps the user went up in the hierarchy.
|
protected void |
okPressed() |
protected void |
setupViewer(org.eclipse.jface.viewers.TreeViewer viewer,
EntityDefinition initialSelection)
Setup the tree viewer with label provider, content provider and input.
|
createViewer
acceptObject, addToolBarActions, buttonPressed, cancelPressed, configureShell, createButtonsForButtonBar, createContents, createDialogArea, getFilters, getObject, getViewer, 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 XPathPropertyDefinitionDialog(org.eclipse.swt.widgets.Shell parentShell, EntityDefinition entityDef, String title, EntityDefinition initialSelection)
parentShell
- the parent shallentityDef
- the entity definition to use as starting pointtitle
- the dialog titleinitialSelection
- the entity definition to select initially (if
possible), may be null
protected void setupViewer(org.eclipse.jface.viewers.TreeViewer viewer, EntityDefinition initialSelection)
AbstractViewerSelectionDialog
AbstractViewerSelectionDialog.setFilters(ViewerFilter[])
.setupViewer
in class PropertyDefinitionDialog
viewer
- the tree viewerinitialSelection
- the object to select (if possible), may be
null
PropertyDefinitionDialog.setupViewer(org.eclipse.jface.viewers.TreeViewer,
eu.esdihumboldt.hale.common.align.model.EntityDefinition)
protected void okPressed()
okPressed
in class AbstractViewerSelectionDialog<EntityDefinition,org.eclipse.jface.viewers.TreeViewer>
AbstractViewerSelectionDialog.okPressed()
public int getParentCount()
public boolean atTopLevel()
protected EntityDefinition getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
AbstractViewerSelectionDialog
getObjectFromSelection
in class PropertyDefinitionDialog
selection
- the selectionnull
PropertyDefinitionDialog.getObjectFromSelection(org.eclipse.jface.viewers.ISelection)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a