diff options
author | Dani Megert | 2011-02-01 09:18:46 +0000 |
---|---|---|
committer | Dani Megert | 2011-02-01 09:18:46 +0000 |
commit | 840134e450339f24c2b8ce6b799e90ccd17c5f79 (patch) | |
tree | e00103f4cac971a5a88404174bf37e37e5d17823 /org.eclipse.ui.editors | |
parent | a47e59bded4c5db20f0ca58cff387c4026c8f7ca (diff) | |
download | eclipse.platform.text-840134e450339f24c2b8ce6b799e90ccd17c5f79.tar.gz eclipse.platform.text-840134e450339f24c2b8ce6b799e90ccd17c5f79.tar.xz eclipse.platform.text-840134e450339f24c2b8ce6b799e90ccd17c5f79.zip |
Fixed bug 335303: [EditorMgmt] Focus lost after canceling out of the save dialog prompt of an untitled text editor closed by the editor selection dialogv20110201-0800
Diffstat (limited to 'org.eclipse.ui.editors')
-rw-r--r-- | org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java index e7974d4bace..4e5ae2cf28b 100644 --- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java +++ b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2010 IBM Corporation and others. + * Copyright (c) 2000, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -1462,7 +1462,7 @@ public abstract class AbstractDecoratedTextEditor extends StatusTextEditor { * @since 3.2 */ protected void performSaveAs(IProgressMonitor progressMonitor) { - Shell shell= getSite().getShell(); + Shell shell= PlatformUI.getWorkbench().getModalDialogShellProvider().getShell(); final IEditorInput input= getEditorInput(); IDocumentProvider provider= getDocumentProvider(); |