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%2Fclient%2FWidgetData.java;fp=bundles%2Forg.simantics.document.server%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fserver%2Fclient%2FWidgetData.java;h=2fb138fdea5c104368612166f6f6d0c538e2149a;hp=1235d527c4fdac3e2b2dea298734780bd49e1124;hb=e4ffdffae875e518a4eb070b8bda6ead1a9843d3;hpb=158d6269660a3b415504f1da5a0b8341e761a5be diff --git a/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetData.java b/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetData.java index 1235d527c..2fb138fde 100644 --- a/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetData.java +++ b/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetData.java @@ -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.client; import java.util.HashSet; @@ -5,6 +16,8 @@ import java.util.TreeMap; import org.simantics.document.server.IEventCommand; import org.simantics.document.server.JSONObject; +import org.simantics.document.server.io.CommandContext; +import org.simantics.document.server.io.ICommand; public class WidgetData { @@ -67,12 +80,12 @@ public class WidgetData { } @SuppressWarnings({ "unchecked", "rawtypes" }) - public IEventCommand eventCommand(String command) { + public IEventCommand eventCommand(ICommand command, CommandContext c) { if(object == null) return null; WidgetManager manager = document.getManager(object); if(manager != null) - return manager.eventCommand(document, object, widget, command); + return manager.eventCommand(document, object, widget, command, c); else return null; }