import org.simantics.spreadsheet.graph.synchronization.NullUpdater;
import org.simantics.spreadsheet.graph.synchronization.SheetLineComponent;
import org.simantics.spreadsheet.graph.synchronization.StyleUpdater;
-import org.simantics.structural.synchronization.base.ModuleUpdaterBase;
-import org.simantics.structural.synchronization.base.ModuleUpdaterFactoryBase;
-import org.simantics.structural.synchronization.base.SolverNameUtil;
import org.simantics.structural.synchronization.utils.ComponentFactory;
import org.simantics.structural.synchronization.utils.MappingBase;
+import org.simantics.structural.synchronization.utils.ModuleUpdaterBase;
+import org.simantics.structural.synchronization.utils.ModuleUpdaterFactoryBase;
import org.simantics.structural.synchronization.utils.Solver;
+import org.simantics.structural.synchronization.utils.SolverNameUtil;
import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap;
import it.unimi.dsi.fastutil.longs.AbstractLongList;
package org.simantics.spreadsheet.graph;
import org.simantics.spreadsheet.graph.synchronization.SheetLineComponent;
-import org.simantics.structural.synchronization.base.ReferenceResolverBase;
+import org.simantics.structural.synchronization.utils.ReferenceResolverBase;
import org.simantics.structural.synchronization.utils.Solver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.simantics.spreadsheet.graph.parser.SheetFormulaParser;
import org.simantics.spreadsheet.graph.parser.ast.AstArrayFormulaReference;
import org.simantics.spreadsheet.graph.parser.ast.AstValue;
-import org.simantics.structural.synchronization.base.CommandBuilder;
+import org.simantics.structural.synchronization.utils.CommandBuilder;
import org.simantics.structural.synchronization.utils.Solver;
public class LineCommandBuilder implements CommandBuilder {
import java.util.Map;
import org.simantics.databoard.binding.mutable.Variant;
-import org.simantics.structural.synchronization.base.CommandBuilder;
-import org.simantics.structural.synchronization.base.ModuleUpdateContext;
-import org.simantics.structural.synchronization.base.ModuleUpdaterBase;
-import org.simantics.structural.synchronization.base.PropertyUpdateRule;
+import org.simantics.structural.synchronization.utils.CommandBuilder;
+import org.simantics.structural.synchronization.utils.ModuleUpdateContext;
+import org.simantics.structural.synchronization.utils.ModuleUpdaterBase;
+import org.simantics.structural.synchronization.utils.PropertyUpdateRule;
public class LineNodeUpdater extends ModuleUpdaterBase<SheetLineComponent> {
import org.simantics.databoard.adapter.AdaptException;
import org.simantics.databoard.binding.mutable.Variant;
import org.simantics.spreadsheet.graph.function.LineContentBean;
-import org.simantics.structural.synchronization.base.CommandBuilder;
-import org.simantics.structural.synchronization.base.ModuleUpdateContext;
-import org.simantics.structural.synchronization.base.ModuleUpdaterBase;
-import org.simantics.structural.synchronization.base.PropertyUpdateRule;
-import org.simantics.structural.synchronization.utils.Solver;
+import org.simantics.structural.synchronization.utils.CommandBuilder;
+import org.simantics.structural.synchronization.utils.ModuleUpdateContext;
+import org.simantics.structural.synchronization.utils.ModuleUpdaterBase;
+import org.simantics.structural.synchronization.utils.PropertyUpdateRule;
public class LineUpdater extends ModuleUpdaterBase<SheetLineComponent> {
import org.simantics.spreadsheet.graph.SpreadsheetBook;
import org.simantics.spreadsheet.graph.SpreadsheetLines;
-import org.simantics.structural.synchronization.base.CommandBuilder;
+import org.simantics.structural.synchronization.utils.CommandBuilder;
import org.simantics.structural.synchronization.utils.Solver;
public class LinesCommandBuilder implements CommandBuilder {
package org.simantics.spreadsheet.graph.synchronization;
-import org.simantics.structural.synchronization.base.CommandBuilder;
+import org.simantics.structural.synchronization.utils.CommandBuilder;
import org.simantics.structural.synchronization.utils.Solver;
public class NullCommandBuilder implements CommandBuilder {
package org.simantics.spreadsheet.graph.synchronization;
-import org.simantics.structural.synchronization.base.CommandBuilder;
-import org.simantics.structural.synchronization.base.ModuleUpdaterBase;
+import org.simantics.structural.synchronization.utils.CommandBuilder;
+import org.simantics.structural.synchronization.utils.ModuleUpdaterBase;
public class NullUpdater extends ModuleUpdaterBase<SheetLineComponent> {
import org.simantics.db.ReadGraph;
import org.simantics.spreadsheet.graph.SpreadsheetBook;
import org.simantics.spreadsheet.graph.SpreadsheetReferenceResolver;
-import org.simantics.structural.synchronization.base.SynchronizationEventHandlerBase;
+import org.simantics.structural.synchronization.utils.SynchronizationEventHandlerBase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.simantics.datatypes.literal.RGB;
import org.simantics.spreadsheet.graph.SpreadsheetBook;
import org.simantics.spreadsheet.graph.SpreadsheetStyle;
-import org.simantics.structural.synchronization.base.CommandBuilder;
-import org.simantics.structural.synchronization.base.ModuleUpdateContext;
-import org.simantics.structural.synchronization.base.ModuleUpdaterBase;
-import org.simantics.structural.synchronization.base.PropertyUpdateRule;
+import org.simantics.structural.synchronization.utils.CommandBuilder;
+import org.simantics.structural.synchronization.utils.ModuleUpdateContext;
+import org.simantics.structural.synchronization.utils.ModuleUpdaterBase;
+import org.simantics.structural.synchronization.utils.PropertyUpdateRule;
import org.simantics.structural.synchronization.utils.Solver;
public class StyleUpdater extends ModuleUpdaterBase<SheetLineComponent> {
+++ /dev/null
-package org.simantics.structural.synchronization.base;
-
-import org.simantics.structural.synchronization.utils.Solver;
-
-public interface CommandBuilder {
-
- void apply(Solver solver);
- <T> T getConcrete();
-
-}
+++ /dev/null
-package org.simantics.structural.synchronization.base;
-
-import org.simantics.db.exception.DatabaseException;
-import org.simantics.structural.synchronization.utils.ComponentBase;
-
-
-public interface ModuleUpdaterFactoryBase<T extends ComponentBase<T>> {
-
- public ModuleUpdaterBase<T> createUpdater(String id) throws DatabaseException;
-
-}
--- /dev/null
+package org.simantics.structural.synchronization.utils;
+
+public interface CommandBuilder {
+
+ void apply(Solver solver);
+ <T> T getConcrete();
+
+}
-package org.simantics.structural.synchronization.base;
+package org.simantics.structural.synchronization.utils;
import java.util.Collection;
import java.util.Map;
import org.simantics.databoard.binding.mutable.Variant;
-import org.simantics.structural.synchronization.utils.ComponentBase;
public interface ConnectionUpdateRule<T extends ComponentBase<T>> {
-package org.simantics.structural.synchronization.base;
+package org.simantics.structural.synchronization.utils;
public interface ModuleCallback {
-package org.simantics.structural.synchronization.base;
-
-import gnu.trove.map.hash.THashMap;
+package org.simantics.structural.synchronization.utils;
import java.util.ArrayList;
import org.simantics.databoard.binding.mutable.Variant;
-import org.simantics.structural.synchronization.utils.ComponentBase;
-import org.simantics.structural.synchronization.utils.Solver;
+
+import gnu.trove.map.hash.THashMap;
public class ModuleUpdateContext<T extends ComponentBase<T>> {
-package org.simantics.structural.synchronization.base;
-
-import gnu.trove.map.hash.THashMap;
+package org.simantics.structural.synchronization.utils;
import java.util.Collection;
import java.util.Collections;
import org.simantics.databoard.binding.mutable.Variant;
import org.simantics.structural.synchronization.protocol.Connection;
import org.simantics.structural.synchronization.protocol.SerializedVariable;
-import org.simantics.structural.synchronization.utils.ComponentBase;
+
+import gnu.trove.map.hash.THashMap;
abstract public class ModuleUpdaterBase<T extends ComponentBase<T>> {
--- /dev/null
+package org.simantics.structural.synchronization.utils;
+
+public interface ModuleUpdaterFactoryBase<T extends ComponentBase<T>> {
+
+ public ModuleUpdaterBase<T> createUpdater(String id) throws Exception;
+
+}
-package org.simantics.structural.synchronization.base;
+package org.simantics.structural.synchronization.utils;
import java.util.Collection;
import java.util.Map;
import org.simantics.databoard.binding.mutable.Variant;
-import org.simantics.structural.synchronization.utils.ComponentBase;
public interface PropertyUpdateRule<T extends ComponentBase<T>> {
-package org.simantics.structural.synchronization.base;
-
-import gnu.trove.map.hash.THashMap;
-import gnu.trove.procedure.TObjectObjectProcedure;
+package org.simantics.structural.synchronization.utils;
import java.util.ArrayList;
import java.util.Collections;
import org.simantics.databoard.util.URIStringUtils;
import org.simantics.structural.synchronization.protocol.SynchronizationEventHandler;
-import org.simantics.structural.synchronization.utils.ComponentBase;
-import org.simantics.structural.synchronization.utils.Solver;
import org.slf4j.Logger;
+import gnu.trove.map.hash.THashMap;
+import gnu.trove.procedure.TObjectObjectProcedure;
+
abstract public class ReferenceResolverBase<T extends ComponentBase<T>> {
protected SynchronizationEventHandler eventHandler;
-package org.simantics.structural.synchronization.base;
+package org.simantics.structural.synchronization.utils;
import java.util.function.BiConsumer;
-package org.simantics.structural.synchronization.base;
+package org.simantics.structural.synchronization.utils;
import java.util.ArrayDeque;
import java.util.Collection;
import org.simantics.databoard.Bindings;
import org.simantics.databoard.adapter.AdaptException;
-import org.simantics.db.exception.DatabaseException;
import org.simantics.structural.synchronization.internal.Policy;
import org.simantics.structural.synchronization.protocol.ChildInfo;
import org.simantics.structural.synchronization.protocol.Connection;
import org.simantics.structural.synchronization.protocol.SerializedVariable;
import org.simantics.structural.synchronization.protocol.SynchronizationEventHandler;
import org.simantics.structural.synchronization.protocol.SynchronizationException;
-import org.simantics.structural.synchronization.utils.ComponentBase;
-import org.simantics.structural.synchronization.utils.ComponentFactory;
-import org.simantics.structural.synchronization.utils.MappingBase;
-import org.simantics.structural.synchronization.utils.Solver;
import org.slf4j.Logger;
import gnu.trove.map.hash.THashMap;
ModuleUpdaterBase<T> updater;
try {
updater = moduleUpdaterFactory.createUpdater(id);
- } catch (DatabaseException e) {
+ } catch (Exception e) {
throw new RuntimeException(e);
}
if(updater == null)