org.eclipse.uml2.uml.editor.dialogs
Class AbstractChoicesDialogDelegate<T>
java.lang.Object
org.eclipse.uml2.uml.editor.dialogs.AbstractChoicesDialogDelegate<T>
- All Implemented Interfaces:
- IChoicesDialogDelegate<T>
public abstract class AbstractChoicesDialogDelegate<T>
- extends java.lang.Object
- implements IChoicesDialogDelegate<T>
A partial implementation of the IChoicesDialogDelegate
protocol,
useful for subclassing.
- Since:
- 5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractChoicesDialogDelegate
public AbstractChoicesDialogDelegate(java.lang.Class<T> elementType)
getElementType
public final java.lang.Class<T> getElementType()
- Specified by:
getElementType
in interface IChoicesDialogDelegate<T>
getDialog
protected ChoicesDialog<T> getDialog()
getChoicesLabelText
public java.lang.String getChoicesLabelText()
- Specified by:
getChoicesLabelText
in interface IChoicesDialogDelegate<T>
getValuesLabelText
public java.lang.String getValuesLabelText()
- Specified by:
getValuesLabelText
in interface IChoicesDialogDelegate<T>
getAddButtonText
public java.lang.String getAddButtonText()
- Specified by:
getAddButtonText
in interface IChoicesDialogDelegate<T>
getRemoveButtonText
public java.lang.String getRemoveButtonText()
- Specified by:
getRemoveButtonText
in interface IChoicesDialogDelegate<T>
createLabelProvider
public org.eclipse.jface.viewers.ILabelProvider createLabelProvider(org.eclipse.jface.viewers.Viewer viewer)
- Specified by:
createLabelProvider
in interface IChoicesDialogDelegate<T>
canAdd
public boolean canAdd(org.eclipse.jface.viewers.IStructuredSelection selection,
java.util.Collection<T> values)
- Specified by:
canAdd
in interface IChoicesDialogDelegate<T>
canRemove
public boolean canRemove(org.eclipse.jface.viewers.IStructuredSelection selection,
java.util.Collection<T> choices)
- Specified by:
canRemove
in interface IChoicesDialogDelegate<T>
allowsReordering
public boolean allowsReordering()
- Specified by:
allowsReordering
in interface IChoicesDialogDelegate<T>
hasAdditionalControls
public boolean hasAdditionalControls()
- Specified by:
hasAdditionalControls
in interface IChoicesDialogDelegate<T>
createAdditionalControls
public void createAdditionalControls(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createAdditionalControls
in interface IChoicesDialogDelegate<T>
okPressed
public boolean okPressed(java.util.Collection<T> values)
- Specified by:
okPressed
in interface IChoicesDialogDelegate<T>