01: package jtaDiscRack.actions;
02:
03: import jtaDiscRack.*;
04:
05: import javax.swing.AbstractAction;
06: import javax.swing.Action;
07:
08: /**
09: * The base class for discRack actions.
10: *
11: * @author Sasa Bojanic
12: * @version 1.0
13: */
14: public abstract class ActionBase extends AbstractAction {
15:
16: /**
17: * A reference to the editor class.
18: */
19: protected JtaDiscRack jtaDiscRack;
20:
21: /**
22: * The Abstract action uses unqualified class name as action name.
23: *
24: * @param editor The reference to the editor for this action
25: */
26: public ActionBase(JtaDiscRack jtaDiscRack) {
27: this.jtaDiscRack = jtaDiscRack;
28: putValue(Action.NAME, Utils.getUnqualifiedClassName(getClass()));
29: }
30:
31: }
|