]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/CellEditor.java
Adopt spreadsheet changes made in Balas development
[simantics/platform.git] / bundles / org.simantics.spreadsheet / src / org / simantics / spreadsheet / CellEditor.java
index b322335a1c0bcd8d36d908526d17daced932fc92..4448a87988c67f6d59447187749f736ff15e388f 100644 (file)
  *******************************************************************************/
 package org.simantics.spreadsheet;
 
-import java.util.List;
 import java.util.function.Consumer;
 
 import org.simantics.databoard.binding.Binding;
 import org.simantics.databoard.binding.mutable.MutableVariant;
 import org.simantics.databoard.binding.mutable.Variant;
-import org.simantics.spreadsheet.ClientModel.OperationMode;
 
 public interface CellEditor<O> {
-    
-       public interface Transaction<O> {
-           
-           void setContext(Object context);
-           
-           Object getContext();
-           
-           void add(O operation);
-           
-               /*
-                * Applies the operations collected with this transaction
-                * 
-                */
-           void commit();
-           
-           boolean isOperationMode();
-        
-        List<Object> needSynchronization();
 
-        void needSynchronization(Object synchronizable);
-       }
-       
-       /*
-        * Sets the given property of the given cell
-        * 
-        * @param transaction a combined transaction, null for immediate change
-        * @param location a cell location e.g. 'A1'
-        * @param property the name of the property
-        * @param value the property value
-        * @param binding used for serializing the value 
-        */
-       <T> void edit(Transaction<O> transaction, String location, String property, T value, Binding binding, Consumer<?> callback);
-       /*
-        * Edits the given cell using the given textual input
-        * 
-        * @param transaction a combined transaction, null for immediate change
-        * @param location a cell location e.g. 'A1'
-        * @param value a text describing the change
-        */
+    /*
+     * Sets the given property of the given cell
+     * 
+     * @param transaction a combined transaction, null for immediate change
+     * @param location a cell location e.g. 'A1'
+     * @param property the name of the property
+     * @param value the property value
+     * @param binding used for serializing the value 
+     */
+    <T> void edit(Transaction<O> transaction, String location, String property, T value, Binding binding, Consumer<?> callback);
+    /*
+     * Edits the given cell using the given textual input
+     * 
+     * @param transaction a combined transaction, null for immediate change
+     * @param location a cell location e.g. 'A1'
+     * @param value a text describing the change
+     */
     void edit(Transaction<O> transaction, String location, Variant variant, Consumer<?> callback);
 
     void copy(Transaction<O> transaction, String location, MutableVariant variant, Consumer<?> callback);
-    
-       /*
-        * Creates a new transaction object
-        
-        */
+
+    /*
+     * Creates a new transaction object
+     * 
+     */
     Transaction<O> startTransaction(OperationMode mode);
-    
+
 }