X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.g3d.ontology%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fontology%2FG3D.java;h=ee58a301ce154945c8cae01c5c674c9e593b1474;hb=b79406dcc167890ad62d43f0aa1baf1ce25b5e47;hp=08c6a5daf06e1a8b131ae624857b81e24a04794f;hpb=87b3241ec277ba3d8e414b26186a032c9cdcaeed;p=simantics%2F3d.git diff --git a/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java b/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java index 08c6a5da..ee58a301 100644 --- a/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java +++ b/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java @@ -1,5 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2012, 2013 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.g3d.ontology; +import org.simantics.db.RequestProcessor; import org.simantics.db.Resource; import org.simantics.db.ReadGraph; import org.simantics.db.request.Read; @@ -123,7 +135,7 @@ public class G3D { return ret; } - public static G3D getInstance(Session session) throws DatabaseException { + public static G3D getInstance(RequestProcessor session) throws DatabaseException { G3D ret = session.peekService(G3D.class); if(ret == null) { ret = session.syncRequest(new Read() {