X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.ui%2Fsrc%2Forg%2Fsimantics%2Fui%2Futils%2FAdaptionUtils.java;fp=bundles%2Forg.simantics.ui%2Fsrc%2Forg%2Fsimantics%2Fui%2Futils%2FAdaptionUtils.java;h=878ce0d267fae6978f2da6455f9defb0d64a464c;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=724e248aa836c7ca355a01b7fe36473d821a0c83;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.ui/src/org/simantics/ui/utils/AdaptionUtils.java b/bundles/org.simantics.ui/src/org/simantics/ui/utils/AdaptionUtils.java index 724e248aa..878ce0d26 100644 --- a/bundles/org.simantics.ui/src/org/simantics/ui/utils/AdaptionUtils.java +++ b/bundles/org.simantics.ui/src/org/simantics/ui/utils/AdaptionUtils.java @@ -1,42 +1,42 @@ -/******************************************************************************* - * 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 adaptToSingle(Object o, Class 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 Collection adaptToCollection(Object o, Class clazz) { - return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(o, clazz); - } - - public static Collection adaptToCollection(Object arr[], Class clazz) { - return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(arr, clazz); - } - -} +/******************************************************************************* + * 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 adaptToSingle(Object o, Class 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 Collection adaptToCollection(Object o, Class clazz) { + return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(o, clazz); + } + + public static Collection adaptToCollection(Object arr[], Class clazz) { + return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(arr, clazz); + } + +}