Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Charles David2017-04-11 09:49:24 +0000
committerPierre-Charles David2017-04-11 12:35:31 +0000
commit4e7c0bd36e40bcde83c65ceaca4979426ce177fa (patch)
treeb15673b6087f84f7743323c58de51a0fb5aac451
parente6b04b9c506e229cf86701ae036c2178e845ff06 (diff)
downloadorg.eclipse.sirius-4e7c0bd36e40bcde83c65ceaca4979426ce177fa.tar.gz
org.eclipse.sirius-4e7c0bd36e40bcde83c65ceaca4979426ce177fa.tar.xz
org.eclipse.sirius-4e7c0bd36e40bcde83c65ceaca4979426ce177fa.zip
[466412] Declare the new variables for completion/validation
Bug: 466412 Change-Id: I4eb30af3d6aee930770564fe1e6adc5e9344991e Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.table/src/org/eclipse/sirius/table/business/internal/dialect/description/TableInterpretedExpressionQuery.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.sirius.table/src/org/eclipse/sirius/table/business/internal/dialect/description/TableInterpretedExpressionQuery.java b/plugins/org.eclipse.sirius.table/src/org/eclipse/sirius/table/business/internal/dialect/description/TableInterpretedExpressionQuery.java
index c797a78247..6f59808863 100644
--- a/plugins/org.eclipse.sirius.table/src/org/eclipse/sirius/table/business/internal/dialect/description/TableInterpretedExpressionQuery.java
+++ b/plugins/org.eclipse.sirius.table/src/org/eclipse/sirius/table/business/internal/dialect/description/TableInterpretedExpressionQuery.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2015 THALES GLOBAL SERVICES.
+ * Copyright (c) 2011, 2017 THALES GLOBAL SERVICES and others.
* 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
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.sirius.table.business.internal.dialect.description;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
@@ -116,6 +117,8 @@ public class TableInterpretedExpressionQuery extends AbstractInterpretedExpressi
IntersectionMapping interMapping = (IntersectionMapping) tool.eContainer();
declareLineAndColumnSemantic(availableVariables, interMapping);
}
+ availableVariables.put(IInterpreterSiriusTableVariables.LINE, VariableType.fromEClassifiers(Arrays.asList(TablePackage.Literals.DLINE)));
+ availableVariables.put(IInterpreterSiriusTableVariables.TABLE, VariableType.fromEClassifiers(Arrays.asList(TablePackage.Literals.DTABLE)));
} else if (toolContext instanceof CreateLineTool) {
CreateLineTool tool = (CreateLineTool) toolContext;

Back to the top