Author: mhutch
Date: 2007-12-13 16:55:58 -0500 (Thu, 13 Dec 2007)
New Revision: 91255

Added:
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/AssemblyInfo.xft.xml
Removed:
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharpProject.xpt.xml
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProgram.xft.xml
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProject.xpt.xml
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharpProject.xpt.xml
Modified:
   trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.addin.xml
   trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.mdp
   trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog
   trunk/monodevelop/main/src/addins/CSharpBinding/Makefile.am
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/ConsoleProject.xpt.xml
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharp2Project.xpt.xml
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharp2Project.xpt.xml
   
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharp2Project.xpt.xml
   trunk/monodevelop/main/src/addins/CSharpBinding/templates/Library.xpt.xml
Log:
* CSharpBinding.addin.xml: Updated. Prefix C# templates IDs with
  "CSharp" so that they're not invading the generic part of the
  unique ID landscape.
* CSharpBinding.mdp, Makefile.am: Updated.
* templates/ConsoleProject.xpt.xml,
  templates/GnomeSharp2Project.xpt.xml,
  templates/GtkSharp2Project.xpt.xml, templates/AssemblyInfo.xft.xml,
  templates/GladeSharp2Project.xpt.xml, templates/Library.xpt.xml:
  Move common files out of project templates to ease maintenance.
  Make AssemblyInfo more readable. Enable standard headers.
* templates/GnomeSharpProject.xpt.xml,
  templates/GtkSharpProject.xpt.xml,
  templates/GladeSharpProject.xpt.xml,
  templates/GnomeSharpProgram.xft.xml: Remove obsolete templates.

Modified: 
trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.addin.xml
===================================================================
--- trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.addin.xml     
2007-12-13 21:45:07 UTC (rev 91254)
+++ trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.addin.xml     
2007-12-13 21:55:58 UTC (rev 91255)
@@ -23,20 +23,17 @@
        </Extension>
 
        <Extension path = "/MonoDevelop/Ide/FileTemplates">
-               <FileTemplate id = "Empty" resource = 
"EmptyCSharpFile.xft.xml"/>
-               <FileTemplate id = "GnomeSharpProgram" resource = 
"GnomeSharpProgram.xft.xml"/>
+               <FileTemplate id = "CSharpEmptyFile" resource = 
"EmptyCSharpFile.xft.xml"/>
+               <FileTemplate id = "CSharpAssemblyInfo" resource = 
"AssemblyInfo.xft.xml"/>
        </Extension>
 
        <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
-               <ProjectTemplate id = "ConsoleProject" resource = 
"ConsoleProject.xpt.xml"/>
-               <ProjectTemplate id = "EmptyProject" resource = 
"EmptyProject.xpt.xml"/>
-               <ProjectTemplate id = "GladeSharpProject" resource = 
"GladeSharpProject.xpt.xml"/>
-               <ProjectTemplate id = "GladeSharp2Project" resource = 
"GladeSharp2Project.xpt.xml"/>
-               <ProjectTemplate id = "GnomeSharpProject" resource = 
"GnomeSharpProject.xpt.xml"/>
-               <ProjectTemplate id = "GnomeSharp2Project" resource = 
"GnomeSharp2Project.xpt.xml"/>
-               <ProjectTemplate id = "GtkSharpProject" resource = 
"GtkSharpProject.xpt.xml"/>
-               <ProjectTemplate id = "GtkSharp2Project" resource = 
"GtkSharp2Project.xpt.xml"/>
-               <ProjectTemplate id = "Library" resource = "Library.xpt.xml"/>
+               <ProjectTemplate id = "CSharpConsoleProject" resource = 
"ConsoleProject.xpt.xml"/>
+               <ProjectTemplate id = "CSharpEmptyProject" resource = 
"EmptyProject.xpt.xml"/>
+               <ProjectTemplate id = "CSharpGladeSharp2Project" resource = 
"GladeSharp2Project.xpt.xml"/>
+               <ProjectTemplate id = "CSharpGnomeSharp2Project" resource = 
"GnomeSharp2Project.xpt.xml"/>
+               <ProjectTemplate id = "CSharpGtkSharp2Project" resource = 
"GtkSharp2Project.xpt.xml"/>
+               <ProjectTemplate id = "CSharpLibrary" resource = 
"Library.xpt.xml"/>
        </Extension>
        
        <Extension path = "/MonoDevelop/Ide/FileFilters">

