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:
parent
e2a392976f
commit
39f89b5415
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue