Package org.pentaho.di.ui.core
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 Summary
-
Constructor Summary
ConstructorDescriptionSimpleFileSelection
(org.eclipse.swt.widgets.Shell shell, TextVar textVar) Constructor.SimpleFileSelection
(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String... filterNames) Constructor.SimpleFileSelection
(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String[] filterExtensions, String[] filterNames) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
widgetSelected
(org.eclipse.swt.events.SelectionEvent event) Methods inherited from class org.eclipse.swt.events.SelectionAdapter
widgetDefaultSelected
-
Field Details
-
DEFAULT_FILTER_EXTENSION
The default filter extension.- See Also:
-
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 interfaceorg.eclipse.swt.events.SelectionListener
- Overrides:
widgetSelected
in classorg.eclipse.swt.events.SelectionAdapter
- See Also:
-
SelectionAdapter.widgetSelected(org.eclipse.swt.events.SelectionEvent)
-