From: Chris M. <cm...@us...> - 2006-04-18 17:18:53
|
User: cmicali Date: 06/04/18 10:18:51 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn AddInSettings.cs AndroMDA.VS80AddIn.AddIn AndroMDA.VS80AddIn.csproj AssemblyInfo.cs MDASolutionProcessor.cs Resource1.Designer.cs Resource1.resx etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands OpenModelCommand.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs AboutOptionsPage.designer.cs Added: etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs ExternalToolsOptionsPage.cs ExternalToolsOptionsPage.designer.cs ExternalToolsOptionsPage.resx GeneralOptionsPage.Designer.cs GeneralOptionsPage.cs GeneralOptionsPage.resx MDAOptionPageProperties.cs Removed: etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs MDAOptionsPage.cs MDAOptionsPage.designer.cs MDAOptionsPage.resx etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Resources/Lib Microsoft.ApplicationBlocks.UIProcess.dll Log: - Split the options page into 2 pages - Added show open model button option - Added make model file writable option - Removed UI process DLL from the resources Revision Changes Path 1.2 +15 -3 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AddInSettings.cs Index: AddInSettings.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AddInSettings.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AddInSettings.cs 18 Apr 2006 16:14:43 -0000 1.1 +++ AddInSettings.cs 18 Apr 2006 17:18:50 -0000 1.2 @@ -22,7 +22,7 @@ public class AddInSettings { - public const int ADDIN_BUILD = 6; + public const int ADDIN_SETTINGS_VERSION = 7; #region Member variables @@ -36,10 +36,10 @@ m_applicationObject = applicationObject; m_settings = new SettingsManager(m_applicationObject); //FirstRun = true; - if (FirstRun || AddInBuild < ADDIN_BUILD) + if (FirstRun || AddInBuild < ADDIN_SETTINGS_VERSION) { FirstRun = false; - AddInBuild = ADDIN_BUILD; + AddInBuild = ADDIN_SETTINGS_VERSION; ResyncIgnoreList = "CVS;.cvsignore;.svn;.svnignore"; string mavenHome = System.Environment.GetEnvironmentVariable("MAVEN_HOME"); if (mavenHome != string.Empty) @@ -97,6 +97,12 @@ set { m_settings["AMDAMgcDrawPth"] = value; } } + public bool AutoMakeModelFileWritable + { + get { return m_settings.GetBool("AMDAMdlWritbl", false); } + set { m_settings.SetBool("AMDAMdlWritbl", value); } + } + #endregion #region Maven settings @@ -189,6 +195,12 @@ set { m_settings.SetBool("ADMAShowAbout", value); } } + public bool ShowOpenModelButton + { + get { return m_settings.GetBool("ADMAShowOMdl", true); } + set { m_settings.SetBool("ADMAShowOMdl", value); } + } + /* private string GetCommandSetting(AddInCommandBase command, string setting) { 1.2 +5 -7 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn.AddIn Index: AndroMDA.VS80AddIn.AddIn =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn.AddIn,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AndroMDA.VS80AddIn.AddIn 18 Apr 2006 16:14:43 -0000 1.1 +++ AndroMDA.VS80AddIn.AddIn 18 Apr 2006 17:18:50 -0000 1.2 @@ -18,16 +18,14 @@ <ToolsOptionsPage> <Category Name="AndroMDA"> - <SubCategory Name="Settings"> + <SubCategory Name="External Tools"> <Assembly>AndroMDA.VS80AddIn.dll</Assembly> - <FullClassName>AndroMDA.VS80AddIn.Dialogs.MDAOptionsPage</FullClassName> + <FullClassName>AndroMDA.VS80AddIn.Dialogs.ExternalToolsOptionsPage</FullClassName> </SubCategory> -<!-- - <SubCategory Name="About" > + <SubCategory Name="General"> <Assembly>AndroMDA.VS80AddIn.dll</Assembly> - <FullClassName>AndroMDA.VS80AddIn.Dialogs.AboutOptionsPage</FullClassName> + <FullClassName>AndroMDA.VS80AddIn.Dialogs.GeneralOptionsPage</FullClassName> </SubCategory> ---> </Category> </ToolsOptionsPage> 1.2 +17 -6 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn.csproj Index: AndroMDA.VS80AddIn.csproj =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn.csproj,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AndroMDA.VS80AddIn.csproj 18 Apr 2006 16:14:43 -0000 1.1 +++ AndroMDA.VS80AddIn.csproj 18 Apr 2006 17:18:51 -0000 1.2 @@ -1,4 +1,4 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -71,11 +71,18 @@ <Compile Include="Dialogs\AddInWelcome.Designer.cs"> <DependentUpon>AddInWelcome.cs</DependentUpon> </Compile> - <Compile Include="Dialogs\MDAOptionsPage.cs"> + <Compile Include="Dialogs\GeneralOptionsPage.cs"> <SubType>UserControl</SubType> </Compile> - <Compile Include="Dialogs\MDAOptionsPage.designer.cs"> - <DependentUpon>MDAOptionsPage.cs</DependentUpon> + <Compile Include="Dialogs\GeneralOptionsPage.Designer.cs"> + <DependentUpon>GeneralOptionsPage.cs</DependentUpon> + </Compile> + <Compile Include="Dialogs\MDAOptionPageProperties.cs" /> + <Compile Include="Dialogs\ExternalToolsOptionsPage.cs"> + <SubType>UserControl</SubType> + </Compile> + <Compile Include="Dialogs\ExternalToolsOptionsPage.designer.cs"> + <DependentUpon>ExternalToolsOptionsPage.cs</DependentUpon> </Compile> <Compile Include="Dialogs\MDAProjectSetupControl.cs"> <SubType>UserControl</SubType> @@ -207,8 +214,12 @@ <SubType>Designer</SubType> <DependentUpon>AddInWelcome.cs</DependentUpon> </EmbeddedResource> - <EmbeddedResource Include="Dialogs\MDAOptionsPage.resx"> - <DependentUpon>MDAOptionsPage.cs</DependentUpon> + <EmbeddedResource Include="Dialogs\GeneralOptionsPage.resx"> + <SubType>Designer</SubType> + <DependentUpon>GeneralOptionsPage.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="Dialogs\ExternalToolsOptionsPage.resx"> + <DependentUpon>ExternalToolsOptionsPage.cs</DependentUpon> <SubType>Designer</SubType> </EmbeddedResource> <EmbeddedResource Include="Dialogs\MDAProjectSetupControl.resx"> 1.2 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AssemblyInfo.cs Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/AssemblyInfo.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AssemblyInfo.cs 18 Apr 2006 16:14:43 -0000 1.1 +++ AssemblyInfo.cs 18 Apr 2006 17:18:51 -0000 1.2 @@ -34,7 +34,7 @@ // You can specify all the value or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] // // In order to sign your assembly you must specify a key to use. Refer to the 1.2 +0 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionProcessor.cs Index: MDASolutionProcessor.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionProcessor.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- MDASolutionProcessor.cs 18 Apr 2006 16:14:43 -0000 1.1 +++ MDASolutionProcessor.cs 18 Apr 2006 17:18:51 -0000 1.2 @@ -201,7 +201,6 @@ WriteFile(basePath + "\\Lib\\HashCodeProvider.dll", Resource1.lib_HashCodeProvider_dll); WriteFile(basePath + "\\Lib\\Iesi.Collections.dll", Resource1.lib_Iesi_Collections_dll); WriteFile(basePath + "\\Lib\\log4net.dll", Resource1.lib_log4net_dll); - WriteFile(basePath + "\\Lib\\Microsoft.ApplicationBlocks.UIProcess.dll", Resource1.lib_Microsoft_ApplicationBlocks_UIProcess_dll); WriteFile(basePath + "\\Lib\\NHibernate.Caches.Prevalence.dll", Resource1.lib_NHibernate_Caches_Prevalence_dll); WriteFile(basePath + "\\Lib\\NHibernate.Caches.SysCache.dll", Resource1.lib_NHibernate_Caches_SysCache_dll); WriteFile(basePath + "\\Lib\\NHibernate.dll", Resource1.lib_NHibernate_dll); 1.2 +2 -10 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Resource1.Designer.cs Index: Resource1.Designer.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Resource1.Designer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- Resource1.Designer.cs 18 Apr 2006 16:14:43 -0000 1.1 +++ Resource1.Designer.cs 18 Apr 2006 17:18:51 -0000 1.2 @@ -140,13 +140,6 @@ } } - internal static byte[] lib_Microsoft_ApplicationBlocks_UIProcess_dll { - get { - object obj = ResourceManager.GetObject("lib_Microsoft_ApplicationBlocks_UIProcess_dll", resourceCulture); - return ((byte[])(obj)); - } - } - internal static byte[] lib_NHibernate_Caches_Prevalence_dll { get { object obj = ResourceManager.GetObject("lib_NHibernate_Caches_Prevalence_dll", resourceCulture); @@ -389,7 +382,7 @@ ///using NHibernate; ///using AndroMDA.NHibernateSupport; /// - ///namespace SchemaExport + ///namespace ${wizard.solution.name}.SchemaExport ///{ /// class Program /// { @@ -400,8 +393,7 @@ /// Console.WriteLine("Usage:"); /// Console.WriteLine(" SchemaExport [script] [export]"); /// Console.WriteLine(" script=t outputs DDL to the console"); - /// Console.WriteLine(" export=t exports schema to the database"); - /// [rest of string was truncated]";. + /// Console.WriteLine(" export=t exports schema [rest of string was truncated]";. /// </summary> internal static string SchemaExport_Program_cs { get { 1.2 +0 -3 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Resource1.resx Index: Resource1.resx =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Resource1.resx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- Resource1.resx 18 Apr 2006 16:14:43 -0000 1.1 +++ Resource1.resx 18 Apr 2006 17:18:51 -0000 1.2 @@ -142,9 +142,6 @@ <data name="lib_log4net_dll" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>Resources\Lib\log4net.dll;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> - <data name="lib_Microsoft_ApplicationBlocks_UIProcess_dll" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>Resources\Lib\Microsoft.ApplicationBlocks.UIProcess.dll;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </data> <data name="lib_NHibernate_Caches_Prevalence_dll" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>Resources\Lib\NHibernate.Caches.Prevalence.dll;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> 1.2 +16 -5 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/OpenModelCommand.cs Index: OpenModelCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/OpenModelCommand.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- OpenModelCommand.cs 18 Apr 2006 16:14:44 -0000 1.1 +++ OpenModelCommand.cs 18 Apr 2006 17:18:51 -0000 1.2 @@ -9,6 +9,7 @@ using System.Text; using EnvDTE; +using Microsoft.VisualStudio.CommandBars; #endregion @@ -28,13 +29,15 @@ { try { + if (m_addInSettings.AutoMakeModelFileWritable) + { System.IO.FileAttributes attr = System.IO.File.GetAttributes(m_solutionManager.ModelFilePath); - if ((attr & System.IO.FileAttributes.ReadOnly) != 0) { attr -= System.IO.FileAttributes.ReadOnly; System.IO.File.SetAttributes(m_solutionManager.ModelFilePath, attr); } + } System.Diagnostics.Process.Start(magicDrawPath, m_solutionManager.ModelFilePath); } catch (Exception e) @@ -48,5 +51,13 @@ } } + public override void AddToToolbar(CommandBar toolbar, int position) + { + if (m_addInSettings.ShowOpenModelButton) + { + base.AddToToolbar(toolbar, position); + } + } + } } 1.2 +2 -2 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutOptionsPage.designer.cs Index: AboutOptionsPage.designer.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutOptionsPage.designer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AboutOptionsPage.designer.cs 18 Apr 2006 16:14:44 -0000 1.1 +++ AboutOptionsPage.designer.cs 18 Apr 2006 17:18:51 -0000 1.2 @@ -212,7 +212,6 @@ // // label8 // - this.label8.AutoSize = true; this.label8.BackColor = System.Drawing.Color.Black; this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.ForeColor = System.Drawing.Color.LightGray; @@ -220,7 +219,8 @@ this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(73, 13); this.label8.TabIndex = 0; - this.label8.Text = "v1.0 Beta 3"; + this.label8.Text = "v1.0"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // AboutOptionsPage // 1.1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/ExternalToolsOptionsPage.cs Index: ExternalToolsOptionsPage.cs =================================================================== // AndroMDA Visual Studio 2005 Add-In // (c)2006 Sapient Corporation #region Using statements using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using EnvDTE; using EnvDTE80; #endregion namespace AndroMDA.VS80AddIn.Dialogs { public partial class ExternalToolsOptionsPage : UserControl, EnvDTE.IDTToolsOptionsPage { static MDAOptionPageProperties m_properties = new MDAOptionPageProperties(); static AddInSettings m_settings = null; public ExternalToolsOptionsPage() { InitializeComponent(); } #region IDTToolsOptionsPage Members public void GetProperties(ref object PropertiesObject) { PropertiesObject = m_properties; System.Windows.Forms.MessageBox.Show("GetProperties"); } public void OnAfterCreated(DTE DTEObject) { m_settings = new AddInSettings(DTEObject); txtMavenExecutable.Text = m_settings.MavenExecutablePath; cbUseOfflineMode.Checked = m_settings.MavenUseOfflineMode; cbUseClean.Checked = m_settings.MavenCleanFirst; cbUseCustomCommandLine.Checked = m_settings.MavenUseCustomCommandLine; txtCustomCommandLine.Text = m_settings.MavenCustomCommandLine; txtMagicDrawPath.Text = m_settings.MagicDrawPath; cbMakeModelWritable.Checked = m_settings.AutoMakeModelFileWritable; UpdateState(); } protected void UpdateState() { cbUseClean.Enabled = !cbUseCustomCommandLine.Checked; cbUseOfflineMode.Enabled = !cbUseCustomCommandLine.Checked; txtCustomCommandLine.Enabled = cbUseCustomCommandLine.Checked; } protected override void OnEnter(EventArgs e) { base.OnEnter(e); } protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); } public void OnEnter() { } public void OnCancel() { } public void OnHelp() { } public void OnOK() { m_settings.MavenExecutablePath = txtMavenExecutable.Text; m_settings.MavenUseOfflineMode = cbUseOfflineMode.Checked; m_settings.MavenCleanFirst = cbUseClean.Checked; m_settings.MavenUseCustomCommandLine = cbUseCustomCommandLine.Checked; m_settings.MavenCustomCommandLine = txtCustomCommandLine.Text; m_settings.MagicDrawPath = txtMagicDrawPath.Text; m_settings.AutoMakeModelFileWritable = cbMakeModelWritable.Checked; } #endregion private void cbUseCustomCommandLine_CheckedChanged(object sender, EventArgs e) { UpdateState(); } private void button1_Click(object sender, EventArgs e) { string fileName = FileUtils.GetFilename(txtMavenExecutable.Text); string initialPath = FileUtils.GetPathFromFilename(txtMavenExecutable.Text); if (initialPath != string.Empty) { openFileDialog1.InitialDirectory = initialPath; } else { string mavenHome = System.Environment.GetEnvironmentVariable("MAVEN_HOME"); if (mavenHome != string.Empty) { openFileDialog1.InitialDirectory = mavenHome + "\\bin"; } else { openFileDialog1.InitialDirectory = string.Empty; } } openFileDialog1.FileName = fileName; if (openFileDialog1.ShowDialog() == DialogResult.OK) { txtMavenExecutable.Text = openFileDialog1.FileName; } } private void button2_Click(object sender, EventArgs e) { string fileName = FileUtils.GetFilename(txtMagicDrawPath.Text); string initialPath = FileUtils.GetPathFromFilename(txtMagicDrawPath.Text); openFileDialog1.InitialDirectory = initialPath; openFileDialog1.FileName = fileName; if (openFileDialog1.ShowDialog() == DialogResult.OK) { txtMagicDrawPath.Text = openFileDialog1.FileName; } } } } 1.1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/ExternalToolsOptionsPage.designer.cs Index: ExternalToolsOptionsPage.designer.cs =================================================================== namespace AndroMDA.VS80AddIn.Dialogs { partial class ExternalToolsOptionsPage { /// <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 Component 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.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExternalToolsOptionsPage)); this.label1 = new System.Windows.Forms.Label(); this.txtMavenExecutable = new System.Windows.Forms.TextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.button1 = new System.Windows.Forms.Button(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.cbUseClean = new System.Windows.Forms.CheckBox(); this.cbUseCustomCommandLine = new System.Windows.Forms.CheckBox(); this.cbUseOfflineMode = new System.Windows.Forms.CheckBox(); this.txtCustomCommandLine = new System.Windows.Forms.TextBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.button2 = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.txtMagicDrawPath = new System.Windows.Forms.TextBox(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.cbMakeModelWritable = new System.Windows.Forms.CheckBox(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(8, 18); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(132, 13); this.label1.TabIndex = 1; this.label1.Text = "Path to Maven executable"; // // txtMavenExecutable // this.txtMavenExecutable.Location = new System.Drawing.Point(11, 34); this.txtMavenExecutable.Name = "txtMavenExecutable"; this.txtMavenExecutable.Size = new System.Drawing.Size(340, 20); this.txtMavenExecutable.TabIndex = 0; // // groupBox2 // this.groupBox2.Controls.Add(this.button1); this.groupBox2.Controls.Add(this.cbUseClean); this.groupBox2.Controls.Add(this.cbUseCustomCommandLine); this.groupBox2.Controls.Add(this.cbUseOfflineMode); this.groupBox2.Controls.Add(this.label1); this.groupBox2.Controls.Add(this.txtCustomCommandLine); this.groupBox2.Controls.Add(this.txtMavenExecutable); this.groupBox2.Location = new System.Drawing.Point(0, 0); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(395, 114); this.groupBox2.TabIndex = 1; this.groupBox2.TabStop = false; this.groupBox2.Text = "Maven"; // // button1 // this.button1.ImageIndex = 0; this.button1.ImageList = this.imageList1; this.button1.Location = new System.Drawing.Point(357, 34); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(27, 20); this.button1.TabIndex = 3; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, "search.ico"); // // cbUseClean // this.cbUseClean.AutoSize = true; this.cbUseClean.Location = new System.Drawing.Point(168, 60); this.cbUseClean.Name = "cbUseClean"; this.cbUseClean.Size = new System.Drawing.Size(166, 17); this.cbUseClean.TabIndex = 2; this.cbUseClean.Text = "&Clean before generate (clean)"; this.cbUseClean.UseVisualStyleBackColor = true; // // cbUseCustomCommandLine // this.cbUseCustomCommandLine.AutoSize = true; this.cbUseCustomCommandLine.Location = new System.Drawing.Point(11, 83); this.cbUseCustomCommandLine.Name = "cbUseCustomCommandLine"; this.cbUseCustomCommandLine.Size = new System.Drawing.Size(153, 17); this.cbUseCustomCommandLine.TabIndex = 3; this.cbUseCustomCommandLine.Text = "Use custom c&ommand line:"; this.cbUseCustomCommandLine.UseVisualStyleBackColor = true; this.cbUseCustomCommandLine.CheckedChanged += new System.EventHandler(this.cbUseCustomCommandLine_CheckedChanged); // // cbUseOfflineMode // this.cbUseOfflineMode.AutoSize = true; this.cbUseOfflineMode.Location = new System.Drawing.Point(11, 60); this.cbUseOfflineMode.Name = "cbUseOfflineMode"; this.cbUseOfflineMode.Size = new System.Drawing.Size(123, 17); this.cbUseOfflineMode.TabIndex = 1; this.cbUseOfflineMode.Text = "Use &offline mode (-o)"; this.cbUseOfflineMode.UseVisualStyleBackColor = true; // // txtCustomCommandLine // this.txtCustomCommandLine.Location = new System.Drawing.Point(168, 81); this.txtCustomCommandLine.Name = "txtCustomCommandLine"; this.txtCustomCommandLine.Size = new System.Drawing.Size(216, 20); this.txtCustomCommandLine.TabIndex = 4; // // groupBox3 // this.groupBox3.Controls.Add(this.button2); this.groupBox3.Controls.Add(this.label3); this.groupBox3.Controls.Add(this.txtMagicDrawPath); this.groupBox3.Controls.Add(this.cbMakeModelWritable); this.groupBox3.Location = new System.Drawing.Point(0, 120); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(395, 87); this.groupBox3.TabIndex = 1; this.groupBox3.TabStop = false; this.groupBox3.Text = "UML Modeling Tool"; // // button2 // this.button2.ImageIndex = 0; this.button2.ImageList = this.imageList1; this.button2.Location = new System.Drawing.Point(357, 34); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(27, 20); this.button2.TabIndex = 3; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(8, 18); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(172, 13); this.label3.TabIndex = 1; this.label3.Text = "Path to external UML modeling tool"; // // txtMagicDrawPath // this.txtMagicDrawPath.Location = new System.Drawing.Point(11, 34); this.txtMagicDrawPath.Name = "txtMagicDrawPath"; this.txtMagicDrawPath.Size = new System.Drawing.Size(340, 20); this.txtMagicDrawPath.TabIndex = 0; // // openFileDialog1 // this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.Filter = "Executables (*.exe; *.bat)|*.exe;*.bat"; // // cbMakeModelWritable // this.cbMakeModelWritable.AutoSize = true; this.cbMakeModelWritable.Location = new System.Drawing.Point(11, 60); this.cbMakeModelWritable.Name = "cbMakeModelWritable"; this.cbMakeModelWritable.Size = new System.Drawing.Size(266, 17); this.cbMakeModelWritable.TabIndex = 1; this.cbMakeModelWritable.Text = "Make model file writable when Open Model clicked"; this.cbMakeModelWritable.UseVisualStyleBackColor = true; // // ExternalToolsOptionsPage // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox3); this.Controls.Add(this.groupBox2); this.Name = "ExternalToolsOptionsPage"; this.Size = new System.Drawing.Size(395, 289); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox txtMavenExecutable; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.CheckBox cbUseOfflineMode; private System.Windows.Forms.CheckBox cbUseClean; private System.Windows.Forms.CheckBox cbUseCustomCommandLine; private System.Windows.Forms.TextBox txtCustomCommandLine; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.Label label3; private System.Windows.Forms.TextBox txtMagicDrawPath; private System.Windows.Forms.Button button1; private System.Windows.Forms.ImageList imageList1; private System.Windows.Forms.Button button2; private System.Windows.Forms.OpenFileDialog openFileDialog1; private System.Windows.Forms.CheckBox cbMakeModelWritable; } } 1.1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/ExternalToolsOptionsPage.resx Index: ExternalToolsOptionsPage.resx =================================================================== <?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> <metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> <data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64"> <value> AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABO BAAAAk1TRnQBSQFMAwEBAAEEAQABBAEAARABAAEQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAMA ARADAAEBAQABIAYAARASAAEGAgEBBgE7AgEBYQFJAgIBiAEzAgEBTwEEAgEBBOwAAUUCAQF6AWUBbwF+ Af8BiwGBAaMB/wFgAhIB0wE2AgEBVgEEAgEBBOgAAT0CAQFlAU0BrwL/AUkBdwHDAf8BiwGBAaMB/wFg AhIB0wE2AgEBVgEEAgEBBOgAAVQBcAGcAfABTQGvAv8BSAF5AcYB/wGLAYEBowH/AWACEgHTATYCAQFW AQQCAQEE6AABVAFwAZwB8AFNAa8C/wFIAXkBxgH/AYsBgQGjAf8BYAISAdMBMAIBAUkEAAECAwEBAgMB AQIDAQECAwHYAAFUAXABnAHwAU0BrwL/AUgBeQHGAf8BiwGBAaMB/wFDAgEBdAEdAgEBJwE/AgEBaQFN AgIBkgFOAgIBlQFEAgEBdwEiAgEBMAEEAgEBBNQAAVQBcAGcAfABTQGvAv8DggH/AY0CZwHyAbYBhQGB Af8B7QHSAagC/wH6AccB/wH8AfgBzAH/AdYBtgGlAf8BXgITAdcBPgIBAWcBBgIBAQbUAAEDAgEBAgHA ArYB/wHkAbQBlAL/AfUBygL/Af0BygP/AdYD/wHgA/8B6QH/AfoB9wHsAf8BbQIkAeUBMgIBAU7UAAEC AwEB0gGiAZUC/wH4Ac4C/wHpAbYD/wHOA/8B3wP/Ae8J/wHoAdsBvgH/AVECAgGh1AABHwIBASoB/wHb AagC/wHnAbQC/wHqAbcD/wHQA/8B4AP/AfED/wH4A/8B6AP/AdgB/wFsAiUB6dQAAUwCAwGJAf8B7gHE Av8B1gGjAv8B5AGxAv8B/QHKA/8B2gP/AeQD/wHmA/8B3wP/AdEB/wGaAmsB/9QAAS0CAQFEAf8B7AG/ Av8B3gGtAv8B7wHCAv8B9QHCAv8B/gHMA/8B1AP/AdUD/wHQAv8B+AHKAf8BeQI3AfDYAAHwAdYBsAL/ AfwB5wL/AfIB2wL/AdsBrAL/AfMBwAL/AfABvQL/AfABvQL/AfABvQL/AeMBsAH/AVYCBQGw2AABcgId AdEC/wH5Bv8B5gG7Av8B3wGvAv8B2gGnAv8B6AG1Av8B7wHFAf8BtQGEAX4B/wEYAgEBH9wAAZUCTwHw Af8B9wHYAv8B/AHYAv8B/AHPAv8B+wHPAv8B2wGrAf8BvwGPAYUB/wEaAgEBIuQAASQCAQEyAXoCKQHi AawCfgH/AcoClwH/AUgCAgGBAQYCAQEGyAABQgFNAT4HAAE+AwABKAMAAUADAAEQAwABAQEAAQEFAAGA FwAD/wEAAQcB/wYAAQMB/wYAAQEB/wYAAYAB/wYAAcABhwYAAeABAQYAAfAHAAH4BwAB+AcAAfgHAAH4 BwAB+AcAAfwHAAH8BwAB/gEBBgAB/wEDBgAL </value> </data> <metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>122, 17</value> </metadata> </root> 1.1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/GeneralOptionsPage.Designer.cs Index: GeneralOptionsPage.Designer.cs =================================================================== namespace AndroMDA.VS80AddIn.Dialogs { partial class GeneralOptionsPage { /// <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 Component 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.groupBox1 = new System.Windows.Forms.GroupBox(); this.label2 = new System.Windows.Forms.Label(); this.txtResyncIgnoreList = new System.Windows.Forms.TextBox(); this.cbShowAboutButton = new System.Windows.Forms.CheckBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.cbShowOpenModelButton = new System.Windows.Forms.CheckBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.cbShowOpenModelButton); this.groupBox1.Controls.Add(this.cbShowAboutButton); this.groupBox1.Location = new System.Drawing.Point(0, 72); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(395, 68); this.groupBox1.TabIndex = 2; this.groupBox1.TabStop = false; this.groupBox1.Text = "Appearance"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(8, 18); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(339, 13); this.label2.TabIndex = 1; this.label2.Text = "Files to ignore in solution explorer (separate each file with a semi-colon)"; // // txtResyncIgnoreList // this.txtResyncIgnoreList.Location = new System.Drawing.Point(12, 34); this.txtResyncIgnoreList.Name = "txtResyncIgnoreList"; this.txtResyncIgnoreList.Size = new System.Drawing.Size(359, 20); this.txtResyncIgnoreList.TabIndex = 1; // // cbShowAboutButton // this.cbShowAboutButton.AutoSize = true; this.cbShowAboutButton.Location = new System.Drawing.Point(11, 19); this.cbShowAboutButton.Name = "cbShowAboutButton"; this.cbShowAboutButton.Size = new System.Drawing.Size(166, 17); this.cbShowAboutButton.TabIndex = 0; this.cbShowAboutButton.Text = "&Show about button on toolbar"; this.cbShowAboutButton.UseVisualStyleBackColor = true; // // groupBox2 // this.groupBox2.Controls.Add(this.label2); this.groupBox2.Controls.Add(this.txtResyncIgnoreList); this.groupBox2.Location = new System.Drawing.Point(0, 0); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(395, 66); this.groupBox2.TabIndex = 2; this.groupBox2.TabStop = false; this.groupBox2.Text = "General"; // // cbShowOpenModelButton // this.cbShowOpenModelButton.AutoSize = true; this.cbShowOpenModelButton.Location = new System.Drawing.Point(11, 42); this.cbShowOpenModelButton.Name = "cbShowOpenModelButton"; this.cbShowOpenModelButton.Size = new System.Drawing.Size(194, 17); this.cbShowOpenModelButton.TabIndex = 0; this.cbShowOpenModelButton.Text = "Show &open model button on toolbar"; this.cbShowOpenModelButton.UseVisualStyleBackColor = true; // // GeneralOptionsPage // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Name = "GeneralOptionsPage"; this.Size = new System.Drawing.Size(395, 289); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox txtResyncIgnoreList; private System.Windows.Forms.CheckBox cbShowAboutButton; private System.Windows.Forms.CheckBox cbShowOpenModelButton; private System.Windows.Forms.GroupBox groupBox2; } } 1.1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/GeneralOptionsPage.cs Index: GeneralOptionsPage.cs =================================================================== // AndroMDA Visual Studio 2005 Add-In // (c)2006 Sapient Corporation #region Using statements using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using EnvDTE; using EnvDTE80; #endregion namespace AndroMDA.VS80AddIn.Dialogs { public partial class GeneralOptionsPage : UserControl, EnvDTE.IDTToolsOptionsPage { static MDAOptionPageProperties m_properties = new MDAOptionPageProperties(); static AddInSettings m_settings = null; public GeneralOptionsPage() { InitializeComponent(); } #region IDTToolsOptionsPage Members public void GetProperties(ref object PropertiesObject) { PropertiesObject = m_properties; } public void OnAfterCreated(DTE DTEObject) { m_settings = new AddInSettings(DTEObject); cbShowAboutButton.Checked = m_settings.ShowAboutButton; cbShowOpenModelButton.Checked = m_settings.ShowOpenModelButton; txtResyncIgnoreList.Text = m_settings.ResyncIgnoreList; UpdateState(); } protected void UpdateState() { } protected override void OnEnter(EventArgs e) { base.OnEnter(e); } protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); } public void OnEnter() { } public void OnCancel() { } public void OnHelp() { } public void OnOK() { m_settings.ShowAboutButton = cbShowAboutButton.Checked; m_settings.ShowOpenModelButton = cbShowOpenModelButton.Checked; m_settings.ResyncIgnoreList = txtResyncIgnoreList.Text; } #endregion } } 1.1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/GeneralOptionsPage.resx Index: GeneralOptionsPage.resx =================================================================== <?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> 1.1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/MDAOptionPageProperties.cs Index: MDAOptionPageProperties.cs =================================================================== // AndroMDA Visual Studio 2005 Add-In // (c)2006 Sapient Corporation #region Using statements using System; using System.Collections.Generic; using System.Text; #endregion namespace AndroMDA.VS80AddIn.Dialogs { [System.Runtime.InteropServices.ComVisible(true)] [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDual)] public class MDAOptionPageProperties { } } |