|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
com.mucommander.ui.action.MuAction
com.mucommander.ui.action.OpenAction
public class OpenAction
This action 'opens' the currently selected file or folder in the active FileTable. This means different things depending on the kind of file that is currently selected:
| Field Summary |
|---|
| Fields inherited from class com.mucommander.ui.action.MuAction |
|---|
ALTERNATE_ACCELERATOR_PROPERTY_KEY, mainFrame |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
OpenAction(MainFrame mainFrame,
java.util.Hashtable properties)
Creates a new OpenAction with the specified parameters. |
|
| Method Summary | |
|---|---|
protected void |
open(AbstractFile file,
FolderPanel destination)
Opens the specified file in the specified folder panel. |
void |
performAction()
Opens the currently selected file in the active folder panel. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenAction(MainFrame mainFrame,
java.util.Hashtable properties)
OpenAction with the specified parameters.
mainFrame - frame to which the action is attached.properties - action's properties.| Method Detail |
|---|
protected void open(AbstractFile file,
FolderPanel destination)
file will be opened using the following rules:
file is browsable,
it will be opened in destination.
file is local, it will be opened using its native associations.
file is remote, it will first be copied in a temporary local file and
then opened using its native association.
file - file to open.destination - if file is browsable, folder panel in which to open the file.public void performAction()
performAction in class MuAction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard