ARoad0.gDMak
Class ActionRemove
java.lang.Object
javax.swing.AbstractAction
ARoad0.gDMak.ActionRemove
- All Implemented Interfaces:
- Singleton, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ActionRemove
- extends javax.swing.AbstractAction
- implements Singleton
An action that removes an open or closed ACS or view,
a closed composite, a physical or logical component,
from the Access Road base, without backup.
The IS is always removed when its last ACS is removed.
The removed entity may be open or closed. See ActionUtilities.
- 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 |
Constructor Summary |
private |
ActionRemove()
with this private constructor, the compiler won't generate
a default public constructor |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent _ev)
Manages removing commands from one source:
- from 'Remove' in the main menu when the explorer is open, or
- from the main frame of an ACS or a view is activated. |
static ActionRemove |
getInstance()
constructor() |
private void |
informationOnACSremoving(ImmutableName _name)
The user has to read the ACS dependencies on children ACS and views,
before confirming the removing of an ACS. |
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 |
instance__
private static ActionRemove instance__
viewBase__
private static ViewInBase_Facade viewBase__
ActionRemove
private ActionRemove()
- with this private constructor, the compiler won't generate
a default public constructor
getInstance
public static ActionRemove getInstance()
- constructor()
- Returns:
- ActionRemove
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent _ev)
- Manages removing commands from one source:
- from 'Remove' in the main menu when the explorer is open, or
- from the main frame of an ACS or a view is activated.
Every removing is confirmed by the user, and the entity is closed
before if it is open.
First, if there is at least one closed ACS, a dialog requests to the user if
he wants to remove one of them, and the user may select one
and removes it. If there is no closed ACS, if the user answer 'no',
a dialog requests if the user wants to close an open tied-child ACS.
Otherwise, if there is at least one closed view, a dialog requests to the user
if he wants to remove one of them, and the user may select one
and remove a closed view.
Finally, if the user rejects the two first options, if
the 'IS Structure' tree is open and if there is a closed composite,
a physical or logical component that is selected, this object is removed.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Parameters:
_ev
- ActionEvent
informationOnACSremoving
private void informationOnACSremoving(ImmutableName _name)
- The user has to read the ACS dependencies on children ACS and views,
before confirming the removing of an ACS.
Displays the list of these associated ACS and views.
- Parameters:
_name
- of the ACS to remove