|
|||||||||
| 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.FileAction
com.mucommander.ui.action.SelectedFileAction
com.mucommander.ui.action.InternalEditAction
public class InternalEditAction
Opens the current file in edit mode.
| Field Summary | |
|---|---|
static java.lang.String |
CUSTOM_COMMAND_PROPERTY_KEY
Key that controls the command that will be used to open files. |
static java.lang.String |
USE_CUSTOM_COMMAND_PROPERTY_KEY
Key that controls whether or not to use the custom command. |
| Fields inherited from class com.mucommander.ui.action.FileAction |
|---|
filter |
| 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 | |
|---|---|
InternalEditAction(MainFrame mainFrame,
java.util.Hashtable properties)
Creates a new instance of EditAction. |
|
| Method Summary | |
|---|---|
protected Command |
getCustomCommand()
Returns the command that should be used to open files. |
void |
performAction()
Edits the currently selected file. |
void |
performInternalAction(AbstractFile file)
Opens the internal editor on the specified file. |
protected void |
setCustomCommand(java.lang.String command)
Sets the command to use to open files. |
protected void |
setUseCustomCommand(boolean use)
Sets whether or not to use custom commands to open files. |
protected boolean |
useCustomCommand()
Returns true if this action should use custom command. |
| Methods inherited from class com.mucommander.ui.action.SelectedFileAction |
|---|
getFileTableCondition, setSelectedFileFilter |
| Methods inherited from class com.mucommander.ui.action.FileAction |
|---|
activePanelChanged, markedFilesChanged, selectedFileChanged, updateEnabledState |
| 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 |
| Field Detail |
|---|
public static final java.lang.String USE_CUSTOM_COMMAND_PROPERTY_KEY
public static final java.lang.String CUSTOM_COMMAND_PROPERTY_KEY
| Constructor Detail |
|---|
public InternalEditAction(MainFrame mainFrame,
java.util.Hashtable properties)
EditAction.
mainFrame - frame to which the action is attached.properties - action's properties.| Method Detail |
|---|
public void performInternalAction(AbstractFile file)
file - file to edit.protected boolean useCustomCommand()
true if this action should use custom command.
true if this action should use custom command, false otherwise.protected Command getCustomCommand()
false if none.protected void setCustomCommand(java.lang.String command)
command - command that will be used to open files.protected void setUseCustomCommand(boolean use)
use - whether or not to use custom commands.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