public class OpenDirectoryAction extends OpenFileAction
URIChooser
for selecting a directory and loads the
selected URI into an empty view. If no empty view is available, a new view is
created.
This action is called when the user selects the Open Directory item in the File menu. The menu item is automatically created by the application.
If you want this behavior in your application, you have to create it
and put it in your ApplicationModel
in method
ApplicationModel.initApplication(org.jhotdraw.app.Application)
.
This action is designed for applications which automatically
create a new view for each opened file. This action goes together with
NewFileAction
, OpenFileAction
and CloseFileAction
.
This action should not be used together with LoadFileAction
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
OpenDirectoryAction(Application app)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected URIChooser |
getChooser(View view) |
actionPerformed, createDialog, openViewFromURI, showDialog
dispose, getApplication, installApplicationListeners, isEnabled, setEnabled, uninstallApplicationListeners, updateApplicationEnabled
public static final java.lang.String ID
public OpenDirectoryAction(Application app)
protected URIChooser getChooser(View view)
getChooser
in class OpenFileAction