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