package org.insightech.er.editor.view.action.option.notation; import org.eclipse.jface.action.IAction; import org.eclipse.swt.widgets.Event; import org.insightech.er.ResourceString; import org.insightech.er.editor.ERDiagramEditor; import org.insightech.er.editor.controller.command.common.notation.ChangeStampCommand; import org.insightech.er.editor.model.ERDiagram; import org.insightech.er.editor.view.action.AbstractBaseAction; public class ChangeStampAction extends AbstractBaseAction { public static final String ID = ChangeStampAction.class.getName(); public ChangeStampAction(ERDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); this.setText(ResourceString .getResourceString("action.title.display.stamp")); } /** * {@inheritDoc} */ @Override public void execute(Event event) { ERDiagram diagram = this.getDiagram(); ChangeStampCommand command = new ChangeStampCommand(diagram, this .isChecked()); this.execute(command); } }