summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-11-02 07:15:03 (EDT)
committerEike Stepper2007-11-02 07:15:03 (EDT)
commit22aae482775d7d576a25435487650142f3157659 (patch)
tree525fc6686e39928e7b448135bc4b2fe47496c1d5
parentcc259098e7940d2f0b0324a0803d3e9169b4009d (diff)
downloadcdo-22aae482775d7d576a25435487650142f3157659.zip
cdo-22aae482775d7d576a25435487650142f3157659.tar.gz
cdo-22aae482775d7d576a25435487650142f3157659.tar.bz2
[208529] Provide Migrator for existing GenModels
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208529
-rw-r--r--plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/migrator/actions/MigrateAction.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/migrator/actions/MigrateAction.java b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/migrator/actions/MigrateAction.java
index 5783459..9e8a3a0 100644
--- a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/migrator/actions/MigrateAction.java
+++ b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/migrator/actions/MigrateAction.java
@@ -34,6 +34,7 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.PlatformUI;
import java.util.Map;
@@ -153,14 +154,14 @@ public class MigrateAction implements IObjectActionDelegate
{
try
{
- final Shell shell = new Shell();
- Display display = shell.getDisplay();
+ final Display display = PlatformUI.getWorkbench().getDisplay();
display.syncExec(new Runnable()
{
public void run()
{
try
{
+ final Shell shell = new Shell(display);
if (error)
{
MessageDialog.openError(shell, "CDO Migrator", msg);