diff options
author | sboyko | 2009-03-14 13:38:48 +0000 |
---|---|---|
committer | sboyko | 2009-03-14 13:38:48 +0000 |
commit | 698de7708a5540d95a087ea831bb579990c2bbf6 (patch) | |
tree | 08a31be2adab84e149ff30b1ccaa9638899a23b2 /plugins/org.eclipse.m2m.qvt.oml.runtime/src/org/eclipse/m2m/internal/qvt/oml/runtime/project/WorkspaceQvtModule.java | |
parent | f8a7527b06519ad987432773965d796fbaaca8c8 (diff) | |
download | org.eclipse.qvto-698de7708a5540d95a087ea831bb579990c2bbf6.tar.gz org.eclipse.qvto-698de7708a5540d95a087ea831bb579990c2bbf6.tar.xz org.eclipse.qvto-698de7708a5540d95a087ea831bb579990c2bbf6.zip |
[239644] QvtOperationalResource should load .qvto scrips even with errors
Diffstat (limited to 'plugins/org.eclipse.m2m.qvt.oml.runtime/src/org/eclipse/m2m/internal/qvt/oml/runtime/project/WorkspaceQvtModule.java')
-rw-r--r-- | plugins/org.eclipse.m2m.qvt.oml.runtime/src/org/eclipse/m2m/internal/qvt/oml/runtime/project/WorkspaceQvtModule.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/org.eclipse.m2m.qvt.oml.runtime/src/org/eclipse/m2m/internal/qvt/oml/runtime/project/WorkspaceQvtModule.java b/plugins/org.eclipse.m2m.qvt.oml.runtime/src/org/eclipse/m2m/internal/qvt/oml/runtime/project/WorkspaceQvtModule.java index e34fb26f4..6f4901fda 100644 --- a/plugins/org.eclipse.m2m.qvt.oml.runtime/src/org/eclipse/m2m/internal/qvt/oml/runtime/project/WorkspaceQvtModule.java +++ b/plugins/org.eclipse.m2m.qvt.oml.runtime/src/org/eclipse/m2m/internal/qvt/oml/runtime/project/WorkspaceQvtModule.java @@ -16,6 +16,7 @@ import org.eclipse.core.resources.IFile; import org.eclipse.m2m.internal.qvt.oml.common.MdaException; import org.eclipse.m2m.internal.qvt.oml.compiler.CompiledUnit; import org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler; +import org.eclipse.m2m.internal.qvt.oml.compiler.QvtCompilerOptions; import org.eclipse.m2m.internal.qvt.oml.expressions.Module; import org.eclipse.m2m.internal.qvt.oml.runtime.project.QvtCompilerFacade.CompilationResult; @@ -33,14 +34,19 @@ public class WorkspaceQvtModule extends QvtModule { } @Override - public Module getModule(boolean isCheckErrors) throws MdaException { + public Module getModule() throws MdaException { if(myModule == null) { - CompilationResult result = QvtCompilerFacade.getCompiledModule(myTransformationFile, getQvtCompilerOptions(), null); + QvtCompilerOptions options = getQvtCompilerOptions(); + if (options == null) { + options = new QvtCompilerOptions(); + } + + CompilationResult result = QvtCompilerFacade.getCompiledModule(myTransformationFile, options, null); myUnit = result.getCompiledModule(); // QvtEngine engine = QvtEngine.getInstance(myTransformationFile); // myUnit = engine.compileUnit(new EclipseFile(myTransformationFile), getQvtCompilerOptions(), null); - if (isCheckErrors) { + if (!options.isModuleWithErrorAllowed()) { checkModuleErrors(myUnit); } @@ -58,11 +64,6 @@ public class WorkspaceQvtModule extends QvtModule { return myUnit; } - @Override - public Module getModule() throws MdaException { - return getModule(true); - } - @Override public QVTOCompiler getCompiler() throws MdaException { getModule(); |