X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=inline;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fsynchronization%2Fgraph%2FElementWriter.java;h=654df3fc602aac0e0749a6b524f0c89855a195bf;hb=892b7bb9be2147b5fe10036a75e798d184705339;hp=1af93778075048e19ab4da6492771d384e2f5b1a;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/graph/ElementWriter.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/graph/ElementWriter.java
index 1af937780..654df3fc6 100644
--- a/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/graph/ElementWriter.java
+++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/graph/ElementWriter.java
@@ -1,57 +1,57 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 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:
- * VTT Technical Research Centre of Finland - initial API and implementation
- *******************************************************************************/
-package org.simantics.diagram.synchronization.graph;
-
-import org.simantics.db.Resource;
-import org.simantics.db.WriteGraph;
-import org.simantics.db.exception.DatabaseException;
-import org.simantics.diagram.synchronization.IHintSynchronizer;
-import org.simantics.g2d.element.IElement;
-
-/**
- * This interface is used by DiagramGraphSynchronizer as a first time only
- * mechanism for customizable IElement->Graph synchronization of element that
- * have been newly added to a diagram. These methods are only invoked once for
- * any single element.
- *
- * @author Tuukka Lehtonen
- *
- * @see IHintSynchronizer
- *
- * TODO: try to unify this with other elementloader/graphelementfactory etc. mechanisms
- * TODO: transform this into ElementGraphLifecycle ?
- */
-public interface ElementWriter {
-
- /**
- * @param graph
- * @param element
- * @param elementResource
- * @throws DatabaseException
- */
- void addToGraph(WriteGraph graph, IElement element, Resource elementResource) throws DatabaseException;
-
- /**
- * Sometimes {@link #writeGraph(WriteGraph, IElement, Resource)}
- * can write things into the graph that are not removed by the standard
- * deletion procedure. The standard procedure is to remove the element
- * resource from the diagram's ordered set and then remove everything that
- * the element resource is composed of. This method may implement
- * customized code for removing any other kinds of affiliations the element
- * might have in the graph.
- *
- * @param graph
- * @param elementResource
- */
- void removeFromGraph(WriteGraph graph, Resource elementResource) throws DatabaseException;
-
-}
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 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:
+ * VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.diagram.synchronization.graph;
+
+import org.simantics.db.Resource;
+import org.simantics.db.WriteGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.diagram.synchronization.IHintSynchronizer;
+import org.simantics.g2d.element.IElement;
+
+/**
+ * This interface is used by DiagramGraphSynchronizer as a first time only
+ * mechanism for customizable IElement->Graph synchronization of element that
+ * have been newly added to a diagram. These methods are only invoked once for
+ * any single element.
+ *
+ * @author Tuukka Lehtonen
+ *
+ * @see IHintSynchronizer
+ *
+ * TODO: try to unify this with other elementloader/graphelementfactory etc. mechanisms
+ * TODO: transform this into ElementGraphLifecycle ?
+ */
+public interface ElementWriter {
+
+ /**
+ * @param graph
+ * @param element
+ * @param elementResource
+ * @throws DatabaseException
+ */
+ void addToGraph(WriteGraph graph, IElement element, Resource elementResource) throws DatabaseException;
+
+ /**
+ * Sometimes {@link #writeGraph(WriteGraph, IElement, Resource)}
+ * can write things into the graph that are not removed by the standard
+ * deletion procedure. The standard procedure is to remove the element
+ * resource from the diagram's ordered set and then remove everything that
+ * the element resource is composed of. This method may implement
+ * customized code for removing any other kinds of affiliations the element
+ * might have in the graph.
+ *
+ * @param graph
+ * @param elementResource
+ */
+ void removeFromGraph(WriteGraph graph, Resource elementResource) throws DatabaseException;
+
+}