~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2010-06-09 22:01:40 UTC
  • mfrom: (1.2.7 upstream) (1.3.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100609220140-j54ld0153fcr4tbe
Tags: 2.2.2+dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  + debian/control, debian/patches:
    Enable building of monodevelop-moonlight package
  + debian/rules:
    Make sure we don't accidentally ship Moonlight support in the main
    MonoDevelop package by removing it in override_dh_install
* debian/control: We are using git instead of svn, update locations

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
                                                ci.Description = ci.Text + " - " + GettextCatalog.GetString ("Hold Control key to display the execution parameters dialog.");
82
82
                                        }
83
83
                                }
 
84
                                if (info.Count > 0)
 
85
                                        info.AddSeparator ();
 
86
                        }
 
87
                        if (info.Count > 0) {
84
88
                                info.AddSeparator ();
 
89
                                info.Add (GettextCatalog.GetString ("Edit Custom Modes..."), new CommandItem (ctx, null));
85
90
                        }
86
 
                        info.AddSeparator ();
87
 
                        info.Add (GettextCatalog.GetString ("Edit Custom Modes..."), new CommandItem (ctx, null));
88
91
                }
89
92
                
90
93
                public static IExecutionHandler GetExecutionModeForCommand (object data)
132
135
                                List<IExecutionMode> items = new List<IExecutionMode> ();
133
136
                                HashSet<string> setModes = new HashSet<string> ();
134
137
                                foreach (IExecutionMode mode in mset.ExecutionModes) {
 
138
                                        if (!ctx.CanExecute (mode.ExecutionHandler))
 
139
                                                continue;
135
140
                                        setModes.Add (mode.Id);
136
 
                                        if (ctx.CanExecute (mode.ExecutionHandler) && (mode.Id != "Default" || includeDefault))
 
141
                                        if (mode.Id != "Default" || includeDefault)
137
142
                                                items.Add (mode);
138
143
                                        if (mode.Id == "Default" && includeDefaultCustomizer) {
139
144
                                                CustomExecutionMode cmode = new CustomExecutionMode ();