X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fdiagram%2Fhandler%2FRelationship.java;h=b373eaaa1a124bdf6ef041b3d8328ac4fd4f4286;hb=ceb7e16b90ce8ab7570b1dd905d2e14e6ceea9b2;hp=c4a3b102f461257a96e980b9be086b70de256e3c;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Relationship.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Relationship.java
index c4a3b102f..b373eaaa1 100644
--- a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Relationship.java
+++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Relationship.java
@@ -1,64 +1,64 @@
-/*******************************************************************************
- * 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.g2d.diagram.handler;
-
-
-/**
- * Defines the meaning of the relationship which must either remain internal
- * to a specific implementation or be published as API of an implementation
- * of this handler.
- *
- *
- * A relationship can also have an inverse relationship but doesn't
- * have to.
- *
- *
- *
- * Implementations are strongly encouraged to have a toString
- * that states the name of the relationship.
- *
- *
- * @author Tuukka Lehtonen
- */
-public interface Relationship {
-
- /**
- * @return null if there is no inverse relationship to this
- */
- Relationship getInverse();
-
- // Some standard relationships between elements
-
- /**
- * A compositional relationship between two elements.
- */
- Relationship CHILD_OF = new Relationship() {
- public Relationship getInverse() { return PARENT_OF; }
- @Override
- public String toString() { return "CHILD OF"; }
- };
- Relationship PARENT_OF = new Relationship() {
- public Relationship getInverse() { return CHILD_OF; }
- @Override
- public String toString() { return "PARENT OF"; }
- };
-
- /**
- * A relationship between two elements without any further semantics.
- */
- Relationship RELATED_TO = new Relationship() {
- public Relationship getInverse() { return RELATED_TO; }
- @Override
- public String toString() { return "RELATED_TO"; }
- };
-
+/*******************************************************************************
+ * 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.g2d.diagram.handler;
+
+
+/**
+ * Defines the meaning of the relationship which must either remain internal
+ * to a specific implementation or be published as API of an implementation
+ * of this handler.
+ *
+ *
+ * A relationship can also have an inverse relationship but doesn't
+ * have to.
+ *
+ *
+ *
+ * Implementations are strongly encouraged to have a toString
+ * that states the name of the relationship.
+ *
+ *
+ * @author Tuukka Lehtonen
+ */
+public interface Relationship {
+
+ /**
+ * @return null if there is no inverse relationship to this
+ */
+ Relationship getInverse();
+
+ // Some standard relationships between elements
+
+ /**
+ * A compositional relationship between two elements.
+ */
+ Relationship CHILD_OF = new Relationship() {
+ public Relationship getInverse() { return PARENT_OF; }
+ @Override
+ public String toString() { return "CHILD OF"; }
+ };
+ Relationship PARENT_OF = new Relationship() {
+ public Relationship getInverse() { return CHILD_OF; }
+ @Override
+ public String toString() { return "PARENT OF"; }
+ };
+
+ /**
+ * A relationship between two elements without any further semantics.
+ */
+ Relationship RELATED_TO = new Relationship() {
+ public Relationship getInverse() { return RELATED_TO; }
+ @Override
+ public String toString() { return "RELATED_TO"; }
+ };
+
}
\ No newline at end of file