1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 02:15:31 +02:00

bug 325898: "Manage Configurations" dialog opens on an incorrect parent shell

Patch from Baltasar Belyavsky
This commit is contained in:
Andrew Gvozdev 2010-09-23 21:29:00 +00:00
parent e2a392976f
commit 39f89b5415

View file

@ -18,6 +18,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
@ -53,7 +54,7 @@ public class ManageConfigRunner implements IConfigManager {
if (!canManage(obs))
return false;
ManageConfigDialog d = new ManageConfigDialog(CUIPlugin.getActiveWorkbenchShell(),
ManageConfigDialog d = new ManageConfigDialog(Display.getDefault().getActiveShell(),
obs[0].getName()+ ": " + MANAGE_TITLE, obs[0]); //$NON-NLS-1$
boolean result = false;
if (d.open() == Window.OK) {