|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
eu.esdihumboldt.hale.ui.util.selector.AbstractViewerSelectionDialog<TypeDefinition,org.eclipse.jface.viewers.TreeViewer>
eu.esdihumboldt.hale.ui.common.definition.selector.TypeDefinitionDialog
public class TypeDefinitionDialog
Selection dialog for TypeDefinition
s.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
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 |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
TypeDefinitionDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
TypeDefinition initialSelection,
Iterable<TypeDefinition> types)
Create a type definition selection dialog. |
|
TypeDefinitionDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
TypeDefinition initialSelection,
TypeIndex types)
Create a type definition selection dialog. |
Method Summary | |
---|---|
protected org.eclipse.jface.viewers.TreeViewer |
createViewer(org.eclipse.swt.widgets.Composite parent)
Create the tree viewer. |
protected TypeDefinition |
getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
Retrieve the selected entity from the given selection |
protected void |
setupViewer(org.eclipse.jface.viewers.TreeViewer viewer,
TypeDefinition initialSelection)
Setup the tree viewer with label provider, content provider and input. |
Methods inherited from class eu.esdihumboldt.hale.ui.util.selector.AbstractViewerSelectionDialog |
---|
acceptObject, buttonPressed, cancelPressed, configureShell, createButtonsForButtonBar, createContents, createDialogArea, getFilters, getObject, okPressed, setFilters |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
---|
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 |
Methods inherited from class org.eclipse.jface.window.Window |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeDefinitionDialog(org.eclipse.swt.widgets.Shell parentShell, String title, TypeDefinition initialSelection, TypeIndex types)
parentShell
- the parent shelltitle
- the dialog titleinitialSelection
- the initial selectiontypes
- the type indexpublic TypeDefinitionDialog(org.eclipse.swt.widgets.Shell parentShell, String title, TypeDefinition initialSelection, Iterable<TypeDefinition> types)
parentShell
- the parent shelltitle
- the dialog titleinitialSelection
- the initial selectiontypes
- the type indexMethod Detail |
---|
protected org.eclipse.jface.viewers.TreeViewer createViewer(org.eclipse.swt.widgets.Composite parent)
AbstractViewerSelectionDialog
createViewer
in class AbstractViewerSelectionDialog<TypeDefinition,org.eclipse.jface.viewers.TreeViewer>
parent
- the parent composite
protected void setupViewer(org.eclipse.jface.viewers.TreeViewer viewer, TypeDefinition initialSelection)
AbstractViewerSelectionDialog
AbstractViewerSelectionDialog.setFilters(ViewerFilter[])
.
setupViewer
in class AbstractViewerSelectionDialog<TypeDefinition,org.eclipse.jface.viewers.TreeViewer>
viewer
- the tree viewerinitialSelection
- the object to select (if possible), may be
null
protected TypeDefinition getObjectFromSelection(org.eclipse.jface.viewers.ISelection selection)
AbstractViewerSelectionDialog
getObjectFromSelection
in class AbstractViewerSelectionDialog<TypeDefinition,org.eclipse.jface.viewers.TreeViewer>
selection
- the selection
null
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |