/** * Copyright (c) 2011 Atos. * * 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: * Atos - Initial API and implementation * */ package org.eclipse.papyrus.uml.modelexplorer.queries; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; import org.eclipse.gmf.runtime.notation.Diagram; /** * Return tru eif the element is a diagram * FIXME : delete this class when the bug EMF-Facet 365744 will be corrected! * * @Deprecated : use oep.infra.gmfdiag.modelexplorer#queries.IsDiagram */ @Deprecated public class IsDiagram implements IJavaModelQuery<EObject, Boolean> { public Boolean evaluate(final EObject context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { return context instanceof Diagram; } }