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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/AddFileDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        /// <summary>
38
38
        /// Dialog which allows selecting files to be added to a project
39
39
        /// </summary>
40
 
        public class AddFileDialog: SelectFileDialog<IAddFileDialogHandler, AddFileDialogData>
 
40
        public class AddFileDialog: SelectFileDialog<AddFileDialogData>
41
41
        {
42
42
                public AddFileDialog (string title)
43
43
                {
61
61
                        get { return data.OverrideAction; }
62
62
                }
63
63
                
64
 
                /// <summary>
65
 
                /// Shows the dialog
66
 
                /// </summary>
67
 
                /// <returns>
68
 
                /// True if the user clicked on OK.
69
 
                /// </returns>
70
 
                public bool Run ()
 
64
                protected override bool RunDefault ()
71
65
                {
72
 
                        if (Handler != null)
73
 
                                return Handler.Run (data);
74
 
                        
75
66
                        FileSelector fdiag  = new FileSelector (data.Title);
76
67
                        
77
68
                        //add a combo that can be used to override the default build action