com.mucommander.ui.action
Class MarkExtensionAction
java.lang.Object
javax.swing.AbstractAction
com.mucommander.ui.action.MuAction
com.mucommander.ui.action.MarkExtensionAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class MarkExtensionAction
- extends MuAction
Action that marks / unmarks all files with a specific extension.
Marking behaves as follows:
-
If the current selection is marked, all files whose extension matches that of the current selection will
be unmarked.
-
If the current selection isn't marked, all files whose extension matches that of the current selection will
be marked.
By default, this action will mark all files whose extension match that of the current selection in a case-insensitive fashion.
It can, however, be configured:
-
If the
extension property is set, its value prepended by a . is always going to be used regardless of the
current selection.
-
If the
case_sensitive property is set to true, extension matching will be done in a case sensitive fashion.
- Author:
- Nicolas Rinaudo
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
CASE_SENSITIVE_PROPERTY_KEY
Key that controls whether extension matching should be done in a case sensitive fashion (defaults to false). |
static java.lang.String |
EXTENSION_PROPERTY_KEY
Key that controls which extension should be matched. |
| 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 |
MarkExtensionAction(MainFrame mainFrame,
java.util.Hashtable properties)
Creates a new MarkExtensionAction with the specified parameters. |
|
Method Summary |
void |
performAction()
Marks all files whose extension matches the current selection. |
| Methods inherited from class com.mucommander.ui.action.MuAction |
actionPerformed, getAccelerator, getAcceleratorText, getAlternateAccelerator, getIcon, getKeyStrokeRepresentation, getLabel, getMainFrame, getModifiersRepresentation, getStandardAccelerator, getStandardAccelerator, getStandardAlternateAccelerator, getStandardAlternateAccelerator, getStandardIcon, getStandardIcon, getStandardIconPath, getStandardIconPath, getStandardLabel, getStandardLabel, getStandardLabelKey, getStandardLabelKey, getStandardTooltip, getStandardTooltip, getStandardTooltipKey, getStandardTooltipKey, getToolTipText, honourNoEventsMode, isAccelerator, performActionInSeparateThread, reportError, reportError, reportGenericError, setAccelerator, setAlternateAccelerator, setHonourNoEventsMode, setIcon, setLabel, setPerformActionInSeparateThread, setToolTipText |
| 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 |
EXTENSION_PROPERTY_KEY
public static final java.lang.String EXTENSION_PROPERTY_KEY
- Key that controls which extension should be matched.
- See Also:
- Constant Field Values
CASE_SENSITIVE_PROPERTY_KEY
public static final java.lang.String CASE_SENSITIVE_PROPERTY_KEY
- Key that controls whether extension matching should be done in a case sensitive fashion (defaults to false).
- See Also:
- Constant Field Values
MarkExtensionAction
public MarkExtensionAction(MainFrame mainFrame,
java.util.Hashtable properties)
- Creates a new
MarkExtensionAction with the specified parameters.
- Parameters:
mainFrame - frame to which the action is attached.properties - action's properties.
performAction
public void performAction()
- Marks all files whose extension matches the current selection.
- Specified by:
performAction in class MuAction
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard