~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.Autotools/Commands.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-07-05 13:00:05 UTC
  • mfrom: (1.2.8 upstream) (1.3.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100705130005-d6hp4k5gcn1xkj8c
Tags: 2.4+dfsg-1ubuntu1
* debian/patches/remove_support_for_moonlight.patch,
  debian/patches/dont_add_moonlight_to_core_addins.patch,
  debian/control:
  + Enable support for Moonlight
* debian/rules:
  + Ensure Moonlight addin isn't shipped in main MonoDevelop package by
    mistake

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
*/
20
20
 
21
21
using System;
22
 
using System.Collections;
23
 
using System.IO;
24
22
using MonoDevelop.Core;
25
23
 
26
 
using MonoDevelop.Core.Gui;
27
 
using MonoDevelop.Core.Gui.ProgressMonitoring;
28
 
 
29
24
using MonoDevelop.Projects;
30
 
using MonoDevelop.Components;
31
25
using MonoDevelop.Components.Commands;
32
 
using MonoDevelop.Ide.Gui;
33
 
using MonoDevelop.Ide.Gui.Pads;
34
 
using MonoDevelop.Ide.Gui.Content;
35
26
using MonoDevelop.Deployment;
36
27
using MonoDevelop.Ide.Gui.Components;
37
 
 
38
 
using Gtk;
 
28
using MonoDevelop.Ide;
39
29
 
40
30
namespace MonoDevelop.Autotools
41
31
{
84
74
 
85
75
                        GenerateMakefilesDialog dialog = new GenerateMakefilesDialog (solution);
86
76
                        try {
87
 
                                if (dialog.Run () != (int) Gtk.ResponseType.Ok)
 
77
                                if (MessageService.RunCustomDialog (dialog) != (int) Gtk.ResponseType.Ok)
88
78
                                        return;
89
79
 
90
80
                                SolutionDeployer deployer = new SolutionDeployer (dialog.GenerateAutotools);
91
81
                                if ( deployer.HasGeneratedFiles ( solution ) )
92
82
                                {
93
83
                                        string msg = GettextCatalog.GetString ( "{0} already exist for this solution.  Would you like to overwrite them?", dialog.GenerateAutotools ? "Autotools files" : "Makefiles" );
94
 
                                        if (MonoDevelop.Core.Gui.MessageService.AskQuestion (msg, AlertButton.Cancel, AlertButton.OverwriteFile) != AlertButton.OverwriteFile)
 
84
                                        if (MonoDevelop.Ide.MessageService.AskQuestion (msg, AlertButton.Cancel, AlertButton.OverwriteFile) != AlertButton.OverwriteFile)
95
85
                                                return;
96
86
                                }
97
87