-/*******************************************************************************\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.ui.utils;\r
-\r
-import java.util.Collection;\r
-\r
-/**\r
- * @author Antti Villberg\r
- * @author Marko Luukkainen\r
- * @Deprecated use org.simantics.utils.ui.AdaptionUtils\r
- */\r
-@Deprecated\r
-public class AdaptionUtils {\r
-\r
- public static <T> T adaptToSingle(Object o, Class<T> clazz) {\r
- return org.simantics.utils.ui.AdaptionUtils.adaptToSingle(o, clazz);\r
- }\r
-\r
- /**\r
- * Adapts given object to collection of objects of given class.\r
- * @param o\r
- * @param clazz\r
- * @return collection of objects of given class. \r
- */\r
- public static <T> Collection<T> adaptToCollection(Object o, Class<T> clazz) {\r
- return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(o, clazz);\r
- }\r
-\r
- public static <T> Collection<T> adaptToCollection(Object arr[], Class<T> clazz) {\r
- return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(arr, clazz);\r
- }\r
-\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.ui.utils;
+
+import java.util.Collection;
+
+/**
+ * @author Antti Villberg
+ * @author Marko Luukkainen
+ * @Deprecated use org.simantics.utils.ui.AdaptionUtils
+ */
+@Deprecated
+public class AdaptionUtils {
+
+ public static <T> T adaptToSingle(Object o, Class<T> clazz) {
+ return org.simantics.utils.ui.AdaptionUtils.adaptToSingle(o, clazz);
+ }
+
+ /**
+ * Adapts given object to collection of objects of given class.
+ * @param o
+ * @param clazz
+ * @return collection of objects of given class.
+ */
+ public static <T> Collection<T> adaptToCollection(Object o, Class<T> clazz) {
+ return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(o, clazz);
+ }
+
+ public static <T> Collection<T> adaptToCollection(Object arr[], Class<T> clazz) {
+ return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(arr, clazz);
+ }
+
+}