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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeTemplates/EditTemplateDialog.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:
156
156
                        List<string> vars = template.ParseVariables (textEditor.Document.Text);
157
157
                        foreach (string var in vars) {
158
158
                                if (!variables.Any (v => v.Name == var) && !template.Variables.Any (v => v.Name == var)) {
159
 
                                        variables.Add (new CodeTemplateVariable (var));
 
159
                                        variables.Add (new CodeTemplateVariable (var) {
 
160
                                                Default = GettextCatalog.GetString ("notset")
 
161
                                        });
160
162
                                }
161
163
                        }
162
164
                        for (int i = 0; i < variables.Count; i++) {