Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs
index b9a2a6ffa0..701850e4e7 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs
@@ -104,12 +104,12 @@ namespace MonoDevelop.Ide.Templates
set { addStandardHeader = value; }
}
- public sealed override bool AddToProject (SolutionItem policyParent, Project project, string language, string directory, string name)
+ public sealed override bool AddToProject (SolutionFolderItem policyParent, Project project, string language, string directory, string name)
{
return AddFileToProject (policyParent, project, language, directory, name) != null;
}
- public ProjectFile AddFileToProject (SolutionItem policyParent, Project project, string language, string directory, string name)
+ public ProjectFile AddFileToProject (SolutionFolderItem policyParent, Project project, string language, string directory, string name)
{
generatedFile = SaveFile (policyParent, project, language, directory, name);
if (generatedFile != null) {
@@ -187,7 +187,7 @@ namespace MonoDevelop.Ide.Templates
// Creates a file and saves it to disk. Returns the path to the new file
// All parameters are optional (can be null)
- public string SaveFile (SolutionItem policyParent, Project project, string language, string baseDirectory, string entryName)
+ public string SaveFile (SolutionFolderItem policyParent, Project project, string language, string baseDirectory, string entryName)
{
string file = GetFileName (policyParent, project, language, baseDirectory, entryName);
@@ -221,7 +221,7 @@ namespace MonoDevelop.Ide.Templates
// Returns the name of the file that this template generates.
// All parameters are optional (can be null)
- public virtual string GetFileName (SolutionItem policyParent, Project project, string language, string baseDirectory, string entryName)
+ public virtual string GetFileName (SolutionFolderItem policyParent, Project project, string language, string baseDirectory, string entryName)
{
if (string.IsNullOrEmpty (entryName) && !string.IsNullOrEmpty (defaultName))
entryName = defaultName;
@@ -257,7 +257,7 @@ namespace MonoDevelop.Ide.Templates
// Returns a stream with the content of the file.
// project and language parameters are optional
- public virtual Stream CreateFileContent (SolutionItem policyParent, Project project, string language, string fileName, string identifier)
+ public virtual Stream CreateFileContent (SolutionFolderItem policyParent, Project project, string language, string fileName, string identifier)
{
Dictionary<string, string> tags = new Dictionary<string, string> ();
ModifyTags (policyParent, project, language, identifier, fileName, ref tags);
@@ -326,7 +326,7 @@ namespace MonoDevelop.Ide.Templates
// We supply defaults whenever it is possible, to avoid having unsubstituted tags. However,
// do not substitute blanks when a sensible default cannot be guessed, because they result
//in less obvious errors.
- public virtual void ModifyTags (SolutionItem policyParent, Project project, string language,
+ public virtual void ModifyTags (SolutionFolderItem policyParent, Project project, string language,
string identifier, string fileName, ref Dictionary<string,string> tags)
{
DotNetProject netProject = project as DotNetProject;