X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.server%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fserver%2Fbean%2FCommand.java;h=eabb2afdd3110f90db2504719e889ffde59dc890;hp=8b6802829a3a686e9a099b6933c98135968090b6;hb=e4ffdffae875e518a4eb070b8bda6ead1a9843d3;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07 diff --git a/bundles/org.simantics.document.server/src/org/simantics/document/server/bean/Command.java b/bundles/org.simantics.document.server/src/org/simantics/document/server/bean/Command.java index 8b6802829..eabb2afdd 100644 --- a/bundles/org.simantics.document.server/src/org/simantics/document/server/bean/Command.java +++ b/bundles/org.simantics.document.server/src/org/simantics/document/server/bean/Command.java @@ -1,6 +1,16 @@ +/******************************************************************************* + * 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.databoard.util.Bean; import org.simantics.document.server.io.CommandContext; import org.simantics.document.server.io.ICommand; @@ -13,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;