Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracuccuru2011-05-19 04:46:25 -0400
committeracuccuru2011-05-19 04:46:25 -0400
commit06bbc6cc4a84f137ca2023a3097163c9066e04cc (patch)
tree741b46c00af8176234489d70329f24eb72401ad0 /extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext
parent78283896c7c368be566b8a1dd5f6441b8eaed544 (diff)
downloadorg.eclipse.papyrus-06bbc6cc4a84f137ca2023a3097163c9066e04cc.tar.gz
org.eclipse.papyrus-06bbc6cc4a84f137ca2023a3097163c9066e04cc.tar.xz
org.eclipse.papyrus-06bbc6cc4a84f137ca2023a3097163c9066e04cc.zip
First commit
Diffstat (limited to 'extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext')
-rw-r--r--extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext/src/org/eclipse/papyrus/operation/editor/xtext/utils/AlfParsingUtil.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext/src/org/eclipse/papyrus/operation/editor/xtext/utils/AlfParsingUtil.java b/extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext/src/org/eclipse/papyrus/operation/editor/xtext/utils/AlfParsingUtil.java
index 159adf7e11b..7f476046db1 100644
--- a/extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext/src/org/eclipse/papyrus/operation/editor/xtext/utils/AlfParsingUtil.java
+++ b/extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext/src/org/eclipse/papyrus/operation/editor/xtext/utils/AlfParsingUtil.java
@@ -55,12 +55,13 @@ public class AlfParsingUtil {
XtextResource xtextResource = (XtextResource)resourceFactory.createResource(
URI.createURI(SYNTHETIC_SCHEME + ":/" + grammarAccess.getGrammar().getName() + ".operation"));
-
+
try {
xtextResource.load(new StringInputStream(textualRepresentation, xtextResource.getEncoding()), Collections.emptyMap());
} catch (Exception e) {
throw new RuntimeException(e);
}
+
return xtextResource;
}
@@ -83,7 +84,7 @@ public class AlfParsingUtil {
}
XtextResource xtextResource = parseAlf.getXtextResource(actualRepresentation);
-
+
System.out.println("///////////////////////// Test begin") ;
// Display parsing errors

Back to the top