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%2FGraphObject2.java;h=8a2db578f6488debda2a66fa3d1719c6772cca10;hp=4dbb338ad1b0e025cb556b0e4e009e1920d27271;hb=bf09c2c1f5f32e5c2b2817a9d9d2c5ff2c21cee1;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/GraphObject2.java b/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/GraphObject2.java index 4dbb338ad..8a2db578f 100644 --- a/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/GraphObject2.java +++ b/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/GraphObject2.java @@ -1,28 +1,30 @@ -/******************************************************************************* - * 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.ReadGraph; - -public class GraphObject2 implements IDynamicAdapter2 { - - @Override - public Class getType() { - return ReadGraph.class; - } - - @Override - public ReadGraph adapt(ReadGraph g, org.simantics.db.Resource r) { - return g; - } - -} +/******************************************************************************* + * 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.ReadGraph; + +public class GraphObject2 implements IDynamicAdapter2 { + + public static final IDynamicAdapter2 INSTANCE = new GraphObject2(); + + @Override + public Class getType() { + return ReadGraph.class; + } + + @Override + public ReadGraph adapt(ReadGraph g, org.simantics.db.Resource r) { + return g; + } + +}