/** Creates a new instance. */ public IncreaseHandleDetailLevelAction(DrawingEditor editor) { super(editor); ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.draw.Labels"); labels.configureAction(this, ID); // putValue(AbstractAction.NAME, labels.getString("editSelectSame")); // putValue(AbstractAction.MNEMONIC_KEY, labels.getString("editSelectSameMnem")); updateEnabledState(); }
public void actionPerformed(ActionEvent evt) { ResourceBundleUtil labels = ResourceBundleUtil.getLAFBundle("org.jhotdraw.app.Labels"); if (LineConnectionFigure.validateEnabled) { labels.configureAction(this, ID2); LineConnectionFigure.validateEnabled = false; } else { labels.configureAction(this, ID); LineConnectionFigure.validateEnabled = true; } DrawProject project = (DrawProject) getCurrentProject(); for (Figure f : project.getEditor().getActiveView().getDrawing().getFigures()) { if (f instanceof LineConnectionFigure) { ((LineConnectionFigure) f).updateConnection(); } } }
/** Creates a new instance. */ public ClearRecentFilesAction(Application app) { super(app); ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.app.Labels"); labels.configureAction(this, ID); updateEnabled(); }
/** Creates a new instance. */ public ValidateModelAction(Application app) { super(app); ResourceBundleUtil labels = ResourceBundleUtil.getLAFBundle("org.jhotdraw.app.Labels"); labels.configureAction(this, ID2); }
/** Creates a new instance. */ public LoadAction(Application app) { super(app); ResourceBundleUtil labels = ResourceBundleUtil.getLAFBundle("org.jhotdraw.app.Labels"); labels.configureAction(this, "open"); }
/** Creates a new instance. */ public DuplicateAction() { ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.app.Labels"); labels.configureAction(this, ID); }
/** 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 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); }