Modified: trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.mdp
===================================================================
--- trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.mdp   
2007-12-13 21:45:07 UTC (rev 91254)
+++ trunk/monodevelop/main/src/addins/CSharpBinding/CSharpBinding.mdp   
2007-12-13 21:55:58 UTC (rev 91255)
@@ -17,12 +17,8 @@
     <File name="templates/ConsoleProject.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="templates/EmptyCSharpFile.xft.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="templates/EmptyProject.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
-    <File name="templates/GladeSharpProject.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="templates/GladeSharp2Project.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
-    <File name="templates/GnomeSharpProgram.xft.xml" subtype="Code" 
buildaction="EmbedAsResource" />
-    <File name="templates/GnomeSharpProject.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="templates/GnomeSharp2Project.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
-    <File name="templates/GtkSharpProject.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="templates/GtkSharp2Project.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="templates/Library.xpt.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="icons/C#.FileIcon" subtype="Code" 
buildaction="EmbedAsResource" />
@@ -65,6 +61,7 @@
     <File name="gtk-gui/CSharpBinding.CompilerOptionsPanelWidget.cs" 
subtype="Code" buildaction="Compile" />
     <File name="gtk-gui/objects.xml" subtype="Code" 
buildaction="EmbedAsResource" />
     <File name="Gui/CompilerOptionsPanelWidget.cs" subtype="Code" 
buildaction="Compile" />
+    <File name="templates/AssemblyInfo.xft.xml" subtype="Code" 
buildaction="EmbedAsResource" />
   </Contents>
   <References>
     <ProjectReference type="Project" localcopy="False" 
refto="MonoDevelop.Core" />
@@ -87,6 +84,7 @@
     <ProjectReference type="Gac" localcopy="True" refto="atk-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     <ProjectReference type="Gac" localcopy="True" refto="Mono.Addins, 
Version=0.3.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
   </References>
+  <GtkDesignInfo gtkVersion="2.8.3" />
   <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" 
RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" 
SyncReferences="True" IsAutotoolsProject="True" 
RelativeConfigureInPath="../../../">
     <BuildFilesVar Sync="True" Name="FILES" />
     <DeployFilesVar />
@@ -96,5 +94,4 @@
     <AsmRefVar Sync="True" Name="REFS" Prefix="-r:" />
     <ProjectRefVar Sync="True" Name="REFS" Prefix="-r:" />
   </MonoDevelop.Autotools.MakefileInfo>
-  <GtkDesignInfo gtkVersion="2.8.3" />
 </Project>
\ No newline at end of file

Modified: trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog   2007-12-13 
21:45:07 UTC (rev 91254)
+++ trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog   2007-12-13 
21:55:58 UTC (rev 91255)
@@ -1,3 +1,17 @@
+2007-12-13  Michael Hutchinson <[EMAIL PROTECTED]> 
+
+       * CSharpBinding.addin.xml: Updated. Prefix C# templates IDs with 
"CSharp" so
+         that they're not invading the generic part of the unique ID landscape.
+       * CSharpBinding.mdp, Makefile.am: Updated.
+       * templates/ConsoleProject.xpt.xml, 
templates/GnomeSharp2Project.xpt.xml,
+         templates/GtkSharp2Project.xpt.xml, templates/AssemblyInfo.xft.xml,
+         templates/GladeSharp2Project.xpt.xml, templates/Library.xpt.xml: Move
+         common files out of project templates to ease maintenance. Make
+         AssemblyInfo more readable. Enable standard headers.
+       * templates/GnomeSharpProject.xpt.xml, 
templates/GtkSharpProject.xpt.xml,
+         templates/GladeSharpProject.xpt.xml,
+         templates/GnomeSharpProgram.xft.xml: Remove obsolete templates.
+
 2007-12-13  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * Gui/CSharpTextEditorExtension.cs, Parser/CodeGenerator.cs,

