Class ElementListSelectionDialogProvider
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.proposals.ElementListSelectionDialogProvider
-
- All Implemented Interfaces:
IVariableDialogProvider
public class ElementListSelectionDialogProvider extends Object implements IVariableDialogProvider
Implementation ofIVariableDialogProvider
opensElementListSelectionDialog
for choosing inserted value
-
-
Constructor Summary
Constructors Constructor Description ElementListSelectionDialogProvider(String[] elements)
Creates instance with concrete items for choiceElementListSelectionDialogProvider(String[] elements, ILabelProvider renderer)
Creates instance with concrete items for choice and customILabelProvider
for them
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
editInDialog(org.eclipse.swt.widgets.Shell shell, String currentContent, org.eclipse.jface.text.IDocument document, int offset, int length)
Opens dialog for editing string value content
-
-
-
Constructor Detail
-
ElementListSelectionDialogProvider
public ElementListSelectionDialogProvider(String[] elements)
Creates instance with concrete items for choice- Parameters:
elements
- items for choice inElementListSelectionDialog
, cannot benull
-
ElementListSelectionDialogProvider
public ElementListSelectionDialogProvider(String[] elements, ILabelProvider renderer)
Creates instance with concrete items for choice and customILabelProvider
for them- Parameters:
elements
- items for choice inElementListSelectionDialog
, cannot benull
renderer
- customILabelProvider
for elements presentation in dialog, cannot benull
-
-
Method Detail
-
editInDialog
public String editInDialog(org.eclipse.swt.widgets.Shell shell, String currentContent, org.eclipse.jface.text.IDocument document, int offset, int length)
Description copied from interface:IVariableDialogProvider
Opens dialog for editing string value content- Specified by:
editInDialog
in interfaceIVariableDialogProvider
- Parameters:
shell
- actualShell
for opening dialog, cannot benull
currentContent
- actual content for editing in dialog, cannot benull
document
- actualIDocument
wherecurrentContent
placed, cannot benull
offset
- current offset ofcurrentContent
inIDocument
length
- current length ofcurrentContent
inIDocument
- Returns:
- result of editing
currentContent
, can benull
if opened dialog did not provide changes
-
-