Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2016-09-17 19:04:50 +0000
committerEd Willink2016-09-19 11:20:09 +0000
commitf8f64a1b8a404bd5252092fffca76afc188c35b9 (patch)
treefff845a066ccd3c286296e5567eb2401a6ed5bf9 /plugins
parent0f0e07f54643ea58c2983e3d2b0e05665d038696 (diff)
downloadorg.eclipse.qvtd-f8f64a1b8a404bd5252092fffca76afc188c35b9.tar.gz
org.eclipse.qvtd-f8f64a1b8a404bd5252092fffca76afc188c35b9.tar.xz
org.eclipse.qvtd-f8f64a1b8a404bd5252092fffca76afc188c35b9.zip
[exe2016] Fix leakage
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/BasicQVTiExecutor.java3
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiExecutor.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/BasicQVTiExecutor.java b/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/BasicQVTiExecutor.java
index 772009b17..d3b06b921 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/BasicQVTiExecutor.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/BasicQVTiExecutor.java
@@ -93,12 +93,13 @@ public class BasicQVTiExecutor extends AbstractExecutor implements QVTiExecutor
}
@Override
- public void createModel(@NonNull String name, @NonNull URI modelURI, @Nullable String contentType) {
+ public @Nullable Resource createModel(@NonNull String name, @NonNull URI modelURI, @Nullable String contentType) {
TypedModel typedModel = getTypedModel(name);
Resource resource = environmentFactory.getResourceSet().createResource(modelURI, contentType);
if (resource != null) {
getModelManager().addModel(typedModel, resource);
}
+ return resource;
}
@Override
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiExecutor.java b/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiExecutor.java
index d58ea4ca0..a1d5cca4b 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiExecutor.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiExecutor.java
@@ -25,7 +25,7 @@ import org.eclipse.qvtd.pivot.qvtimperative.SetStatement;
public interface QVTiExecutor extends ExecutorInternal
{
- void createModel(@NonNull String outName, @NonNull URI outURI, @Nullable String contentType);
+ @Nullable Resource createModel(@NonNull String outName, @NonNull URI outURI, @Nullable String contentType);
Boolean execute();
@Override
@NonNull QVTiEvaluationEnvironment getEvaluationEnvironment();

Back to the top