]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.server/src/org/simantics/document/server/bean/Command.java
Improvements to modelled SWT documents
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / bean / Command.java
index f47c0c5c38ff53eade8eaa9834d641aa4e0cba06..eabb2afdd3110f90db2504719e889ffde59dc890 100644 (file)
@@ -1,3 +1,14 @@
+/*******************************************************************************
+ * Copyright (c) 2019 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     Semantum Oy - initial API and implementation
+ *******************************************************************************/
 package org.simantics.document.server.bean;
 
 import org.simantics.document.server.io.CommandContext;
@@ -12,6 +23,10 @@ public class Command implements ICommand {
 
     public Command() {}
     
+    public Command(String command) {
+        this.command = command;
+    }
+
     public Command(String targetId, String trigger, String command, CommandContext constants) {
         this.targetId = targetId;
         this.trigger = trigger;