Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-03-15 15:44:17 +0000
committeratikhomirov2006-03-15 15:44:17 +0000
commit891cd3b8a865d7d5a22e388a0a29757473ba04fb (patch)
tree160c5af90720a1859df8156a44fe4a53569d8b2d /plugins/org.eclipse.gmf.codegen.ui
parent9076eff50ade466df049175328eee41ecfbbaf0e (diff)
downloadorg.eclipse.gmf-tooling-891cd3b8a865d7d5a22e388a0a29757473ba04fb.tar.gz
org.eclipse.gmf-tooling-891cd3b8a865d7d5a22e388a0a29757473ba04fb.tar.xz
org.eclipse.gmf-tooling-891cd3b8a865d7d5a22e388a0a29757473ba04fb.zip
allow to omit reconcile step
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.ui')
-rw-r--r--plugins/org.eclipse.gmf.codegen.ui/.options1
-rw-r--r--plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGenUIPlugin.java4
-rw-r--r--plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/TransformToGenModel.java4
3 files changed, 8 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.ui/.options b/plugins/org.eclipse.gmf.codegen.ui/.options
new file mode 100644
index 000000000..d10b48c27
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.ui/.options
@@ -0,0 +1 @@
+org.eclipse.gmf.codegen.ui/reconcile=true
diff --git a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGenUIPlugin.java b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGenUIPlugin.java
index 8f38506d9..d4b591919 100644
--- a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGenUIPlugin.java
+++ b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGenUIPlugin.java
@@ -88,4 +88,8 @@ public class CodeGenUIPlugin extends AbstractUIPlugin {
return CodeGenUIPlugin.getBundleString(bundleStringKey, new Object[] { status.getMessage() });
}
}
+
+ public static boolean needsReconcile() {
+ return !Boolean.FALSE.toString().equals(Platform.getDebugOption(getPluginID() + "/reconcile"));
+ }
}
diff --git a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/TransformToGenModel.java b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/TransformToGenModel.java
index 96234cb62..ed9eb5193 100644
--- a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/TransformToGenModel.java
+++ b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/TransformToGenModel.java
@@ -142,7 +142,9 @@ public class TransformToGenModel implements IObjectActionDelegate {
return Status.CANCEL_STATUS;
}
- reconcile(genEditor);
+ if (CodeGenUIPlugin.needsReconcile()) {
+ reconcile(genEditor);
+ }
monitor.worked(1);
if (monitor.isCanceled()) {
return Status.CANCEL_STATUS;

Back to the top