X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.charts%2Fsrc%2Forg%2Fsimantics%2Fcharts%2Feditor%2FSendCommandAction.java;fp=bundles%2Forg.simantics.charts%2Fsrc%2Forg%2Fsimantics%2Fcharts%2Feditor%2FSendCommandAction.java;h=42d1a744c3484c68d2330710305dab7e804a7baf;hp=fc3edffbb95a2d3e258e514dc884a67a4748febd;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.charts/src/org/simantics/charts/editor/SendCommandAction.java b/bundles/org.simantics.charts/src/org/simantics/charts/editor/SendCommandAction.java index fc3edffbb..42d1a744c 100644 --- a/bundles/org.simantics.charts/src/org/simantics/charts/editor/SendCommandAction.java +++ b/bundles/org.simantics.charts/src/org/simantics/charts/editor/SendCommandAction.java @@ -1,28 +1,28 @@ -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); - } - -} +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); + } + +}