Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-01-14 13:54:23 -0500
committerashatalin2009-01-14 13:54:23 -0500
commitcafd45f82c971415f83f84bdf576856476ce64c1 (patch)
treecc07e849d90ad1f1154f8af85efbce0ea48f1d60
parent24b6f8c3b1f33a45a0942bbc18df97fd3bb36d35 (diff)
downloadorg.eclipse.gmf-tooling-cafd45f82c971415f83f84bdf576856476ce64c1.tar.gz
org.eclipse.gmf-tooling-cafd45f82c971415f83f84bdf576856476ce64c1.tar.xz
org.eclipse.gmf-tooling-cafd45f82c971415f83f84bdf576856476ce64c1.zip
Throwing specific exception in case of ambiguous xpand definitions to report this problem as compilation error (to the ProblemsView) instead of runtime .log file.
-rw-r--r--plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/XpandTextEmitter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/XpandTextEmitter.java b/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/XpandTextEmitter.java
index be9ec0d6d..e3a1fce36 100644
--- a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/XpandTextEmitter.java
+++ b/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/XpandTextEmitter.java
@@ -23,6 +23,7 @@ import org.eclipse.gmf.common.codegen.ImportAssistant;
import org.eclipse.gmf.internal.xpand.BufferOutput;
import org.eclipse.gmf.internal.xpand.ResourceManager;
import org.eclipse.gmf.internal.xpand.XpandFacade;
+import org.eclipse.gmf.internal.xpand.model.AmbiguousDefinitionException;
import org.eclipse.gmf.internal.xpand.model.EvaluationException;
import org.eclipse.gmf.internal.xpand.model.ExecutionContext;
import org.eclipse.gmf.internal.xpand.model.Variable;
@@ -67,6 +68,8 @@ public class XpandTextEmitter implements TextEmitter {
return result.toString();
} catch (EvaluationException ex) {
throw new InvocationTargetException(ex);
+ } catch (AmbiguousDefinitionException e) {
+ throw new InvocationTargetException(e);
}
}

Back to the top