public abstract class AbstractChoicesDialogDelegate<T> extends java.lang.Object implements IChoicesDialogDelegate<T>
IChoicesDialogDelegate
protocol,
useful for subclassing.Constructor and Description |
---|
AbstractChoicesDialogDelegate(java.lang.Class<T> elementType) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsReordering() |
boolean |
canAdd(org.eclipse.jface.viewers.IStructuredSelection selection,
java.util.Collection<T> values) |
boolean |
canRemove(org.eclipse.jface.viewers.IStructuredSelection selection,
java.util.Collection<T> choices) |
void |
createAdditionalControls(org.eclipse.swt.widgets.Composite parent) |
org.eclipse.jface.viewers.ILabelProvider |
createLabelProvider(org.eclipse.jface.viewers.Viewer viewer) |
java.lang.String |
getAddButtonText() |
java.lang.String |
getChoicesLabelText() |
protected ChoicesDialog<T> |
getDialog() |
java.lang.Class<T> |
getElementType() |
java.lang.String |
getRemoveButtonText() |
java.lang.String |
getValuesLabelText() |
boolean |
hasAdditionalControls() |
boolean |
okPressed(java.util.Collection<T> values) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChoiceOfValues, getLabelProvider
public AbstractChoicesDialogDelegate(java.lang.Class<T> elementType)
public final java.lang.Class<T> getElementType()
getElementType
in interface IChoicesDialogDelegate<T>
protected ChoicesDialog<T> getDialog()
public java.lang.String getChoicesLabelText()
getChoicesLabelText
in interface IChoicesDialogDelegate<T>
public java.lang.String getValuesLabelText()
getValuesLabelText
in interface IChoicesDialogDelegate<T>
public java.lang.String getAddButtonText()
getAddButtonText
in interface IChoicesDialogDelegate<T>
public java.lang.String getRemoveButtonText()
getRemoveButtonText
in interface IChoicesDialogDelegate<T>
public org.eclipse.jface.viewers.ILabelProvider createLabelProvider(org.eclipse.jface.viewers.Viewer viewer)
createLabelProvider
in interface IChoicesDialogDelegate<T>
public boolean canAdd(org.eclipse.jface.viewers.IStructuredSelection selection, java.util.Collection<T> values)
canAdd
in interface IChoicesDialogDelegate<T>
public boolean canRemove(org.eclipse.jface.viewers.IStructuredSelection selection, java.util.Collection<T> choices)
canRemove
in interface IChoicesDialogDelegate<T>
public boolean allowsReordering()
allowsReordering
in interface IChoicesDialogDelegate<T>
public boolean hasAdditionalControls()
hasAdditionalControls
in interface IChoicesDialogDelegate<T>
public void createAdditionalControls(org.eclipse.swt.widgets.Composite parent)
createAdditionalControls
in interface IChoicesDialogDelegate<T>
public boolean okPressed(java.util.Collection<T> values)
okPressed
in interface IChoicesDialogDelegate<T>