public class ChoicesDialog<T>
extends org.eclipse.jface.dialogs.Dialog
IChoicesDialogDelegate
Modifier and Type | Field and Description |
---|---|
protected java.util.List<T> |
choiceOfValues |
protected org.eclipse.jface.viewers.TableViewer |
choiceTableViewer |
protected org.eclipse.jface.viewers.IContentProvider |
contentProvider |
protected IChoicesDialogDelegate<T> |
delegate |
protected java.lang.String |
displayName |
protected java.lang.Object |
object |
protected org.eclipse.emf.common.util.EList<T> |
result |
protected org.eclipse.emf.edit.provider.ItemProvider |
values |
protected org.eclipse.jface.viewers.TableViewer |
valuesTableViewer |
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 |
---|
ChoicesDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.Object object,
java.lang.String displayName,
IChoicesDialogDelegate<T> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
close() |
protected void |
configureLabelProvider(org.eclipse.jface.viewers.TableViewer viewer) |
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell) |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected java.util.Collection<T> |
getChoices() |
org.eclipse.emf.common.util.EList<T> |
getResult() |
protected org.eclipse.emf.common.util.EList<T> |
getValues() |
protected void |
okPressed() |
void |
updateChoiceOfValues()
Updates me to reflect a change in the choice of values provided by my
delegate.
|
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, 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
protected org.eclipse.jface.viewers.IContentProvider contentProvider
protected java.lang.Object object
protected java.lang.String displayName
protected org.eclipse.emf.edit.provider.ItemProvider values
protected java.util.List<T> choiceOfValues
protected org.eclipse.jface.viewers.TableViewer choiceTableViewer
protected org.eclipse.jface.viewers.TableViewer valuesTableViewer
protected org.eclipse.emf.common.util.EList<T> result
protected final IChoicesDialogDelegate<T> delegate
public ChoicesDialog(org.eclipse.swt.widgets.Shell parent, java.lang.Object object, java.lang.String displayName, IChoicesDialogDelegate<T> delegate)
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
configureShell
in class org.eclipse.jface.window.Window
public void updateChoiceOfValues()
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected void configureLabelProvider(org.eclipse.jface.viewers.TableViewer viewer)
protected java.util.Collection<T> getChoices()
protected org.eclipse.emf.common.util.EList<T> getValues()
protected void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog
public boolean close()
close
in class org.eclipse.jface.dialogs.Dialog
public org.eclipse.emf.common.util.EList<T> getResult()