aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormclay2009-03-31 16:04:09 (EDT)
committersefftinge2009-03-31 16:04:09 (EDT)
commitbcc5ee7c8916a5e9f10ab2ebaed945e20a75b4a2 (patch)
treec13dc6c9d90907c79073a6b66969afcafa3eea25
parent3247f76f08a18fadd438076caa879efb4c6901be (diff)
downloadorg.eclipse.xtext-bcc5ee7c8916a5e9f10ab2ebaed945e20a75b4a2.zip
org.eclipse.xtext-bcc5ee7c8916a5e9f10ab2ebaed945e20a75b4a2.tar.gz
org.eclipse.xtext-bcc5ee7c8916a5e9f10ab2ebaed945e20a75b4a2.tar.bz2
add IValueConverter for STRING_OR_QID
-rw-r--r--examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/EcoreDslRuntimeModule.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/EcoreDslRuntimeModule.java b/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/EcoreDslRuntimeModule.java
index f4ccc54..67ae147 100644
--- a/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/EcoreDslRuntimeModule.java
+++ b/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/EcoreDslRuntimeModule.java
@@ -67,6 +67,11 @@ public class EcoreDslRuntimeModule extends AbstractEcoreDslRuntimeModule {
};
}
+ @ValueConverter(rule = "STRING_OR_QID")
+ public IValueConverter<String> stringOrQid() {
+ return STRING();
+ }
+
@ValueConverter(rule = "Bag")
public IValueConverter<Boolean> bag() {
return negatedBooleanConverter("bag");