X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.services%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fservices%2Fadaption%2Freflection%2FThisResource2.java;h=bacf3adee83f92185c46572121f751e0a8e67de7;hp=7f61c54a04cf52e9c77717d3c573d0bdb114a5e6;hb=bf09c2c1f5f32e5c2b2817a9d9d2c5ff2c21cee1;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ThisResource2.java b/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ThisResource2.java index 7f61c54a0..bacf3adee 100644 --- a/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ThisResource2.java +++ b/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ThisResource2.java @@ -1,29 +1,31 @@ -/******************************************************************************* - * 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.db.services.adaption.reflection; - -import org.simantics.db.Resource; -import org.simantics.db.ReadGraph; - -public class ThisResource2 implements IDynamicAdapter2 { - - @Override - public Class getType() { - return Resource.class; - } - - @Override - public Resource adapt(ReadGraph g, Resource r) { - return 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.db.services.adaption.reflection; + +import org.simantics.db.Resource; +import org.simantics.db.ReadGraph; + +public class ThisResource2 implements IDynamicAdapter2 { + + public static IDynamicAdapter2 INSTANCE = new ThisResource2(); + + @Override + public Class getType() { + return Resource.class; + } + + @Override + public Resource adapt(ReadGraph g, Resource r) { + return r; + } + +}