public class TypeCellSelectionDialog extends AbstractViewerSelectionDialog<Cell,org.eclipse.zest.core.viewers.GraphViewer>
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 |
---|
TypeCellSelectionDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
Cell initialSelection)
Create a type cell selection dialog.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.zest.core.viewers.GraphViewer |
createViewer(org.eclipse.swt.widgets.Composite parent)
Create the tree viewer.
|
protected Cell |
getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
Retrieve the selected entity from the given selection
|
protected void |
setupViewer(org.eclipse.zest.core.viewers.GraphViewer viewer,
Cell initialSelection)
Setup the tree viewer with label provider, content provider and input.
|
acceptObject, addToolBarActions, buttonPressed, cancelPressed, configureShell, createButtonsForButtonBar, createContents, createDialogArea, getFilters, getObject, 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 TypeCellSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, String title, Cell initialSelection)
parentShell
- the parent shelltitle
- the dialog titleinitialSelection
- the type cell to select initially (if possible),
may be null
protected org.eclipse.zest.core.viewers.GraphViewer createViewer(org.eclipse.swt.widgets.Composite parent)
AbstractViewerSelectionDialog
createViewer
in class AbstractViewerSelectionDialog<Cell,org.eclipse.zest.core.viewers.GraphViewer>
parent
- the parent compositeAbstractViewerSelectionDialog.createViewer(org.eclipse.swt.widgets.Composite)
protected void setupViewer(org.eclipse.zest.core.viewers.GraphViewer viewer, Cell initialSelection)
AbstractViewerSelectionDialog
AbstractViewerSelectionDialog.setFilters(ViewerFilter[])
.setupViewer
in class AbstractViewerSelectionDialog<Cell,org.eclipse.zest.core.viewers.GraphViewer>
viewer
- the tree viewerinitialSelection
- the object to select (if possible), may be
null
AbstractViewerSelectionDialog.setupViewer(org.eclipse.jface.viewers.StructuredViewer,
java.lang.Object)
protected Cell getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
AbstractViewerSelectionDialog
getObjectFromSelection
in class AbstractViewerSelectionDialog<Cell,org.eclipse.zest.core.viewers.GraphViewer>
selection
- the selectionnull
AbstractViewerSelectionDialog.getObjectFromSelection(org.eclipse.jface.viewers.ISelection)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a