incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r549388 [1/2] - in /incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard: ./ src/ src/main/ src/main/csharp/ src/main/csharp/Properties/
Date Thu, 21 Jun 2007 05:49:14 GMT
Author: sisbell
Date: Wed Jun 20 22:49:13 2007
New Revision: 549388

URL: http://svn.apache.org/viewvc?view=rev&rev=549388
Log:
Initial import of Project Wizard.

Added:
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/pom.xml   (with props)
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/sample.snk   (with
props)
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.Designer.cs
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.cs
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.resx
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectWizard.cs
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/Program.cs
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/Properties/
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj.user
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.sln
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.suo
  (with props)
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/a.xml
  (with props)

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/pom.xml?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/pom.xml (added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/pom.xml Wed Jun 20
22:49:13 2007
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?><!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+  <parent>
+    <groupId>NMaven</groupId>
+    <version>0.14-SNAPSHOT</version>
+    <artifactId>NMaven.Assemblies</artifactId>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>NMaven.VisualStudio</groupId>
+  <artifactId>NMaven.VisualStudio.ProjectWizard</artifactId>
+  <packaging>library</packaging>
+  <name>NMaven.VisualStudio.ProjectWizard</name>
+  <dependencies>
+    <dependency>
+      <groupId>Microsoft.VisualStudio.TemplateWizardInterface</groupId>
+      <artifactId>Microsoft.VisualStudio.TemplateWizardInterface</artifactId>
+      <type>gac_msil</type>
+    </dependency>
+    <dependency>
+      <groupId>EnvDTE</groupId>
+      <artifactId>EnvDTE</artifactId>
+      <type>gac</type>
+    </dependency>
+    <dependency>
+      <groupId>EnvDTE80</groupId>
+      <artifactId>EnvDTE80</artifactId>
+      <type>gac</type>
+    </dependency>
+    <!--remmove-->
+    <dependency>
+      <groupId>Microsoft.VisualStudio.CommandBars</groupId>
+      <artifactId>Microsoft.VisualStudio.CommandBars</artifactId>
+      <type>gac</type>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <frameworkVersion>2.0.50727</frameworkVersion>
+          <keyfile>sample.snk</keyfile>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-install-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <isGacInstall>true</isGacInstall>
+        </configuration>
+      </plugin>
+    </plugins>    
+  </build>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/sample.snk
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/sample.snk?view=auto&rev=549388
==============================================================================
Binary file - no diff available.

Propchange: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/sample.snk
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.Designer.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.Designer.cs?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.Designer.cs
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.Designer.cs
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,142 @@
+namespace WindowsApplication2
+{
+    partial class ArchetypeProjectForm
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise,
false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.groupIdTextBox = new System.Windows.Forms.TextBox();
+            this.artifactIdTextBox = new System.Windows.Forms.TextBox();
+            this.versionTextBox = new System.Windows.Forms.TextBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.button1 = new System.Windows.Forms.Button();
+            this.SuspendLayout();
+            // 
+            // groupIdTextBox
+            // 
+            this.groupIdTextBox.Location = new System.Drawing.Point(117, 54);
+            this.groupIdTextBox.Name = "groupIdTextBox";
+            this.groupIdTextBox.Size = new System.Drawing.Size(246, 22);
+            this.groupIdTextBox.TabIndex = 0;
+            // 
+            // artifactIdTextBox
+            // 
+            this.artifactIdTextBox.Location = new System.Drawing.Point(117, 98);
+            this.artifactIdTextBox.Name = "artifactIdTextBox";
+            this.artifactIdTextBox.Size = new System.Drawing.Size(246, 22);
+            this.artifactIdTextBox.TabIndex = 1;
+            // 
+            // versionTextBox
+            // 
+            this.versionTextBox.Location = new System.Drawing.Point(117, 147);
+            this.versionTextBox.Name = "versionTextBox";
+            this.versionTextBox.Size = new System.Drawing.Size(246, 22);
+            this.versionTextBox.TabIndex = 2;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(26, 54);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(65, 17);
+            this.label1.TabIndex = 3;
+            this.label1.Text = "Group ID";
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(26, 98);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(69, 17);
+            this.label2.TabIndex = 4;
+            this.label2.Text = "Artifact ID";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(26, 147);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(56, 17);
+            this.label3.TabIndex = 5;
+            this.label3.Text = "Version";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.label4.Location = new System.Drawing.Point(20, 9);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(136, 25);
+            this.label4.TabIndex = 6;
+            this.label4.Text = "Create Project";
+            // 
+            // button1
+            // 
+            this.button1.Location = new System.Drawing.Point(303, 211);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(75, 23);
+            this.button1.TabIndex = 7;
+            this.button1.Text = "Finish";
+            this.button1.UseVisualStyleBackColor = true;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
+            // 
+            // ArchetypeProjectForm
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(402, 279);
+            this.Controls.Add(this.button1);
+            this.Controls.Add(this.label4);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.versionTextBox);
+            this.Controls.Add(this.artifactIdTextBox);
+            this.Controls.Add(this.groupIdTextBox);
+            this.Name = "ArchetypeProjectForm";
+            this.Text = "Form1";
+            this.Load += new System.EventHandler(this.ArchetypeProjectForm_Load);
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.TextBox groupIdTextBox;
+        private System.Windows.Forms.TextBox artifactIdTextBox;
+        private System.Windows.Forms.TextBox versionTextBox;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Button button1;
+    }
+}
+

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.cs?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.cs
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.cs
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,78 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WindowsApplication2
+{
+    public partial class ArchetypeProjectForm : Form
+    {
+        private String artifactId;
+
+        private String version;
+
+        private String groupId;
+
+        public ArchetypeProjectForm()
+        {
+            InitializeComponent();
+        }
+
+        public String Version
+        {
+            get
+            {
+                return version;
+            }
+
+            set
+            {
+                version = value;
+            }
+        }
+
+        public String ArtifactId
+        {
+            get
+            {
+                return artifactId;
+            }
+
+            set
+            {
+                artifactId = value;
+            }
+        }
+
+        public String GroupId
+        {
+            get
+            {
+                return groupId;
+            }
+
+            set
+            {
+                groupId = value;
+            }
+        }
+
+        private void button1_Click(object sender, EventArgs e)
+        {
+            artifactId = artifactIdTextBox.Text;
+            groupId = groupIdTextBox.Text;
+            version = versionTextBox.Text;
+            this.Dispose();            
+        }
+
+        private void ArchetypeProjectForm_Load(object sender, EventArgs e)
+        {
+            groupIdTextBox.Text = this.GroupId;
+            artifactIdTextBox.Text = this.ArtifactId;
+            versionTextBox.Text = this.Version;
+        }
+    }
+}
\ No newline at end of file

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.resx
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.resx?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.resx
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectForm.resx
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms,
...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms,
...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this
is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET
Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"
/>
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"
/>
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"
/>
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"
/>
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
\ No newline at end of file

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectWizard.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectWizard.cs?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectWizard.cs
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/ArchetypeProjectWizard.cs
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,130 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using Microsoft.VisualStudio.CommandBars;
+using Microsoft.VisualStudio.TemplateWizard;
+using System.Windows.Forms;
+using EnvDTE;
+using EnvDTE80;
+
+namespace WindowsApplication2
+{
+    public class ArchetypeProjectWizard : IWizard
+    {
+        private ArchetypeProjectForm inputForm;
+
+        // This method is called before opening any item that 
+        // has the OpenInEditor attribute.
+        public void BeforeOpeningFile(ProjectItem projectItem)
+        {
+        }
+
+        public void ProjectFinishedGenerating(Project project)
+        {
+        }
+        
+        // This method is only called for item templates,
+        // not for project templates.
+        public void ProjectItemFinishedGenerating(ProjectItem 
+            projectItem)
+        {
+        }
+
+        // This method is called after the project is created.
+        public void RunFinished()
+        {
+        }
+        private OutputWindowPane outputWindowPane;
+
+        private void cbShowAddArtifactsForm_Click(CommandBarButton btn, ref bool Cancel)
+        {
+            MessageBox.Show("It Works");
+            outputWindowPane.OutputString("It Works");
+        }
+
+        public void RunStarted(object automationObject,
+            Dictionary<string, string> replacementsDictionary,
+            WizardRunKind runKind, object[] customParams)
+        {
+
+            DTE2 dte2 = (DTE2)automationObject;
+                Window win = dte2.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
+                OutputWindow outputWindow = (OutputWindow)win.Object;
+                outputWindowPane = outputWindow.OutputWindowPanes.Add("Test");
+                outputWindowPane.OutputString("Start");
+                CommandBarControl addRef = null;
+            foreach (CommandBar commandBar in (CommandBars)dte2.CommandBars)
+            {
+                outputWindowPane.OutputString("Command Bar = " + commandBar.Name + Environment.NewLine);
+                foreach(CommandBarControl control in commandBar.Controls)
+                {
+                    outputWindowPane.OutputString(control.Caption + Environment.NewLine);
+                    if (control.Caption.Equals("Add &Reference..."))
+                    {
+                        addRef = control;
+                        CommandBarButton ctl = (CommandBarButton) 
+                            commandBar.Controls.Add(MsoControlType.msoControlButton,
+                            System.Type.Missing, System.Type.Missing, control.Index, true);
+                        ctl.Click += new _CommandBarButtonEvents_ClickEventHandler(cbShowAddArtifactsForm_Click);
+                        
+                            //new _CommandBarButtonEvents_ClickEventHandler(ShowAddArtifactsForm);

+                            //new ClickEventHandler();
+                        ctl.Caption = "Add Maven Artifact...";
+                        ctl.Visible = true;
+                        
+                    }
+                }
+            }
+            
+            
+            //  dte2. += new EventHandler(ClearOutputWindowPane);
+         //   Window solutionExplorerWindow 
+         //       = (Window) dte2.Windows.Item(Constants.vsWindowKindSolutionExplorer);
+         //   solutionExplorerWindow
+         //   Window w; UIHierarchy u;
+         //   UIHierarchyItem i;
+         //   dte2.Events.
+         //   ;
+          //  EnvDTE.s
+           // DirectoryInfo projectDirectoryInfo = new FileInfo(dte2.Solution.Projects.Item(1).FullName).Directory;
+          //  dte2.Solution.Projects.Item(1).SaveAs(projectDirectoryInfo.FullName + @"\src\test.csproj");
+            
+            try
+            {
+                // Display a form to the user. The form collects 
+                // input for the custom message.
+                inputForm = new ArchetypeProjectForm();
+                String projectName = replacementsDictionary["$projectname$"];
+                inputForm.GroupId = (projectName.Contains(".")) ? 
+                    projectName.Substring(0, projectName.LastIndexOf(".")) : projectName;
+                inputForm.ArtifactId = projectName;
+                inputForm.Version = "0.0.0.0-SNAPSHOT";
+                
+                inputForm.ShowDialog();
+                String projectPath = @"src\main\csharp";
+                replacementsDictionary.Add("$artifactId$", 
+                    inputForm.ArtifactId);
+                replacementsDictionary.Add("$groupId$",
+                    inputForm.GroupId);
+                replacementsDictionary.Add("$version$",
+                    inputForm.Version);
+                replacementsDictionary.Add("$projectPath$",
+                    projectPath);
+                replacementsDictionary.Add("$classPath$",
+                    projectPath + @"\" + inputForm.ArtifactId.Replace(".", @"\"));
+            }
+            catch (Exception ex)
+            {
+                MessageBox.Show(ex.ToString());
+            }
+        }
+
+        // This method is only called for item templates,
+        // not for project templates.
+        public bool ShouldAddProjectItem(string filePath)
+        {
+            return true;
+        }        
+    }
+}
+

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/Program.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/Program.cs?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/Program.cs
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/Program.cs
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace WindowsApplication2
+{
+    static class Program
+    {
+        /// <summary>
+        /// The main entry point for the application.
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            Application.EnableVisualStyles();
+            Application.SetCompatibleTextRenderingDefault(false);
+            Application.Run(new ArchetypeProjectForm());
+        }
+    }
+}
\ No newline at end of file

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,69 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{7466EA93-4978-4BBD-83D0-F1729EB102EE}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>WindowsApplication2</RootNamespace>
+    <AssemblyName>WindowsApplication2</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
+    <Reference Include="EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
+    <Reference Include="Microsoft.VisualStudio.CommandBars, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
+    <Reference Include="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Deployment" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="ArchetypeProjectForm.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="ArchetypeProjectForm.Designer.cs">
+      <DependentUpon>ArchetypeProjectForm.cs</DependentUpon>
+    </Compile>
+    <Compile Include="ArchetypeProjectWizard.cs" />
+    <Compile Include="Program.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="ArchetypeProjectForm.resx">
+      <SubType>Designer</SubType>
+      <DependentUpon>ArchetypeProjectForm.cs</DependentUpon>
+    </EmbeddedResource>
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Properties\" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and
uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj.user
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj.user?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj.user
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.csproj.user
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,17 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <PublishUrlHistory>
+    </PublishUrlHistory>
+    <InstallUrlHistory>
+    </InstallUrlHistory>
+    <SupportUrlHistory>
+    </SupportUrlHistory>
+    <UpdateUrlHistory>
+    </UpdateUrlHistory>
+    <BootstrapperUrlHistory>
+    </BootstrapperUrlHistory>
+    <ApplicationRevision>0</ApplicationRevision>
+    <FallbackCulture>en-US</FallbackCulture>
+    <VerifyUploadedFiles>false</VerifyUploadedFiles>
+  </PropertyGroup>
+</Project>
\ No newline at end of file

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.sln
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.sln?view=auto&rev=549388
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.sln
(added)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.sln
Wed Jun 20 22:49:13 2007
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsApplication2", "WindowsApplication2.csproj",
"{7466EA93-4978-4BBD-83D0-F1729EB102EE}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{7466EA93-4978-4BBD-83D0-F1729EB102EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{7466EA93-4978-4BBD-83D0-F1729EB102EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{7466EA93-4978-4BBD-83D0-F1729EB102EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{7466EA93-4978-4BBD-83D0-F1729EB102EE}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

Added: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.suo
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.suo?view=auto&rev=549388
==============================================================================
Binary file - no diff available.

Propchange: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.ProjectWizard/src/main/csharp/WindowsApplication2.suo
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message