X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph.profile%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fprofile%2Frequest%2FProfileActiveEntryResources.java;fp=bundles%2Forg.simantics.scenegraph.profile%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fprofile%2Frequest%2FProfileActiveEntryResources.java;h=93bab97c411f52001891cb51e8328802868a0233;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=052861a2bc06399479733f81d503aaef0c072b0e;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/request/ProfileActiveEntryResources.java b/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/request/ProfileActiveEntryResources.java index 052861a2b..93bab97c4 100644 --- a/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/request/ProfileActiveEntryResources.java +++ b/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/request/ProfileActiveEntryResources.java @@ -1,43 +1,43 @@ -/******************************************************************************* - * 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.scenegraph.profile.request; - -import java.util.Collection; - -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; -import org.simantics.db.exception.DatabaseException; -import org.simantics.simulation.ontology.SimulationResource; - -/** - * @author Antti Villberg - */ -public class ProfileActiveEntryResources extends ProfileEntryResources { - - SimulationResource SIMU; - - public ProfileActiveEntryResources(Resource profile, Resource entry) { - super(profile, entry); - } - - @Override - protected boolean test(ReadGraph graph, Resource activeProfile, Resource entry) throws DatabaseException { - return graph.hasStatement(activeProfile, SIMU.IsActive, entry); - } - - @Override - public Collection perform(ReadGraph graph) throws DatabaseException { - this.SIMU = SimulationResource.getInstance(graph); - return super.perform(graph); - } - -} +/******************************************************************************* + * 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.scenegraph.profile.request; + +import java.util.Collection; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.simulation.ontology.SimulationResource; + +/** + * @author Antti Villberg + */ +public class ProfileActiveEntryResources extends ProfileEntryResources { + + SimulationResource SIMU; + + public ProfileActiveEntryResources(Resource profile, Resource entry) { + super(profile, entry); + } + + @Override + protected boolean test(ReadGraph graph, Resource activeProfile, Resource entry) throws DatabaseException { + return graph.hasStatement(activeProfile, SIMU.IsActive, entry); + } + + @Override + public Collection perform(ReadGraph graph) throws DatabaseException { + this.SIMU = SimulationResource.getInstance(graph); + return super.perform(graph); + } + +}