com.mucommander.ui.action
Class GoToParentInBothPanelsAction
java.lang.Object
javax.swing.AbstractAction
com.mucommander.ui.action.MuAction
com.mucommander.ui.action.GoToAction
com.mucommander.ui.action.GoToParentAction
com.mucommander.ui.action.GoToParentInBothPanelsAction
- All Implemented Interfaces:
- ActivePanelListener, LocationListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class GoToParentInBothPanelsAction
- extends GoToParentAction
Changes the current directory to its parent and tries to do the same in the inactive panel.
When possible, this action will open the active panel's current folder's parent. Additionally,
if the inactive panel's current folder has a parent, it will open that one as well.
Note that this action's behaviour is strictly equivalent to that of GoToParentAction in the
active panel. Differences will only occur in the inactive panel, and then again only when possible.
This action opens both files synchronously: it will wait for the active panel location change confirmation
before performing the inactive one.
- Author:
- Nicolas Rinaudo
- See Also:
- Serialized Form
| 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 |
|
Method Summary |
void |
performAction()
Opens both the active and inactive folder panel's parent directories. |
| 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 |
GoToParentInBothPanelsAction
public GoToParentInBothPanelsAction(MainFrame mainFrame,
java.util.Hashtable properties)
- Creates a new
GoToParentInBothPanelsAction instance with the specified parameters.
- Parameters:
mainFrame - frame to which the action is attached.properties - action's properties.
performAction
public void performAction()
- Opens both the active and inactive folder panel's parent directories.
- Overrides:
performAction in class GoToParentAction
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard