Class 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)
    • Constructor Detail

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

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