1 package org.enhydra.jawe.actions; 2 3 import javax.swing.AbstractAction ; 4 import javax.swing.Action ; 5 import javax.swing.Icon ; 6 7 import org.enhydra.jawe.*; 8 9 12 public abstract class ActionBase 13 extends AbstractAction { 14 15 18 protected AbstractEditor editor; 19 20 25 public ActionBase(AbstractEditor editor) { 26 this.editor = editor; 27 putValue(Action.NAME,Utils.getUnqualifiedClassName(getClass())); 28 } 29 30 36 37 public ActionBase(AbstractEditor editor, String name) { 38 super(name); 39 this.editor = editor; 40 } 41 42 } 43 | Popular Tags |