X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=inline;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fsynchronization%2FIHintSynchronizer.java;h=31ed2c1f969f02d28e8c9de994a8b7a4dbc50fd4;hb=refs%2Fchanges%2F72%2F2072%2F1;hp=956a5027e7ad76be33b560f891f5ff8bb79ac66a;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/IHintSynchronizer.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/IHintSynchronizer.java
index 956a5027e..31ed2c1f9 100644
--- a/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/IHintSynchronizer.java
+++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/IHintSynchronizer.java
@@ -1,62 +1,62 @@
-/*******************************************************************************
- * 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;
-
-import org.simantics.utils.datastructures.hints.IHintObservable;
-import org.simantics.utils.datastructures.hints.IHintContext.Key;
-
-/**
- * A graph synchronizer for hint changes in diagram elements.
- *
- * @author Tuukka Lehtonen
- * @see ISynchronizationContext
- * @see SynchronizationHints
- * @see IModificationQueue
- * @see IHintObservable
- */
-public interface IHintSynchronizer {
-
- /**
- * Makes sure the provided observable (element) if properly synchronized into the graph.
- *
- * @param context
- * @param observable
- * @return
- */
- int synchronize(ISynchronizationContext context, IHintObservable observable);
-
- /**
- * @param queue an interface for dispatching modifications (see
- * {@link IModification}) for synchronizing the model according to
- * the hint changes
- * @param sender the observable in which the hint has changed
- * @param key the key of the changed hint
- * @param oldValue the previous hint value
- * @param newValue the new hint value, must be non-null
- * @return true
if the modification was processed by this
- * synchronizer, false
otherwise
- */
- boolean hintChanged(ISynchronizationContext context, IHintObservable sender, Key key, Object oldValue, Object newValue);
-
- /**
- * @param queue an interface for dispatching modifications (see
- * {@link IModification}) for synchronizing the model according to
- * the hint changes
- * @param sender the observable in which the hint has changed
- * @param key the key of the changed hint
- * @param oldValue the previous hint value
- * @return true
if the modification was processed by this
- * synchronizer, false
otherwise
- */
- boolean hintRemoved(ISynchronizationContext context, IHintObservable sender, Key key, Object oldValue);
-
-}
+/*******************************************************************************
+ * 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;
+
+import org.simantics.utils.datastructures.hints.IHintObservable;
+import org.simantics.utils.datastructures.hints.IHintContext.Key;
+
+/**
+ * A graph synchronizer for hint changes in diagram elements.
+ *
+ * @author Tuukka Lehtonen
+ * @see ISynchronizationContext
+ * @see SynchronizationHints
+ * @see IModificationQueue
+ * @see IHintObservable
+ */
+public interface IHintSynchronizer {
+
+ /**
+ * Makes sure the provided observable (element) if properly synchronized into the graph.
+ *
+ * @param context
+ * @param observable
+ * @return
+ */
+ int synchronize(ISynchronizationContext context, IHintObservable observable);
+
+ /**
+ * @param queue an interface for dispatching modifications (see
+ * {@link IModification}) for synchronizing the model according to
+ * the hint changes
+ * @param sender the observable in which the hint has changed
+ * @param key the key of the changed hint
+ * @param oldValue the previous hint value
+ * @param newValue the new hint value, must be non-null
+ * @return true
if the modification was processed by this
+ * synchronizer, false
otherwise
+ */
+ boolean hintChanged(ISynchronizationContext context, IHintObservable sender, Key key, Object oldValue, Object newValue);
+
+ /**
+ * @param queue an interface for dispatching modifications (see
+ * {@link IModification}) for synchronizing the model according to
+ * the hint changes
+ * @param sender the observable in which the hint has changed
+ * @param key the key of the changed hint
+ * @param oldValue the previous hint value
+ * @return true
if the modification was processed by this
+ * synchronizer, false
otherwise
+ */
+ boolean hintRemoved(ISynchronizationContext context, IHintObservable sender, Key key, Object oldValue);
+
+}