public class SimpleFileSelection
extends org.eclipse.swt.events.SelectionAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILTER_EXTENSION
The default filter extension.
|
static String |
DEFAULT_FILTER_NAME
The default file extension.
|
| Constructor and Description |
|---|
SimpleFileSelection(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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent event) |
public static final String DEFAULT_FILTER_EXTENSION
public static final String DEFAULT_FILTER_NAME
public SimpleFileSelection(org.eclipse.swt.widgets.Shell shell,
TextVar textVar,
String[] filterExtensions,
String[] filterNames)
throws IllegalArgumentException
shell - shell to set.textVar - text variable to edit.filterExtensions - filter extensions to set.filterNames - filter names to set.IllegalArgumentException - if shell or text variable is null.public SimpleFileSelection(org.eclipse.swt.widgets.Shell shell,
TextVar textVar)
throws IllegalArgumentException
shell - the shell to set.textVar - the text variable to edit.IllegalArgumentException - if shell or text variable is null.public SimpleFileSelection(org.eclipse.swt.widgets.Shell shell,
TextVar textVar,
String... filterNames)
throws IllegalArgumentException
shell - the shell to set.textVar - the text variable to edit.filterNames - the filter names to use.IllegalArgumentException - if shell or text variable is null.public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerwidgetSelected in class org.eclipse.swt.events.SelectionAdapterSelectionAdapter.widgetSelected(org.eclipse.swt.events.SelectionEvent)