Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java')
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java
deleted file mode 100644
index 1c7dcc5e103..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.queries;
-
-import org.eclipse.emf.ecore.EStructuralFeature.Setting;
-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.emf.facet.widgets.table.metamodel.v0_2_0.table.Table;
-import org.eclipse.emf.facet.widgets.table.metamodel.v0_2_0.table.TablePackage;
-import org.eclipse.papyrus.views.modelexplorer.NavigatorUtils;
-import org.eclipse.uml2.uml.Element;
-
-import com.google.common.base.Predicate;
-
-/** Returns true if the element contains a Table */
-//FIXME this query is declared using Element in the querySet -> change into EObject when the EMF-Facet bug will be corrected 365744
-//FIXME : remove the dependencies on the ModelExplorer
-public class IsTableContainer extends AbstractEditorContainerQuery implements IJavaModelQuery<Element, Boolean> {
-
- /**
- * {@inheritDoc}
- */
- public Boolean evaluate(final Element context, final ParameterValueList parameterValues) throws ModelQueryExecutionException {
- final Predicate<Setting> p = new Predicate<Setting>() {
-
- public boolean apply(final Setting arg0) {
- return arg0.getEObject() instanceof Table && arg0.getEStructuralFeature() == TablePackage.Literals.TABLE__CONTEXT;
- }
- };
- final boolean result = NavigatorUtils.find(context, p);
- return NavigatorUtils.find(context, p);
- }
-}

Back to the top