Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-05-18 19:46:32 -0400
committeratikhomirov2007-05-18 19:46:32 -0400
commit812a406b8cf6fcb8246246ae0d7da534d90c70fa (patch)
tree21b8a201e0e187ec4aab6ea7da11d75e21b73da4
parent991f2c27c1f84663db79fe0286a7fb962b6771a5 (diff)
downloadorg.eclipse.gmf-tooling-812a406b8cf6fcb8246246ae0d7da534d90c70fa.tar.gz
org.eclipse.gmf-tooling-812a406b8cf6fcb8246246ae0d7da534d90c70fa.tar.xz
org.eclipse.gmf-tooling-812a406b8cf6fcb8246246ae0d7da534d90c70fa.zip
suffice to check if model was loaded
-rw-r--r--plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/TransformToGenModelOperation.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/TransformToGenModelOperation.java b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/TransformToGenModelOperation.java
index 1eff4deee..fd1275740 100644
--- a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/TransformToGenModelOperation.java
+++ b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/TransformToGenModelOperation.java
@@ -134,9 +134,8 @@ public class TransformToGenModelOperation {
monitor.beginTask("", 100); //$NON-NLS-1$
subTask(monitor, 0, Messages.TransformToGenModelOperation_task_load, cancelMessage);
ModelLoadHelper loadHelper = new ModelLoadHelper(rs, uri);
- status = loadHelper.getStatus();
- if (!status.isOK()) {
- throw new CoreException(status);
+ if (!loadHelper.isOK()) {
+ throw new CoreException(loadHelper.getStatus());
}
subTask(monitor, 20, Messages.TransformToGenModelOperation_task_validate, cancelMessage);
EObject root = loadHelper.getContentsRoot();

Back to the top