diff options
author | Thomas Schindl | 2011-03-15 14:06:58 +0000 |
---|---|---|
committer | Thomas Schindl | 2011-03-15 14:06:58 +0000 |
commit | e75f17acbe82c3262cd3ea1e7cc5915a746dae07 (patch) | |
tree | 3c13f11f880840b6e5addb819b94b197792f487b | |
parent | eeb202cc1fde885c5f6e6b898d4953b255450dd0 (diff) | |
download | org.eclipse.e4.tools-e75f17acbe82c3262cd3ea1e7cc5915a746dae07.tar.gz org.eclipse.e4.tools-e75f17acbe82c3262cd3ea1e7cc5915a746dae07.tar.xz org.eclipse.e4.tools-e75f17acbe82c3262cd3ea1e7cc5915a746dae07.zip |
Bug 340023 - [ModelTooling] Infinite SWT error dialog after closing a part with the live editor dialog up
-rw-r--r-- | bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java index 06b459be..b78af4ec 100644 --- a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java +++ b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java @@ -33,8 +33,7 @@ public class OpenLiveDialogHandler { } @Execute - public void run(@Named(IServiceConstants.ACTIVE_SHELL) Shell s, - IEclipseContext c, MApplication application, IStylingEngine engine) { + public void run(@Named(IServiceConstants.ACTIVE_SHELL) Shell s, MApplication application, IStylingEngine engine) { if (this.shell == null || this.shell.isDisposed()) { try { this.shell = new Shell(s,SWT.SHELL_TRIM); @@ -45,7 +44,8 @@ public class OpenLiveDialogHandler { layout.marginHeight=10; layout.marginWidth=10; this.shell.setLayout(layout); - final IEclipseContext childContext = c + + final IEclipseContext childContext = application.getContext() .createChild("EditorContext"); MemoryModelResource resource = new MemoryModelResource(application); childContext.set(IModelResource.class, resource); |