Modified: trunk/monodevelop/main/src/addins/CSharpBinding/Makefile.am
===================================================================
--- trunk/monodevelop/main/src/addins/CSharpBinding/Makefile.am 2007-12-13 
21:45:07 UTC (rev 91254)
+++ trunk/monodevelop/main/src/addins/CSharpBinding/Makefile.am 2007-12-13 
21:55:58 UTC (rev 91255)
@@ -64,16 +64,13 @@
        gtk-gui/objects.xml \
        icons/C\#.FileIcon \
        icons/csharp-icon-32.png \
+       templates/AssemblyInfo.xft.xml \
        templates/ConsoleProject.xpt.xml \
        templates/EmptyCSharpFile.xft.xml \
        templates/EmptyProject.xpt.xml \
        templates/GladeSharp2Project.xpt.xml \
-       templates/GladeSharpProject.xpt.xml \
        templates/GnomeSharp2Project.xpt.xml \
-       templates/GnomeSharpProgram.xft.xml \
-       templates/GnomeSharpProject.xpt.xml \
        templates/GtkSharp2Project.xpt.xml \
-       templates/GtkSharpProject.xpt.xml \
        templates/Library.xpt.xml
 
 TESTFILES =  \

Added: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/AssemblyInfo.xft.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/AssemblyInfo.xft.xml  
    2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/AssemblyInfo.xft.xml  
    2007-12-13 21:55:58 UTC (rev 91255)
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<Template
+       Originator="Michael Hutchinson"
+       Created="2007/12/13"
+       LastModified="2007/12/13">
+
+       <!-- Template Header -->
+       <TemplateConfiguration>
+               <_Name>Assembly Information</_Name>
+               <Category>Misc</Category>
+               <Icon>md-text-file-icon</Icon>
+               <LanguageName>C#</LanguageName>
+               <DefaultFilename 
IsFixed="True">AssemblyInfo.cs</DefaultFilename>
+               <_Description>A file defining assembly information 
attributes.</_Description>
+       </TemplateConfiguration>
+       
+       <Conditions>
+               <ParentProject PermittedCreationPaths="" 
ExcludedFiles="AssemblyInfo.cs" RequireProject="True"/>
+       </Conditions>
+
+       <!-- Template Content -->
+       <TemplateFiles>
+               <File name="AssemblyInfo.cs" AddStandardHeader="True">
+                       <![CDATA[using System.Reflection;
+using System.Runtime.CompilerServices;
+
+// Information about this assembly is defined by the following attributes. 
+// Change them to the values specific to your project.
+
+[assembly: AssemblyTitle("${ProjectName}")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
+// If the build and revision are set to '*' they will be updated automatically.
+
+[assembly: AssemblyVersion("1.0.*")]
+
+// The following attributes are used to specify the signing key for the 
assembly, 
+// if desired. See the Mono documentation for more information about signing.
+
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
+]]></File>
+       </TemplateFiles>
+</Template>

Modified: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/ConsoleProject.xpt.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/ConsoleProject.xpt.xml
    2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/ConsoleProject.xpt.xml
    2007-12-13 21:55:58 UTC (rev 91255)
@@ -29,8 +29,7 @@
                                <Reference type="Gac" refto="System, 
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
                        </References>
                        <Files>
-                               <File name="Main.cs"><![CDATA[// project 
created on ${Date} at ${Time}
-using System;
+                               <File name="Main.cs" 
AddStandardHeader="True"><![CDATA[using System;
 
 namespace ${Namespace}
 {
@@ -42,39 +41,7 @@
                }
        }
 }]]></File>
-                       <File name="AssemblyInfo.cs"><![CDATA[using 
System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
+                       <FileTemplateReference TemplateID="CSharpAssemblyInfo" 
name="AssemblyInfo.cs" />
                        </Files>
                </Project>
        </Combine>

Modified: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharp2Project.xpt.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharp2Project.xpt.xml
        2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharp2Project.xpt.xml
        2007-12-13 21:55:58 UTC (rev 91255)
@@ -63,9 +63,8 @@
 ]]></File>
                        </Resources>
                        <Files>
-                               <File name="Main.cs">
-<![CDATA[// project created on ${Date} at ${Time}
-using System;
+                               <File name="Main.cs" AddStandardHeader="True">
+<![CDATA[using System;
 using Gtk;
 using Glade;
 
@@ -95,39 +94,7 @@
 
 ]]>
 </File>
-<File name="AssemblyInfo.cs"><![CDATA[using System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
+                               <FileTemplateReference 
TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
                        </Files>
                </Project>
        </Combine>

Deleted: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharpProject.xpt.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharpProject.xpt.xml
 2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GladeSharpProject.xpt.xml
 2007-12-13 21:55:58 UTC (rev 91255)
@@ -1,135 +0,0 @@
-<?xml version="1.0"?>
-<Template originator   = "Erik Dasque"
-          created      = "03/10/2004"
-          lastModified = "03/11/2004">
-       
-       <!-- Template Header -->
-       <TemplateConfiguration>
-               <_Name>Glade# 1.0 Project</_Name>
-               <Category>C#/Samples</Category>
-               <Icon>md-project-gui|res:csharp-icon-32.png</Icon>
-               <LanguageName>C#</LanguageName>
-               <_Description>a Glade# project with one window and 
button</_Description>
-       </TemplateConfiguration>
-       
-       <!-- Actions -->
-       <Actions>
-               <Open filename = "Main.cs"/>
-       </Actions>
-       
-       <!-- Template Content -->
-       <Combine name = "${ProjectName}" directory = ".">
-               <Options>
-                       <StartupProject>${ProjectName}</StartupProject>
-               </Options>
-               
-               <Project name = "${ProjectName}" directory = ".">
-                       <Options/>
-                       
-                       <References>
-                               <Reference type="Gac" refto="System, 
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-                               <Reference type="Gac" refto="gtk-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="gdk-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="glib-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="glade-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="pango-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="glade-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                       </References>
-                       
-                       <Resources>
-<File name="gui.glade"><![CDATA[<?xml version="1.0" standalone="no"?> <!--*- 
mode: xml -*-->
-<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd";>
- 
-<glade-interface>
- 
-<widget class="GtkWindow" id="window1">
-  <property name="visible">True</property>
-  <property name="title" translatable="yes">Glade Window</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
-  <property name="modal">False</property>
-  <property name="default_width">256</property>
-  <property name="default_height">256</property>
-  <property name="type">GTK_WINDOW_TOPLEVEL</property>
-  <property name="resizable">True</property>
-  <property name="destroy_with_parent">False</property>
-  <signal name="delete_event" handler="OnWindowDeleteEvent"/>
-
-  <child>
-    <placeholder/>
-  </child>
-</widget>
- 
-</glade-interface>
-
-]]></File>
-                       </Resources>
-                       <Files>
-                               <File name="Main.cs">
-<![CDATA[// project created on ${Date} at ${Time}
-using System;
-using Gtk;
-using Glade;
-
-public class GladeApp
-{
-       public static void Main (string[] args)
-       {
-               new GladeApp (args);
-       }
-
-       public GladeApp (string[] args) 
-       {
-               Application.Init ();
-
-               Glade.XML gxml = new Glade.XML (null, "gui.glade", "window1", 
null);
-               gxml.Autoconnect (this);
-               Application.Run ();
-       }
-
-       // Connect the Signals defined in Glade
-       private void OnWindowDeleteEvent (object sender, DeleteEventArgs a) 
-       {
-               Application.Quit ();
-               a.RetVal = true;
-       }
-}
-
-]]>
-</File>
-<File name="AssemblyInfo.cs"><![CDATA[using System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
-                       </Files>
-               </Project>
-       </Combine>
-</Template>

Modified: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharp2Project.xpt.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharp2Project.xpt.xml
        2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharp2Project.xpt.xml
        2007-12-13 21:55:58 UTC (rev 91255)
@@ -37,8 +37,7 @@
                        </References>
 
                        <Files>
-                               <File name="Main.cs"><![CDATA[// project 
created on ${Date} at ${Time}
-using System;
+                               <File name="Main.cs" 
AddStandardHeader="True"><![CDATA[using System;
 
 public class MainClass
 {
@@ -47,7 +46,7 @@
                new MyProgram (args);
        }
 }]]></File>
-                       <File name="MyProgram.cs"><![CDATA[using System;
+                       <File name="MyProgram.cs" 
AddStandardHeader="True"><![CDATA[using System;
 using Gtk;
 using Gnome;
 
@@ -68,39 +67,7 @@
                Application.Quit ();
        }
 }]]></File>
-                       <File name="AssemblyInfo.cs"><![CDATA[using 
System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
+                       <FileTemplateReference TemplateID="CSharpAssemblyInfo" 
name="AssemblyInfo.cs" />
                        </Files>
                </Project>
        </Combine>

Deleted: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProgram.xft.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProgram.xft.xml
 2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProgram.xft.xml
 2007-12-13 21:55:58 UTC (rev 91255)
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="John Luke" 
-          Language="GnomeSharpProgram" Created="1/02/2004" 
LastModified="2/25/2004">
-       
-       <TemplateConfiguration>
-               <_Name>Gnome# Program</_Name>
-               <Icon>md-gui-file</Icon>
-               <Category>Gnome</Category>
-               <LanguageName>C#</LanguageName>
-               <_Description>Creates a Gnome# program.</_Description>
-       </TemplateConfiguration>
-       
-       <TemplateFiles>
-               <File DefaultExtension=".cs" DefaultName="CreatedProgram">
-<![CDATA[// created on ${Date} at ${Time}
-using System;
-using Gnome;
-
-namespace ${Namespace}
-{
-       public class ${Name} : Program
-       {
-               public CreatedProgram (string[] args) : base ("ChangeMe", 
"0.1", Gnome.Modules.Info, args)
-               {
-               }
-       }
-}
-]]></File>
-       </TemplateFiles>
-       
-       <FileOptions/>
-       
-</Template>

Deleted: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProject.xpt.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProject.xpt.xml
 2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GnomeSharpProject.xpt.xml
 2007-12-13 21:55:58 UTC (rev 91255)
@@ -1,107 +0,0 @@
-<?xml version="1.0"?>
-<Template originator   = "John Luke"
-          created      = "01/03/2004"
-          lastModified = "03/08/2004">
-       
-       <!-- Template Header -->
-       <TemplateConfiguration>
-               <_Name>Gnome# 1.0 Project</_Name>
-               <Category>C#/Samples</Category>
-               <Icon>md-project-gui|res:csharp-icon-32.png</Icon>
-               <LanguageName>C#</LanguageName>
-               <_Description>Creates a Gnome# project</_Description>
-       </TemplateConfiguration>
-       
-       <!-- Actions -->
-       <Actions>
-               <Open filename = "Main.cs"/>
-       </Actions>
-       
-       <!-- Template Content -->
-       <Combine name = "${ProjectName}" directory = ".">
-               <Options>
-                       <StartupProject>${ProjectName}</StartupProject>
-               </Options>
-               
-               <Project name = "${ProjectName}" directory = ".">
-                       <Options/>
-                       
-                       <References>
-                               <Reference type="Gac" refto="System, 
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-                               <Reference type="Gac" refto="gnome-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="gtk-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="gdk-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="glib-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="glade-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="pango-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                       </References>
-
-                       <Files>
-                               <File name="Main.cs"><![CDATA[// project 
created on ${Date} at ${Time}
-using System;
-
-public class MainClass
-{
-       public static void Main (string[] args)
-       {
-               new MyProgram (args);
-       }
-}]]></File>
-                       <File name="MyProgram.cs"><![CDATA[using System;
-using Gtk;
-using Gnome;
-
-public class MyProgram
-{
-       public MyProgram (string [] args)
-       {
-               Program program = new Program ("MyProgram", "0.0", Modules.UI, 
args);
-               App app = new App ("MyProgram", "MyWindow");
-               app.SetDefaultSize (400, 300);
-               app.DeleteEvent += new DeleteEventHandler (OnAppDelete);
-               app.ShowAll ();
-               program.Run ();
-       }
-       
-       private void OnAppDelete (object o, DeleteEventArgs args)
-       {
-               Application.Quit ();
-       }
-}]]></File>
-                       <File name="AssemblyInfo.cs"><![CDATA[using 
System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
-                       </Files>
-               </Project>
-       </Combine>
-</Template>

Modified: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharp2Project.xpt.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharp2Project.xpt.xml
  2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharp2Project.xpt.xml
  2007-12-13 21:55:58 UTC (rev 91255)
@@ -53,7 +53,7 @@
                                        
                                        <!-- Class bound to the window -->
                                
-                                       <File name="MainWindow.cs">
+                                       <File name="MainWindow.cs" 
AddStandardHeader="True">
 <![CDATA[using System;
 using Gtk;
 
@@ -75,9 +75,8 @@
                                
                                <!-- The main class -->
                                
-                               <File name="Main.cs">
-<![CDATA[// project created on ${Date} at ${Time}
-using System;
+                               <File name="Main.cs" AddStandardHeader="True">
+<![CDATA[using System;
 using Gtk;
 
 namespace ${Namespace}
@@ -94,43 +93,8 @@
        }
 }]]>
                                </File>
-
-                               <!-- Assembly information file -->
                                
-                               <File name="AssemblyInfo.cs"><![CDATA[using 
System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]>
-                               </File>
+                               <FileTemplateReference 
TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
                        </Files>
                </Project>
        </Combine>

Deleted: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharpProject.xpt.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharpProject.xpt.xml
   2007-12-13 21:45:07 UTC (rev 91254)
+++ 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/GtkSharpProject.xpt.xml
   2007-12-13 21:55:58 UTC (rev 91255)
@@ -1,106 +0,0 @@
-<?xml version="1.0"?>
-<Template originator   = "John Luke"
-          created      = "01/03/2004"
-          lastModified = "03/25/2004">
-       
-       <!-- Template Header -->
-       <TemplateConfiguration>
-               <_Name>Gtk# 1.0 Project</_Name>
-               <Category>C#/Samples</Category>
-               <Icon>md-project-gui|res:csharp-icon-32.png</Icon>
-               <LanguageName>C#</LanguageName>
-               <_Description>Creates a Gtk# project.</_Description>
-       </TemplateConfiguration>
-       
-       <!-- Actions -->
-       <Actions>
-               <Open filename = "Main.cs"/>
-       </Actions>
-       
-       <!-- Template Content -->
-       <Combine name = "${ProjectName}" directory = ".">
-               <Options>
-                       <StartupProject>${ProjectName}</StartupProject>
-               </Options>
-               
-               <Project name = "${ProjectName}" directory = ".">
-                       <Options/>
-                       
-                       <References>
-                               <Reference type="Gac" refto="System, 
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-                               <Reference type="Gac" refto="gtk-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="gdk-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="glib-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="glade-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                               <Reference type="Gac" refto="pango-sharp, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-                       </References>
-               
-                       <Files>
-                               <File name="Main.cs"><![CDATA[// project 
created on ${Date} at ${Time}
-using System;
-using Gtk;
-
-class MainClass
-{
-       public static void Main (string[] args)
-       {
-               Application.Init ();
-               new MyWindow ();
-               Application.Run ();
-       }
-}]]></File>
-                       <File name="MyWindow.cs"><![CDATA[using System;
-using Gtk;
-
-public class MyWindow : Window
-{      
-       public MyWindow () : base ("MyWindow")
-       {
-               this.SetDefaultSize (400, 300);
-               this.DeleteEvent += new DeleteEventHandler (OnMyWindowDelete);
-               this.ShowAll ();
-       }
-       
-       void OnMyWindowDelete (object sender, DeleteEventArgs a)
-       {
-               Application.Quit ();
-               a.RetVal = true;
-       }
-}]]></File>
-                       <File name="AssemblyInfo.cs"><![CDATA[using 
System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
-                       </Files>
-               </Project>
-       </Combine>
-</Template>

Modified: 
trunk/monodevelop/main/src/addins/CSharpBinding/templates/Library.xpt.xml
===================================================================
--- trunk/monodevelop/main/src/addins/CSharpBinding/templates/Library.xpt.xml   
2007-12-13 21:45:07 UTC (rev 91254)
+++ trunk/monodevelop/main/src/addins/CSharpBinding/templates/Library.xpt.xml   
2007-12-13 21:55:58 UTC (rev 91255)
@@ -28,49 +28,9 @@
                        <References>
                                <Reference type="Gac" refto="System, 
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
                        </References>
-
                        <Files>
-                               <File name="MyClass.cs"><![CDATA[// project 
created on ${Date} at ${Time}
-using System;
-
-public class MyClass
-{
-
-}]]></File>
-               <File name="AssemblyInfo.cs">
-                       <![CDATA[using System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and 
revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See 
the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like 
they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
+                               <FileTemplateReference TemplateID="EmptyClass" 
name="MyClass.cs" />
+                               <FileTemplateReference 
TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
                        </Files>
                </Project>
        </Combine>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to