diff options
Diffstat (limited to 'deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java')
-rw-r--r-- | deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java new file mode 100644 index 00000000000..e2eb1e215df --- /dev/null +++ b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java @@ -0,0 +1,14 @@ +package org.eclipse.papyrus.infra.table.efacet.queries; + +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.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable; + +/** Return the name for the table */ +public class GetTableName implements IJavaModelQuery<PapyrusTable, String> { + + public String evaluate(final PapyrusTable context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + return context.getName() + " (new)"; + } +} |