/** Creates a new instance. */
 public ClearRecentFilesAction(Application app) {
   super(app);
   ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, ID);
   updateEnabled();
 }
예제 #2
0
 /** Creates a new instance. */
 public LoadAction(Application app) {
   super(app);
   ResourceBundleUtil labels = ResourceBundleUtil.getLAFBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, "open");
 }
예제 #3
0
 /** Creates a new instance. */
 public SaveAsAction(Application app) {
   super(app, true);
   ResourceBundleUtil labels = ResourceBundleUtil.getLAFBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, ID);
 }
 /** Creates a new instance. */
 public DuplicateAction() {
   ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, ID);
 }
 /**
  * Creates a new instance which acts on the specified component.
  *
  * @param target The target of the action. Specify null for the currently focused component.
  */
 public ClearSelectionAction(@Nullable JComponent target) {
   super(target);
   ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, ID);
 }