Class ConditionSelectionAdapterFileDialogTextVar

  • All Implemented Interfaces:
    EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

    public class ConditionSelectionAdapterFileDialogTextVar
    extends SelectionAdapterFileDialogTextVar
    This Adapter class extends the SelectionAdapterFileDialogTextVar but includes (DetermineSelectionOperationOp) Interface to allow the dialog to determine which SelectionOperation (File or Folder) when the widget is selected. This is useful for steps that include "File Or Directory" option based on the dialog settings. Example: SelectionAdapterOptions options = new SelectionAdapterOptions( SelectionOperation.FILE, new FilterType[] { FilterType.ALL, FilterType.XML }, FilterType.XML ); adapter = new ConditionSelectionAdapterFileDialogTextVar( log, wFilename, transMeta, options, () -> ( [ Is Folder Condition ] ) ? SelectionOperation.FOLDER : SelectionOperation.FILE ); Note: The class only updates SelectionOperation to Folder the other options remain the same.
    • Constructor Detail

    • Method Detail

      • widgetSelected

        public void widgetSelected​(org.eclipse.swt.events.SelectionEvent selectionEvent)
        Specified by:
        widgetSelected in interface org.eclipse.swt.events.SelectionListener
        Overrides:
        widgetSelected in class SelectionAdapterFileDialog<TextVar>