public class OpenDesktopTask extends AbstractDesktopTask
A specialized action task for opening a file or directory.
This task is executed when the user triggers the open action. Its behavior
depends on the current selection in the table: If a file is selected, it is
opened using the Desktop
class. If a directory is selected, the
controller is asked to navigate to this directory.
log
Constructor and Description |
---|
OpenDesktopTask(MainWndController ctrl)
Creates a new instance of
OpenDesktopTask and initializes it with
the main controller. |
Modifier and Type | Method and Description |
---|---|
protected void |
performDesktopOperation(Desktop desktop)
Performs the desktop operation.
|
void |
run()
Executes this task.
|
getController, getSelectedFile
public OpenDesktopTask(MainWndController ctrl)
OpenDesktopTask
and initializes it with
the main controller.ctrl
- the main controllerpublic void run()
run
in interface Runnable
run
in class AbstractDesktopTask
protected void performDesktopOperation(Desktop desktop) throws Exception
Desktop
instance is called.performDesktopOperation
in class AbstractDesktopTask
desktop
- the Desktop
instanceException
- if an error occursCopyright © 2016 The JGUIraffe Team. All rights reserved.