diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2010-05-26 05:36:55 +0400 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2010-05-26 05:36:55 +0400 |
commit | c4f2d11500e781da4ea6debd28de69d5d5786343 (patch) | |
tree | e23bf57c7a3075e479c2ad134da2d86ad429eeef /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution | |
parent | 523686955d6809bcc5518a97559ff1c3f4f81fc4 (diff) |
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/AddFileDialog.cs:
* src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebugCommands.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OpenFileDialog.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/FileSelectorDialog.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeTemplates/CodeTemplatePanel.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/AddinLoadErrorDialog.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/ISelectFileDialog.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/MonoExecutionParametersWidget.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/CustomExecutionModeManagerDialog.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/TextEditorDialog.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/SolutionItemConfigurationsPanel.cs:
More dialog placement cleanup.
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CustomCommandWidget.cs:
Use platform dialog.
svn path=/trunk/monodevelop/; revision=157922
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution')
3 files changed, 9 insertions, 19 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/CustomExecutionModeManagerDialog.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/CustomExecutionModeManagerDialog.cs index 63dd814273..5f611e9ff8 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/CustomExecutionModeManagerDialog.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/CustomExecutionModeManagerDialog.cs @@ -85,11 +85,10 @@ namespace MonoDevelop.Ide.Execution protected virtual void OnButtonAddClicked (object sender, System.EventArgs e) { - CustomExecutionModeDialog dlg = new CustomExecutionModeDialog (); - dlg.TransientFor = this; + var dlg = new CustomExecutionModeDialog (); try { dlg.Initialize (ctx, null, null); - if (dlg.Run () == (int) Gtk.ResponseType.Ok) { + if (MessageService.RunCustomDialog (dlg, this) == (int) Gtk.ResponseType.Ok) { ExecutionModeCommandService.SaveCustomCommand (ctx.Project, dlg.GetConfigurationData ()); Fill (); } @@ -110,11 +109,10 @@ namespace MonoDevelop.Ide.Execution protected virtual void OnButtonEditClicked (object sender, System.EventArgs e) { CustomExecutionMode mode = GetSelectedMode (); - CustomExecutionModeDialog dlg = new CustomExecutionModeDialog (); - dlg.TransientFor = this; + var dlg = new CustomExecutionModeDialog (); try { dlg.Initialize (ctx, null, mode); - if (dlg.Run () == (int) Gtk.ResponseType.Ok) { + if (MessageService.RunCustomDialog (dlg, this) == (int) Gtk.ResponseType.Ok) { CustomExecutionMode newMode = dlg.GetConfigurationData (); ExecutionModeCommandService.SaveCustomCommand (ctx.Project, newMode); if (newMode.Scope != mode.Scope) diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs index 038fb0a9ce..e60aa84d06 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs @@ -91,13 +91,8 @@ namespace MonoDevelop.Ide.Execution { CommandItem item = (CommandItem) data; if (item.Mode == null) { - CustomExecutionModeManagerDialog dlg = new CustomExecutionModeManagerDialog (item.Context); - dlg.TransientFor = IdeApp.Workbench.RootWindow; - try { - dlg.Run (); - } finally { - dlg.Destroy (); - } + var dlg = new CustomExecutionModeManagerDialog (item.Context); + MessageService.ShowCustomDialog (dlg); return null; } @@ -213,8 +208,7 @@ namespace MonoDevelop.Ide.Execution CustomExecutionModeDialog dlg = new CustomExecutionModeDialog (); try { dlg.Initialize (ctx, mode, currentMode); - dlg.TransientFor = IdeApp.Workbench.RootWindow; - if (dlg.Run () == (int) Gtk.ResponseType.Ok) { + if (MessageService.RunCustomDialog (dlg) == (int) Gtk.ResponseType.Ok) { cmode = dlg.GetConfigurationData (); cmode.Project = ctx.Project; if (dlg.Save) diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/MonoExecutionParametersWidget.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/MonoExecutionParametersWidget.cs index 4c4f9d86a3..dbb2c446cf 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/MonoExecutionParametersWidget.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/MonoExecutionParametersWidget.cs @@ -61,10 +61,8 @@ namespace MonoDevelop.Ide.Execution protected virtual void OnButtonPreviewClicked (object sender, System.EventArgs e) { propertyGrid.CommitPendingChanges (); - MonoExecutionParametersPreview dlg = new MonoExecutionParametersPreview (config); - dlg.TransientFor = this.Toplevel as Gtk.Window; - dlg.Run (); - dlg.Destroy (); + var dlg = new MonoExecutionParametersPreview (config); + MessageService.ShowCustomDialog (dlg, this.Toplevel as Gtk.Window); } protected virtual void OnButtonResetClicked (object sender, System.EventArgs e) |