~ubuntu-branches/ubuntu/utopic/monodevelop/utopic

« back to all changes in this revision

Viewing changes to src/addins/TextTemplating/MonoDevelop.TextTemplating/TextTemplatingFilePreprocessor.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-10-10 14:50:04 UTC
  • mfrom: (10.3.4)
  • Revision ID: package-import@ubuntu.com-20131010145004-80l130sny21b17sb
Tags: 4.0.12+dfsg-1
* [5dcb6e1] Fix debian/watch for new source tarball name format
* [5c68cb5] Refresh list of files removed by get-orig-source to 
  reflect 4.0.12
* [96d60a0] Imported Upstream version 4.0.12+dfsg
* [b989752] Refresh debian/patches/no_appmenu to ensure it applies
* [2a4c351] Ensure every assembly in external/ is cleaned properly
* [92762f7] Add more excluded Mac-specific modulerefs
* [bc698ba] Add symlinks to NUnit assemblies (Closes: #714246)

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
                                string[] references;
66
66
                                string className = provider.CreateValidIdentifier (file.FilePath.FileNameWithoutExtension);
67
67
                                
68
 
                                string classNamespace = GetNamespaceHint (file, outputFile);
 
68
                                string classNamespace = CustomToolService.GetFileNamespace (file, outputFile);
69
69
                                LogicalSetData ("NamespaceHint", classNamespace, result.Errors);
70
70
 
71
71
                                host.PreprocessTemplate (file.FilePath, className, classNamespace, outputFile, encoding, out langauge, out references);
77
77
                        }, result);
78
78
                }
79
79
                
80
 
                internal static string GetNamespaceHint (ProjectFile file, string outputFile)
81
 
                {
82
 
                        string ns = file.CustomToolNamespace;
83
 
                        if (string.IsNullOrEmpty (ns) && !string.IsNullOrEmpty (outputFile)) {
84
 
                                var dnp = file.Project as DotNetProject;
85
 
                                        if (dnp != null)
86
 
                                                ns = dnp.GetDefaultNamespace (outputFile);
87
 
                        }
88
 
                        return ns;
89
 
                }
90
 
                
91
80
                static bool warningLogged;
92
81
                
93
82
                internal static void LogicalSetData (string name, object value,