]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Adapter.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / Adapter.java
index 3f5e50274226a884343724895b618a0a645b38db..8533090072951beb5cbd556107dd0722c7972d38 100644 (file)
@@ -1,40 +1,40 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.g2d.element.handler;\r
-\r
-import org.simantics.g2d.element.ElementClass;\r
-import org.simantics.g2d.element.ElementUtils;\r
-import org.simantics.g2d.element.handler.impl.StaticObjectAdapter;\r
-\r
-/**\r
- * This handler makes it possible to add adapters to different objects into an\r
- * {@link ElementClass}. An element can have multiple Adapter handlers. For\r
- * adaption, they are processed in the order of definition within the\r
- * {@link ElementClass} and adaption should return the first\r
- * <code>non-null</code> result returned by the any Adapter implementation.\r
- * \r
- * <p>\r
- * See {@link ElementUtils#adapt(org.simantics.g2d.element.IElement, Class)} for\r
- * a utility that implements the above logic.\r
- * </p>\r
- * \r
- * @author Tuukka Lehtonen\r
- * @see StaticObjectAdapter\r
- */\r
-public interface Adapter extends ElementHandler {\r
-\r
-    /**\r
-     * @return\r
-     */\r
-    <T> T adapt(Class<T> toClass);\r
-\r
+/*******************************************************************************
+ * 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.element.handler;
+
+import org.simantics.g2d.element.ElementClass;
+import org.simantics.g2d.element.ElementUtils;
+import org.simantics.g2d.element.handler.impl.StaticObjectAdapter;
+
+/**
+ * This handler makes it possible to add adapters to different objects into an
+ * {@link ElementClass}. An element can have multiple Adapter handlers. For
+ * adaption, they are processed in the order of definition within the
+ * {@link ElementClass} and adaption should return the first
+ * <code>non-null</code> result returned by the any Adapter implementation.
+ * 
+ * <p>
+ * See {@link ElementUtils#adapt(org.simantics.g2d.element.IElement, Class)} for
+ * a utility that implements the above logic.
+ * </p>
+ * 
+ * @author Tuukka Lehtonen
+ * @see StaticObjectAdapter
+ */
+public interface Adapter extends ElementHandler {
+
+    /**
+     * @return
+     */
+    <T> T adapt(Class<T> toClass);
+
 }
\ No newline at end of file