]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/SWTDocument.java
Playground for Antti.
[simantics/platform.git] / bundles / org.simantics.document.swt.core / src / org / simantics / document / swt / core / SWTDocument.java
index 41183050f2c969c4833994eddc4509a508afdaaa..e0db02e8bba21146ecd22ca678e88e0cde815f4b 100644 (file)
@@ -1,6 +1,7 @@
 package org.simantics.document.swt.core;
 
 import java.util.Collections;
+import java.util.List;
 import java.util.Map;
 
 import org.eclipse.jface.viewers.ISelectionProvider;
@@ -8,8 +9,12 @@ import org.eclipse.swt.graphics.Color;
 import org.eclipse.swt.graphics.Font;
 import org.eclipse.ui.IWorkbenchSite;
 import org.simantics.document.server.client.Document;
-import org.simantics.document.server.handler.AbstractEventHandler;
+import org.simantics.document.server.client.WidgetData;
+import org.simantics.document.server.io.AbstractEventHandler;
 import org.simantics.document.server.io.CommandContext;
+import org.simantics.document.server.io.CommandContextMutable;
+import org.simantics.document.server.io.ICommand;
+import org.simantics.utils.datastructures.Pair;
 
 public interface SWTDocument extends Document {
 
@@ -19,7 +24,8 @@ public interface SWTDocument extends Document {
        ISelectionProvider getSelectionProvider();
        Color getColor(org.simantics.datatypes.literal.RGB.Integer bean);
        Font getFont(org.simantics.datatypes.literal.Font bean);
-       void post(AbstractEventHandler handler, CommandContext parameters);
+    void post(AbstractEventHandler handler, CommandContextMutable context);
+    CommandContext handleCommands(List<Pair<WidgetData, ICommand>> data, CommandContextMutable context, Object component);
        void layout();
        
     void displayError(String error);