Package de.uka.ipd.sdq.dialogs.selection
Class SelectEObjectDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.dialogs.TitleAreaDialog
de.uka.ipd.sdq.dialogs.selection.SelectEObjectDialog
- All Implemented Interfaces:
IShellProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler -
Field Summary
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGEFields 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, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsConstructorDescriptionSelectEObjectDialog(Shell parentShell, String resourceName, Object input, AdapterFactoryContentProvider contentProvider, IBaseLabelProvider labelProvider) Create the dialog -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidconfigureShell(Shell newShell) protected voidcreateButtonsForButtonBar(Composite parent) protected ControlcreateDialogArea(Composite parent) voidenableToolBar(Boolean addEnabled, Boolean deleteEnabled, Boolean editedEnabled) Activated an action border with that actions: Insert, an editing, deletion.protected PointReturn the initial size of the dialogThe method supplies the main knots of, in this dialogue the represented, tree.intopen()protected voidsetAddSelectionListener(SelectionListener listener) protected voidsetDeleteSelectionListener(SelectionListener listener) protected voidsetEditeSelectionListener(SelectionListener listener) voidsetProvidedService(Class<?> providedService) The function makes possible for validation a selected type element in in the dialogue.voidsetViewerContentProvider(IContentProvider provider) voidsetViewerLabelProvider(IBaseLabelProvider labelProvider) Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
createContents, getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImageMethods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableMethods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextMethods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
SelectEObjectDialog
public SelectEObjectDialog(Shell parentShell, String resourceName, Object input, AdapterFactoryContentProvider contentProvider, IBaseLabelProvider labelProvider) Create the dialog
-
-
Method Details
-
configureShell
- Overrides:
configureShellin classWindow
-
createDialogArea
- Overrides:
createDialogAreain classTitleAreaDialog
-
createButtonsForButtonBar
- Overrides:
createButtonsForButtonBarin classDialog
-
cancelPressed
protected void cancelPressed()- Overrides:
cancelPressedin classDialog
-
open
public int open() -
getInitialSize
Return the initial size of the dialog- Overrides:
getInitialSizein classTitleAreaDialog
-
enableToolBar
Activated an action border with that actions: Insert, an editing, deletion.- Parameters:
addEnabled- - the new enabled state of insert action deleteEnabled - the new enabled state of delete actio editedEnabled - the new enabled state of edited action If a Action is activated, one must set additionally a SelectionListener- See Also:
-
de.uka.ipd.sdq.dialogs#setAddSelectionListener(SelectionListener)
-
setAddSelectionListener
-
setDeleteSelectionListener
-
setEditeSelectionListener
-
setProvidedService
The function makes possible for validation a selected type element in in the dialogue. If provided service is set, OK button activated only if selected element agrees with entered type. The function must be called forwards open() function!- Parameters:
providedService- - return type of dialog
-
getTreeViewer
-
getResult
-
getViewerRootElement
The method supplies the main knots of, in this dialogue the represented, tree.- Returns:
- the viewer root element
-
getRootOfResult
-
setViewerLabelProvider
-
setViewerContentProvider
-