]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetManager.java
Improvements to modelled SWT documents
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / client / WidgetManager.java
index 8474bfd15b1b14e3dcbda4f74c38fdc2d8955662..ab0b8cf87503437c38f16f2e9f19cd98dafcd7e0 100644 (file)
@@ -1,20 +1,33 @@
+/*******************************************************************************
+ * 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.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 interface WidgetManager<D extends Document, W> {
 
        public W createWidget(JSONObject object);
 
        public void updateProperties(D document, JSONObject object, W widget);
-       
+
        public void updateChildren(D document, JSONObject object, W widget, TreeMap<String, WidgetData> childMap);
-       
-    public IEventCommand eventCommand(D document, JSONObject object, W widget, String command);
-       
+
+       public IEventCommand eventCommand(D document, JSONObject object, W widget, ICommand command, CommandContext context);
+
        public String getProperty(D document, JSONObject object, W widget, String property);
-       
+
 }
\ No newline at end of file