-package org.simantics.charts.editor;\r
-\r
-import org.eclipse.jface.action.Action;\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.simantics.g2d.canvas.ICanvasContext;\r
-import org.simantics.g2d.utils.CanvasUtils;\r
-import org.simantics.scenegraph.g2d.events.command.Command;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class SendCommandAction extends Action {\r
-\r
- private final ICanvasContext ctx;\r
- private final Command command;\r
-\r
- public SendCommandAction(String name, ImageDescriptor image, ICanvasContext ctx, Command command) {\r
- super(name, image);\r
- this.ctx = ctx;\r
- this.command = command;\r
- }\r
-\r
- @Override\r
- public void run() {\r
- CanvasUtils.sendCommand(ctx, command);\r
- }\r
-\r
-}\r
+package org.simantics.charts.editor;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.simantics.g2d.canvas.ICanvasContext;
+import org.simantics.g2d.utils.CanvasUtils;
+import org.simantics.scenegraph.g2d.events.command.Command;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class SendCommandAction extends Action {
+
+ private final ICanvasContext ctx;
+ private final Command command;
+
+ public SendCommandAction(String name, ImageDescriptor image, ICanvasContext ctx, Command command) {
+ super(name, image);
+ this.ctx = ctx;
+ this.command = command;
+ }
+
+ @Override
+ public void run() {
+ CanvasUtils.sendCommand(ctx, command);
+ }
+
+}