public class OpenFileAction extends DiskAccessAction
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenFileAction.OpenFileTask |
| Modifier and Type | Field and Description |
|---|---|
static ExtensionFileFilter |
URL_FILE_FILTER
The
ExtensionFileFilter matching .url files |
sc| Constructor and Description |
|---|
OpenFileAction()
Create an open action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static void |
openFiles(java.util.List<java.io.File> fileList)
Open a list of files.
|
static void |
openFiles(java.util.List<java.io.File> fileList,
boolean recordHistory) |
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooserdestroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledStatepublic static final ExtensionFileFilter URL_FILE_FILTER
ExtensionFileFilter matching .url filespublic OpenFileAction()
public void actionPerformed(java.awt.event.ActionEvent e)
protected void updateEnabledState()
JosmActionJosmAction.updateEnabledState(Collection) to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState in class JosmActionJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState()public static void openFiles(java.util.List<java.io.File> fileList)
fileList - A list of filespublic static void openFiles(java.util.List<java.io.File> fileList, boolean recordHistory)