Class SimpleFileSelection

java.lang.Object
org.eclipse.swt.events.SelectionAdapter
org.pentaho.di.ui.core.SimpleFileSelection
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class SimpleFileSelection extends org.eclipse.swt.events.SelectionAdapter
Author:
Thomas Hoedl(asc042)
  • Field Details

    • DEFAULT_FILTER_EXTENSION

      public static final String DEFAULT_FILTER_EXTENSION
      The default filter extension.
      See Also:
    • DEFAULT_FILTER_NAME

      public static final String DEFAULT_FILTER_NAME
      The default file extension.
      See Also:
  • Constructor Details

    • SimpleFileSelection

      public SimpleFileSelection(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String[] filterExtensions, String[] filterNames) throws IllegalArgumentException
      Constructor.
      Parameters:
      shell - shell to set.
      textVar - text variable to edit.
      filterExtensions - filter extensions to set.
      filterNames - filter names to set.
      Throws:
      IllegalArgumentException - if shell or text variable is null.
    • SimpleFileSelection

      public SimpleFileSelection(org.eclipse.swt.widgets.Shell shell, TextVar textVar) throws IllegalArgumentException
      Constructor.
      Parameters:
      shell - the shell to set.
      textVar - the text variable to edit.
      Throws:
      IllegalArgumentException - if shell or text variable is null.
    • SimpleFileSelection

      public SimpleFileSelection(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String... filterNames) throws IllegalArgumentException
      Constructor.
      Parameters:
      shell - the shell to set.
      textVar - the text variable to edit.
      filterNames - the filter names to use.
      Throws:
      IllegalArgumentException - if shell or text variable is null.
  • Method Details

    • widgetSelected

      public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
      Specified by:
      widgetSelected in interface org.eclipse.swt.events.SelectionListener
      Overrides:
      widgetSelected in class org.eclipse.swt.events.SelectionAdapter
      See Also:
      • SelectionAdapter.widgetSelected(org.eclipse.swt.events.SelectionEvent)