Class ElementListSelectionDialogProvider

    • Constructor Detail

      • ElementListSelectionDialogProvider

        public ElementListSelectionDialogProvider​(String[] elements)
        Creates instance with concrete items for choice
        Parameters:
        elements - items for choice in ElementListSelectionDialog, cannot be null
      • ElementListSelectionDialogProvider

        public ElementListSelectionDialogProvider​(String[] elements,
                                                  ILabelProvider renderer)
        Creates instance with concrete items for choice and custom ILabelProvider for them
        Parameters:
        elements - items for choice in ElementListSelectionDialog, cannot be null
        renderer - custom ILabelProvider for elements presentation in dialog, cannot be null
    • 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 interface IVariableDialogProvider
        Parameters:
        shell - actual Shell for opening dialog, cannot be null
        currentContent - actual content for editing in dialog, cannot be null
        document - actual IDocument where currentContent placed, cannot be null
        offset - current offset of currentContent in IDocument
        length - current length of currentContent in IDocument
        Returns:
        result of editing currentContent, can be null if opened dialog did not provide changes