public class LoadDirectoryAction extends LoadFileAction
URIChooser
and then loads the selected URI into the active view.
This action is called when the user selects the Load Directory item in the File menu. The menu item is automatically created by the application.
This action is designed for applications which do not automatically
create a new view for each opened file. This action goes together with
ClearFileAction
, NewWindowAction
, LoadFileAction
,
LoadDirectoryAction
and CloseFileAction
.
This action should not be used together with OpenDirectoryAction
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
ENABLED_PROPERTY, VIEW_PROPERTY
Constructor and Description |
---|
LoadDirectoryAction(Application app,
View view)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected URIChooser |
getChooser(View view) |
doIt, loadViewFromURI
actionPerformed, saveView, saveViewToURI
getActiveView, getApplication, getPropertyName, installViewListeners, isEnabled, setEnabled, setPropertyName, uninstallViewListeners, updateEnabled, updateView, updateView
public static final java.lang.String ID
public LoadDirectoryAction(Application app, View view)
protected URIChooser getChooser(View view)
getChooser
in class LoadFileAction