Class ConditionSelectionAdapterFileDialogTextVar

java.lang.Object
org.eclipse.swt.events.SelectionAdapter
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 Details

  • Method Details

    • 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>