From: Chris M. <cm...@us...> - 2006-05-03 20:23:14
|
User: cmicali Date: 06/05/03 13:23:06 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn AndroMDA VS2005 Add-In Readme.rtf etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn AddInSettings.cs MDASolutionManager.cs MavenProxy.cs WizardSolutionProcessor.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands RunSchemaExportCommand.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs AboutDialog.cs AboutDialog.designer.cs AboutOptionsPage.cs AboutOptionsPage.designer.cs AboutOptionsPage.resx ExternalToolsOptionsPage.cs ExternalToolsOptionsPage.designer.cs ExternalToolsOptionsPage.resx GeneralOptionsPage.Designer.cs GeneralOptionsPage.cs MDASolutionWizard.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Utils AsyncOperation.cs VSExternalToolProxy.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/Installer AndroMDA VS2005 Add-In Setup.exe Log: - Cleaned up about dialog - Removed maven path option since it is no longer used (MAVEN_HOME variable i used instead) - Updated WizardSolutionProcessor to use AsyncOperation instead of a custom thread - Added some comments Revision Changes Path No revision No revision No revision No revision 1.4 +21 -53 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.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- AddInSettings.cs 2 May 2006 04:47:10 -0000 1.3 +++ AddInSettings.cs 3 May 2006 20:23:05 -0000 1.4 @@ -31,6 +31,8 @@ #endregion + #region Constructors + public AddInSettings(DTE applicationObject) { m_applicationObject = applicationObject; @@ -41,15 +43,6 @@ FirstRun = false; AddInBuild = ADDIN_SETTINGS_VERSION; ResyncIgnoreList = "CVS;.cvsignore;.svn;.svnignore"; - string mavenHome = System.Environment.GetEnvironmentVariable("MAVEN_HOME"); - if (mavenHome != string.Empty) - { - MavenExecutablePath = mavenHome + "\\bin\\maven.bat"; - } - else - { - MavenExecutablePath = "maven.bat"; - } MavenUseOfflineMode = true; MavenCleanFirst = true; MavenUseCustomCommandLine = false; @@ -60,6 +53,8 @@ } } + #endregion + #region General settings public bool FirstRun @@ -107,12 +102,6 @@ #region Maven settings - public string MavenExecutablePath - { - get { return m_settings["AMDAMavenPath"]; } - set { m_settings["AMDAMavenPath"] = value; } - } - public bool MavenUseOfflineMode { get { return m_settings.GetBool("AMDAMavenOffln"); } @@ -207,44 +196,21 @@ set { m_settings.SetBool("ADMAShowSCEX", value); } } - /* - private string GetCommandSetting(AddInCommandBase command, string setting) - { - setting = "AMDAC" + command.Name + setting; - return m_settings.GetSetting(setting); - } - - private void SetCommandSetting(AddInCommandBase command, string setting, string value) - { - setting = "AMDAC" + command.Name + setting; - m_settings.SetSetting(setting, value); - } - - public bool GetCommandIsVisible(AddInCommandBase command) - { - string setting = GetCommandSetting(command, "Vs"); - if (setting == string.Empty) - { - return true; - } - else + public bool HideSchemaExportButtonIfProjectUnavailable { - return bool.Parse(setting); - } + get { return m_settings.GetBool("ADMAHideSCEX", true); } + set { m_settings.SetBool("ADMAHideSCEX", value); } } - public void SetCommandIsVisible(AddInCommandBase command, bool value) - { - SetCommandSetting(command, "Vs", value.ToString()); - } - */ - #endregion + #region Helper methods + public bool IsInIgnoreList(string file) { return IsInIgnoreList(file, true); } + public bool IsInIgnoreList(string file, bool stripPath) { // Get the list of files to ignore @@ -260,5 +226,7 @@ return false; } + #endregion + } } 1.5 +36 -17 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs Index: MDASolutionManager.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- MDASolutionManager.cs 2 May 2006 21:33:42 -0000 1.4 +++ MDASolutionManager.cs 3 May 2006 20:23:05 -0000 1.5 @@ -39,6 +39,7 @@ private MDAProject m_coreProject = null; private MDAProject m_commonProject = null; + private MDAProject m_schemaExportProject = null; private bool m_restartBuild = false; private Mutex m_restartBuildMutex = new Mutex(false); @@ -78,6 +79,11 @@ get { return m_commonProject; } } + public MDAProject SchemaExportProject + { + get { return m_schemaExportProject; } + } + public bool IsEnabled { get { return m_enabled && m_applicationObject.Solution.IsOpen; } @@ -148,6 +154,14 @@ } } + public bool IsSchemaExportProjectAvailable + { + get + { + return m_projectProperties["maven.andromda.schemaexport.available"].ToLower().Trim() == "true"; + } + } + #endregion public MDASolutionManager(DTE applicationObject, AddInSettings addInSettings) @@ -183,6 +197,7 @@ m_coreProject = null; m_commonProject = null; + m_schemaExportProject = null; // Iterate through the projects and search for the core and common directories foreach (Project p in m_applicationObject.Solution.Projects) @@ -209,6 +224,14 @@ string generatedPath = m_projectProperties.GetPath("maven.andromda.common.generated.dir"); m_commonProject = new MDAProject(p, FileUtils.GetFilename(projectPath), projectPath, generatedPath, string.Empty); } + + // Check if the current (schemaexport) directory is the same as the project directory + if (IsSchemaExportProjectAvailable && FileUtils.CompareDirectories(projectPath, m_projectProperties.GetPath("maven.andromda.schemaexport.dir"))) + { + // if so this is the common project + m_schemaExportProject = new MDAProject(p, FileUtils.GetFilename(projectPath), projectPath, string.Empty, string.Empty); + } + } catch (NotImplementedException) { @@ -286,26 +309,22 @@ { try { - if (m_projectProperties["maven.andromda.schemaexport.available"].ToLower().Trim() == "true") + if (IsSchemaExportProjectAvailable && m_schemaExportProject != null) { - string schemaExportProjectPath = FileUtils.CleanDirectory(m_projectProperties["maven.andromda.schemaexport.dir"]); string solutionName = VSSolutionUtils.GetSolutionName(m_applicationObject.Solution); - Project schemaExportProject = VSSolutionUtils.FindProjectByDirectory(schemaExportProjectPath, m_applicationObject.Solution); - if (schemaExportProject != null) - { - string schamaExportName = FileUtils.GetFilename(schemaExportProject.FileName).Replace(".csproj", string.Empty); // Activate the solution explorer window m_applicationObject.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate(); // Grab the UIHierarchy object for the schema export project - UIHierarchyItem item = ((UIHierarchy)m_applicationObject.ActiveWindow.Object).GetItem(solutionName + "\\" + schamaExportName); + UIHierarchyItem item = ((UIHierarchy)m_applicationObject.ActiveWindow.Object).GetItem(solutionName + "\\" + m_schemaExportProject.Name); // Select the project item.Select(vsUISelectionType.vsUISelectionTypeSelect); // Execute the Debug.StartNewInstance command m_applicationObject.ExecuteCommand("ClassViewContextMenus.ClassViewProject.Debug.Startnewinstance", string.Empty); - return; } + else + { + AddInUtils.ShowWarning("The schema export project for this solution could not be found.\nPlease ensure the following variables are set correctly in mda\\project.properties\n\nmaven.andromda.schemaexport.available: true\nmaven.andromda.schemaexport.dir: <path to schema export project>"); } - AddInUtils.ShowWarning("The schema export for this project could not be found.\nPlease ensure the following variables are set correctly in mda\\project.properties\n\nmaven.andromda.schemaexport.available: true\nmaven.andromda.schemaexport.dir: <path to schema export project>"); } catch (Exception e) { 1.3 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MavenProxy.cs Index: MavenProxy.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MavenProxy.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- MavenProxy.cs 28 Apr 2006 04:40:37 -0000 1.2 +++ MavenProxy.cs 3 May 2006 20:23:05 -0000 1.3 @@ -106,7 +106,7 @@ this.OutputWindowPane.Clear(); this.OutputWindowPane.Activate(); - this.ExecutablePath = m_addInSettings.MavenExecutablePath; + //this.ExecutablePath = m_addInSettings.MavenExecutablePath; if (m_addInSettings.MavenUseCustomCommandLine) { 1.2 +81 -48 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/WizardSolutionProcessor.cs Index: WizardSolutionProcessor.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/WizardSolutionProcessor.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- WizardSolutionProcessor.cs 2 May 2006 04:47:10 -0000 1.1 +++ WizardSolutionProcessor.cs 3 May 2006 20:23:05 -0000 1.2 @@ -6,8 +6,8 @@ using System; using System.IO; -using System.Collections.Generic; using System.Text; +using System.ComponentModel; using System.Threading; using EnvDTE; @@ -21,13 +21,16 @@ namespace AndroMDA.VS80AddIn { - public class WizardSolutionProcessor + /// <summary> + /// This class will process an existing solution and add + /// AndroMDA support. This is used solely by the MDA Solution Wizard. + /// </summary> + public class WizardSolutionProcessor : AsyncOperation { #region Member variables private DTE m_applicationObject = null; - private System.Threading.Thread m_thread = null; public delegate void SolutionProcessingCompleteHandler(bool success, string errorMessage); public delegate void SolutionProcessingStatusHandler(string status); @@ -39,36 +42,27 @@ #endregion - public WizardSolutionProcessor(ConfigFile config, DTE applicationObject) + #region Constructors + + public WizardSolutionProcessor(ConfigFile config, DTE applicationObject) : base() { m_configuration = config; m_applicationObject = applicationObject; } - private void AddToStatus(string message) - { - if (OnSolutionProcessingStatus != null) - { - if (OnSolutionProcessingStatus.Target is System.Windows.Forms.Control) + public WizardSolutionProcessor(ISynchronizeInvoke target, ConfigFile config, DTE applicationObject) : base(target) { - System.Windows.Forms.Control target = OnSolutionProcessingStatus.Target as System.Windows.Forms.Control; - target.BeginInvoke(OnSolutionProcessingStatus, new Object[] { message }); - } - else - { - OnSolutionProcessingStatus(message); - } - } - System.Threading.Thread.Sleep(100); + m_configuration = config; + m_applicationObject = applicationObject; } - public void EnableSolutionForMDA() - { - m_thread = new System.Threading.Thread(new ThreadStart(this.UpdateSolutionThread)); - m_thread.Start(); - } + #endregion - private void UpdateSolutionThread() + /// <summary> + /// The base class calls this method on a worker + /// thread when the Start method is called. + /// </summary> + protected override void DoWork() { bool success = false; string errorMessage = string.Empty; @@ -83,23 +77,13 @@ } finally { - // Fire the processing complete event - if (OnSolutionProcessingComplete != null) - { - if (OnSolutionProcessingComplete.Target is System.Windows.Forms.Control) - { - System.Windows.Forms.Control target = OnSolutionProcessingComplete.Target as System.Windows.Forms.Control; - target.BeginInvoke(OnSolutionProcessingComplete, new Object[] { success, errorMessage }); - } - else - { - OnSolutionProcessingComplete(success, errorMessage); - } - } + FireAsync(OnSolutionProcessingComplete, new Object[] { success, errorMessage }); } } - + /// <summary> + /// The actually processing happens in this method + /// </summary> private void UpdateSolution() { string basePath = m_configuration["solution.path"]; @@ -120,6 +104,7 @@ AddToStatus("Using existing common project " + m_configuration["projects.common.name"] + "..."); commonProject = VSSolutionUtils.FindProjectByName(m_configuration["projects.common.name"], m_applicationObject.Solution); } + //CreateDirectory(basePath + "\\" + m_configuration["projects.common.dir"] + "\\src"); //CreateDirectory(basePath + "\\" + m_configuration["projects.common.dir"] + "\\target"); commonProject.ProjectItems.AddFolder("src", Constants.vsProjectItemKindPhysicalFolder); @@ -228,15 +213,37 @@ } + #region Helper methods + + /// <summary> + /// Adds a line of text to the status window + /// </summary> + /// <param name="message">The message.</param> + private void AddToStatus(string message) + { + FireAsync(OnSolutionProcessingStatus, new Object[] { message }); + System.Threading.Thread.Sleep(0); + } + + /// <summary> + /// Adds a project reference to a project in the solution + /// </summary> + /// <param name="destination">The destination project.</param> + /// <param name="projectToReference">The project to reference.</param> private void AddProjectReference(Project destination, Project projectToReference) { VSProject proj = destination.Object as VSProject; proj.References.AddProject(projectToReference); } - private void AddBinaryReferences(Project p, string basePath) + /// <summary> + /// Adds a binary reference to a project in the solution. + /// </summary> + /// <param name="p">The destination project</param> + /// <param name="basePath">The base path.</param> + private void AddBinaryReferences(Project destination, string basePath) { - VSProject proj = p.Object as VSProject; + VSProject proj = destination.Object as VSProject; proj.References.Add(basePath + "\\Lib\\AndroMDA.NHibernateSupport.dll"); proj.References.Add(basePath + "\\Lib\\Castle.DynamicProxy.dll"); proj.References.Add(basePath + "\\Lib\\HashCodeProvider.dll"); @@ -247,6 +254,10 @@ proj.References.Add(basePath + "\\Lib\\NHibernate.Nullables2.dll"); } + /// <summary> + /// Creates a directory + /// </summary> + /// <param name="directoryName">Name of the directory.</param> private void CreateDirectory(string directoryName) { if (System.IO.Directory.Exists(directoryName)) @@ -267,6 +278,11 @@ } } + /// <summary> + /// Parses and resolves all variables in a string + /// </summary> + /// <param name="content">The string to parse.</param> + /// <returns></returns> private string ParseVariables(string content) { foreach (string key in m_configuration.Keys) @@ -280,6 +296,11 @@ return content; } + /// <summary> + /// Writes a file to disk. This will call ParseVariables() on the content. + /// </summary> + /// <param name="filePath">The file to which to write.</param> + /// <param name="fileContent">The content to write to the file.</param> private void WriteFile(string filePath, string fileContent) { if (System.IO.File.Exists(filePath)) @@ -295,6 +316,12 @@ sw.Close(); } + /// <summary> + /// Writes content to a file into a ZIP file + /// </summary> + /// <param name="fileNameInZip">The file name in zip.</param> + /// <param name="destinationFile">The destination zip file.</param> + /// <param name="fileContent">Content of the file.</param> private void WriteCompressedFile(string fileNameInZip, string destinationFile, string fileContent) { if (System.IO.File.Exists(destinationFile)) @@ -328,6 +355,11 @@ zip.Close(); } + /// <summary> + /// Writes a binary file to disk. + /// </summary> + /// <param name="filePath">The file to which to write.</param> + /// <param name="fileContent">The content to write to the file.</param> private void WriteFile(string filePath, Byte[] fileContent) { if (System.IO.File.Exists(filePath)) @@ -343,6 +375,7 @@ fs.Close(); } + #endregion } } 1.3 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/RunSchemaExportCommand.cs Index: RunSchemaExportCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/RunSchemaExportCommand.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- RunSchemaExportCommand.cs 2 May 2006 21:33:43 -0000 1.2 +++ RunSchemaExportCommand.cs 3 May 2006 20:23:05 -0000 1.3 @@ -40,7 +40,7 @@ public override void QueryStatus(string commandName, vsCommandStatusTextWanted neededText, ref vsCommandStatus status, ref object commandText) { base.QueryStatus(commandName, neededText, ref status, ref commandText); - if (!m_addInSettings.ShowSchemaExportButton) + if (!m_addInSettings.ShowSchemaExportButton || (!m_solutionManager.IsSchemaExportProjectAvailable && m_addInSettings.HideSchemaExportButtonIfProjectUnavailable)) { status = vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusInvisible; } 1.2 +28 -16 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutDialog.cs Index: AboutDialog.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutDialog.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AboutDialog.cs 18 Apr 2006 16:14:44 -0000 1.1 +++ AboutDialog.cs 3 May 2006 20:23:06 -0000 1.2 @@ -18,14 +18,23 @@ { public partial class AboutDialog : Form { + + #region Member variables + private MDASolutionManager m_solutionManager; + #endregion + + #region Properties + public MDASolutionManager MDASolutionManager { get { return m_solutionManager; } set { m_solutionManager = value; } } + #endregion + public AboutDialog() { InitializeComponent(); @@ -47,12 +56,18 @@ { aboutOptionsPage1.LastGenerated = m_solutionManager.MavenLastRunDateTime.ToString(); } - else + if (m_solutionManager.CommonProject != null) { - aboutOptionsPage1.LastGenerated = "Never"; - } aboutOptionsPage1.CommonProject = m_solutionManager.CommonProject.Name; + } + if (m_solutionManager.CoreProject != null) + { aboutOptionsPage1.CoreProject = m_solutionManager.CoreProject.Name; + } + if (m_solutionManager.SchemaExportProject != null) + { + aboutOptionsPage1.SchemaExportProject = m_solutionManager.SchemaExportProject.Name; + } string modelFile = m_solutionManager.ModelFilePath; modelFile = modelFile.Replace(m_solutionManager.SolutionPath, string.Empty); int position = modelFile.LastIndexOf('!'); @@ -60,15 +75,11 @@ { modelFile = modelFile.Substring(0, position); } - aboutOptionsPage1.ModelFile = modelFile; + aboutOptionsPage1.ModelFile = FileUtils.GetFilename(modelFile); } else { aboutOptionsPage1.SolutionUsingMDA = "No"; - aboutOptionsPage1.LastGenerated = "n/a"; - aboutOptionsPage1.CommonProject = "n/a"; - aboutOptionsPage1.CoreProject = "n/a"; - aboutOptionsPage1.ModelFile = "n/a"; } } @@ -76,5 +87,6 @@ { button1.Focus(); } + } } \ No newline at end of file 1.2 +41 -40 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutDialog.designer.cs Index: AboutDialog.designer.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutDialog.designer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AboutDialog.designer.cs 18 Apr 2006 16:14:44 -0000 1.1 +++ AboutDialog.designer.cs 3 May 2006 20:23:06 -0000 1.2 @@ -35,19 +35,20 @@ // button1 // this.button1.BackColor = System.Drawing.SystemColors.Control; - this.button1.Location = new System.Drawing.Point(161, 234); + this.button1.Location = new System.Drawing.Point(155, 297); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(73, 25); - this.button1.TabIndex = 0; + this.button1.Size = new System.Drawing.Size(84, 25); + this.button1.TabIndex = 2; this.button1.Text = "&Ok"; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // aboutOptionsPage1 // + this.aboutOptionsPage1.Dock = System.Windows.Forms.DockStyle.Top; this.aboutOptionsPage1.Location = new System.Drawing.Point(0, 0); this.aboutOptionsPage1.Name = "aboutOptionsPage1"; - this.aboutOptionsPage1.Size = new System.Drawing.Size(395, 228); + this.aboutOptionsPage1.Size = new System.Drawing.Size(394, 291); this.aboutOptionsPage1.TabIndex = 1; // // AboutDialog @@ -55,10 +56,10 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; - this.ClientSize = new System.Drawing.Size(394, 275); + this.ClientSize = new System.Drawing.Size(394, 331); this.ControlBox = false; - this.Controls.Add(this.aboutOptionsPage1); this.Controls.Add(this.button1); + this.Controls.Add(this.aboutOptionsPage1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "AboutDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; @@ -71,7 +72,7 @@ #endregion - private System.Windows.Forms.Button button1; private AboutOptionsPage aboutOptionsPage1; + private System.Windows.Forms.Button button1; } } \ No newline at end of file 1.3 +38 -24 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutOptionsPage.cs Index: AboutOptionsPage.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutOptionsPage.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- AboutOptionsPage.cs 28 Apr 2006 16:07:24 -0000 1.2 +++ AboutOptionsPage.cs 3 May 2006 20:23:06 -0000 1.3 @@ -18,9 +18,23 @@ { public partial class AboutOptionsPage : UserControl, EnvDTE.IDTToolsOptionsPage { + + #region Member variables + + static AboutOptionsPage m_properties = new AboutOptionsPage(); + + #endregion + + #region Properties + public string SolutionUsingMDA { - set { lblSolutionUsingMDA.Text = value; } + set + { + bool solutionEnabled = value == "Yes"; + pnlSolutionInfo.Visible = solutionEnabled; + lblSolutionUsingMDA.Text = value; + } } public string LastGenerated @@ -43,23 +57,27 @@ set { lblModelFile.Text = value; } } - static AboutOptionsPage m_properties = new AboutOptionsPage(); + public string SchemaExportProject + { + set { lblSchemaExportProject.Text = value; } + } + + #endregion public AboutOptionsPage() { InitializeComponent(); //linkLabel1.Links.Add(0, linkLabel1.Text.Length); - lblVersion.Text = VS80AddIn.ADD_IN_VERSION; + lblVersion.Text = "v" + VS80AddIn.ADD_IN_VERSION; } #region IDTToolsOptionsPage Members - public void GetProperties(ref object PropertiesObject) + public void OnAfterCreated(EnvDTE.DTE DTEObject) { - PropertiesObject = m_properties; } - public void OnAfterCreated(EnvDTE.DTE DTEObject) + public void OnOK() { } @@ -71,8 +89,9 @@ { } - public void OnOK() + public void GetProperties(ref object PropertiesObject) { + PropertiesObject = m_properties; } #endregion @@ -83,11 +102,6 @@ System.Diagnostics.Process.Start(label.Text); } - private void AboutOptionsPage_Load(object sender, EventArgs e) - { - - } - } [System.Runtime.InteropServices.ComVisible(true)] 1.4 +267 -149 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.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- AboutOptionsPage.designer.cs 28 Apr 2006 16:07:24 -0000 1.3 +++ AboutOptionsPage.designer.cs 3 May 2006 20:23:06 -0000 1.4 @@ -28,152 +28,52 @@ /// </summary> private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutOptionsPage)); + this.linkLabel2 = new System.Windows.Forms.LinkLabel(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.lblVersion = new System.Windows.Forms.Label(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.pnlSolutionInfo = new System.Windows.Forms.Panel(); + this.label7 = new System.Windows.Forms.Label(); this.lblModelFile = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.lblSchemaExportProject = new System.Windows.Forms.Label(); this.lblCommonProject = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); this.lblLastGenerated = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); this.lblCoreProject = new System.Windows.Forms.Label(); this.lblSolutionUsingMDA = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); - this.linkLabel2 = new System.Windows.Forms.LinkLabel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.lblVersion = new System.Windows.Forms.Label(); - this.groupBox2.SuspendLayout(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label8 = new System.Windows.Forms.Label(); + this.imageList1 = new System.Windows.Forms.ImageList(this.components); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.pnlSolutionInfo.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.groupBox1.SuspendLayout(); this.SuspendLayout(); // - // groupBox2 - // - this.groupBox2.Controls.Add(this.lblModelFile); - this.groupBox2.Controls.Add(this.lblCommonProject); - this.groupBox2.Controls.Add(this.lblLastGenerated); - this.groupBox2.Controls.Add(this.lblCoreProject); - this.groupBox2.Controls.Add(this.lblSolutionUsingMDA); - this.groupBox2.Controls.Add(this.label6); - this.groupBox2.Controls.Add(this.label5); - this.groupBox2.Controls.Add(this.label7); - this.groupBox2.Controls.Add(this.label4); - this.groupBox2.Controls.Add(this.label3); - this.groupBox2.Location = new System.Drawing.Point(3, 101); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(389, 122); - this.groupBox2.TabIndex = 3; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "Status"; - // - // lblModelFile - // - this.lblModelFile.AutoSize = true; - this.lblModelFile.Location = new System.Drawing.Point(169, 98); - this.lblModelFile.Name = "lblModelFile"; - this.lblModelFile.Size = new System.Drawing.Size(24, 13); - this.lblModelFile.TabIndex = 1; - this.lblModelFile.Text = "n/a"; - // - // lblCommonProject - // - this.lblCommonProject.AutoSize = true; - this.lblCommonProject.Location = new System.Drawing.Point(169, 78); - this.lblCommonProject.Name = "lblCommonProject"; - this.lblCommonProject.Size = new System.Drawing.Size(24, 13); - this.lblCommonProject.TabIndex = 1; - this.lblCommonProject.Text = "n/a"; - // - // lblLastGenerated - // - this.lblLastGenerated.AutoSize = true; - this.lblLastGenerated.Location = new System.Drawing.Point(169, 38); - this.lblLastGenerated.Name = "lblLastGenerated"; - this.lblLastGenerated.Size = new System.Drawing.Size(24, 13); - this.lblLastGenerated.TabIndex = 1; - this.lblLastGenerated.Text = "n/a"; - // - // lblCoreProject - // - this.lblCoreProject.AutoSize = true; - this.lblCoreProject.Location = new System.Drawing.Point(169, 58); - this.lblCoreProject.Name = "lblCoreProject"; - this.lblCoreProject.Size = new System.Drawing.Size(24, 13); - this.lblCoreProject.TabIndex = 1; - this.lblCoreProject.Text = "n/a"; - // - // lblSolutionUsingMDA - // - this.lblSolutionUsingMDA.AutoSize = true; - this.lblSolutionUsingMDA.Location = new System.Drawing.Point(169, 18); - this.lblSolutionUsingMDA.Name = "lblSolutionUsingMDA"; - this.lblSolutionUsingMDA.Size = new System.Drawing.Size(40, 13); - this.lblSolutionUsingMDA.TabIndex = 1; - this.lblSolutionUsingMDA.Text = "yes/no"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(105, 98); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(58, 13); - this.label6.TabIndex = 0; - this.label6.Text = "Model File:"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(76, 78); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(87, 13); - this.label5.TabIndex = 0; - this.label5.Text = "Common Project:"; - this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(80, 38); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(83, 13); - this.label7.TabIndex = 0; - this.label7.Text = "Last Generated:"; - this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(95, 58); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(68, 13); - this.label4.TabIndex = 0; - this.label4.Text = "Core Project:"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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(155, 13); - this.label3.TabIndex = 0; - this.label3.Text = "Solution is AndroMDA Enabled:"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // // linkLabel2 // - this.linkLabel2.AutoSize = true; - this.linkLabel2.BackColor = System.Drawing.Color.Black; - this.linkLabel2.Location = new System.Drawing.Point(257, 72); + this.linkLabel2.ForeColor = System.Drawing.Color.Black; + this.linkLabel2.Location = new System.Drawing.Point(6, 50); this.linkLabel2.Name = "linkLabel2"; - this.linkLabel2.Size = new System.Drawing.Size(135, 13); + this.linkLabel2.Size = new System.Drawing.Size(369, 17); this.linkLabel2.TabIndex = 1; this.linkLabel2.TabStop = true; this.linkLabel2.Text = "http://www.andromda.org/"; - this.linkLabel2.Visible = false; + this.linkLabel2.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked); // // label1 @@ -215,29 +115,238 @@ this.lblVersion.BackColor = System.Drawing.Color.Black; this.lblVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblVersion.ForeColor = System.Drawing.Color.LightGray; - this.lblVersion.Location = new System.Drawing.Point(319, 56); + this.lblVersion.Location = new System.Drawing.Point(249, 56); this.lblVersion.Name = "lblVersion"; this.lblVersion.Size = new System.Drawing.Size(73, 13); this.lblVersion.TabIndex = 0; this.lblVersion.Text = "version"; - this.lblVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.lblVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.ImageList = this.imageList1; + this.tabControl1.Location = new System.Drawing.Point(0, 99); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(395, 190); + this.tabControl1.TabIndex = 5; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.groupBox2); + this.tabPage1.ImageIndex = 0; + this.tabPage1.Location = new System.Drawing.Point(4, 23); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(387, 163); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "Status"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.pnlSolutionInfo); + this.groupBox2.Controls.Add(this.lblSolutionUsingMDA); + this.groupBox2.Controls.Add(this.label3); + this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox2.Location = new System.Drawing.Point(3, 3); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(381, 157); + this.groupBox2.TabIndex = 0; + this.groupBox2.TabStop = false; + // + // pnlSolutionInfo + // + this.pnlSolutionInfo.Controls.Add(this.label7); + this.pnlSolutionInfo.Controls.Add(this.lblModelFile); + this.pnlSolutionInfo.Controls.Add(this.label4); + this.pnlSolutionInfo.Controls.Add(this.lblSchemaExportProject); + this.pnlSolutionInfo.Controls.Add(this.lblCommonProject); + this.pnlSolutionInfo.Controls.Add(this.label9); + this.pnlSolutionInfo.Controls.Add(this.label5); + this.pnlSolutionInfo.Controls.Add(this.lblLastGenerated); + this.pnlSolutionInfo.Controls.Add(this.label6); + this.pnlSolutionInfo.Controls.Add(this.lblCoreProject); + this.pnlSolutionInfo.Location = new System.Drawing.Point(6, 36); + this.pnlSolutionInfo.Name = "pnlSolutionInfo"; + this.pnlSolutionInfo.Size = new System.Drawing.Size(372, 115); + this.pnlSolutionInfo.TabIndex = 8; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(69, 0); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(83, 13); + this.label7.TabIndex = 0; + this.label7.Text = "Last Generated:"; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lblModelFile + // + this.lblModelFile.AutoSize = true; + this.lblModelFile.Location = new System.Drawing.Point(158, 76); + this.lblModelFile.Name = "lblModelFile"; + this.lblModelFile.Size = new System.Drawing.Size(83, 13); + this.lblModelFile.TabIndex = 1; + this.lblModelFile.Text = "unable to locate"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(84, 19); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(68, 13); + this.label4.TabIndex = 0; + this.label4.Text = "Core Project:"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lblSchemaExportProject + // + this.lblSchemaExportProject.AutoSize = true; + this.lblSchemaExportProject.Location = new System.Drawing.Point(158, 57); + this.lblSchemaExportProject.Name = "lblSchemaExportProject"; + this.lblSchemaExportProject.Size = new System.Drawing.Size(83, 13); + this.lblSchemaExportProject.TabIndex = 1; + this.lblSchemaExportProject.Text = "unable to locate"; + // + // lblCommonProject + // + this.lblCommonProject.AutoSize = true; + this.lblCommonProject.Location = new System.Drawing.Point(158, 38); + this.lblCommonProject.Name = "lblCommonProject"; + this.lblCommonProject.Size = new System.Drawing.Size(83, 13); + this.lblCommonProject.TabIndex = 1; + this.lblCommonProject.Text = "unable to locate"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(34, 57); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(118, 13); + this.label9.TabIndex = 0; + this.label9.Text = "Schema Export Project:"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(65, 38); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(87, 13); + this.label5.TabIndex = 0; + this.label5.Text = "Common Project:"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lblLastGenerated + // + this.lblLastGenerated.AutoSize = true; + this.lblLastGenerated.Location = new System.Drawing.Point(158, 0); + this.lblLastGenerated.Name = "lblLastGenerated"; + this.lblLastGenerated.Size = new System.Drawing.Size(34, 13); + this.lblLastGenerated.TabIndex = 1; + this.lblLastGenerated.Text = "never"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(94, 76); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(58, 13); + this.label6.TabIndex = 0; + this.label6.Text = "Model File:"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lblCoreProject + // + this.lblCoreProject.AutoSize = true; + this.lblCoreProject.Location = new System.Drawing.Point(158, 19); + this.lblCoreProject.Name = "lblCoreProject"; + this.lblCoreProject.Size = new System.Drawing.Size(83, 13); + this.lblCoreProject.TabIndex = 1; + this.lblCoreProject.Text = "unable to locate"; + // + // lblSolutionUsingMDA + // + this.lblSolutionUsingMDA.AutoSize = true; + this.lblSolutionUsingMDA.Location = new System.Drawing.Point(164, 16); + this.lblSolutionUsingMDA.Name = "lblSolutionUsingMDA"; + this.lblSolutionUsingMDA.Size = new System.Drawing.Size(40, 13); + this.lblSolutionUsingMDA.TabIndex = 7; + this.lblSolutionUsingMDA.Text = "yes/no"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(3, 16); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 13); + this.label3.TabIndex = 6; + this.label3.Text = "Solution is AndroMDA Enabled:"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.groupBox1); + this.tabPage2.ImageIndex = 1; + this.tabPage2.Location = new System.Drawing.Point(4, 23); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(387, 163); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "About"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.linkLabel2); + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox1.Location = new System.Drawing.Point(3, 3); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(381, 157); + this.groupBox1.TabIndex = 2; + this.groupBox1.TabStop = false; + // + // label8 + // + this.label8.Location = new System.Drawing.Point(6, 16); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(369, 34); + this.label8.TabIndex = 2; + this.label8.Text = "AndroMDA Visual Studio 2005 Add-In\r\n(c)2006 AndroMDA.org"; + this.label8.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // + // imageList1 + // + this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); + this.imageList1.TransparentColor = System.Drawing.Color.Transparent; + this.imageList1.Images.SetKeyName(0, "propertiesORoptions.ico"); + this.imageList1.Images.SetKeyName(1, "help.ico"); // // AboutOptionsPage // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.tabControl1); this.Controls.Add(this.label2); this.Controls.Add(this.lblVersion); this.Controls.Add(this.label1); - this.Controls.Add(this.linkLabel2); this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.groupBox2); this.Name = "AboutOptionsPage"; this.Size = new System.Drawing.Size(395, 289); - this.Load += new System.EventHandler(this.AboutOptionsPage_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.pnlSolutionInfo.ResumeLayout(false); + this.pnlSolutionInfo.PerformLayout(); + this.tabPage2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -245,21 +354,30 @@ #endregion - private System.Windows.Forms.GroupBox groupBox2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label lblCommonProject; - private System.Windows.Forms.Label lblCoreProject; - private System.Windows.Forms.Label lblSolutionUsingMDA; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label4; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.LinkLabel linkLabel2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label lblVersion; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.ImageList imageList1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.Panel pnlSolutionInfo; + private System.Windows.Forms.Label label7; private System.Windows.Forms.Label lblModelFile; - private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label lblCommonProject; + private System.Windows.Forms.Label label5; private System.Windows.Forms.Label lblLastGenerated; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label lblVersion; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label lblCoreProject; + private System.Windows.Forms.Label lblSolutionUsingMDA; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label lblSchemaExportProject; + private System.Windows.Forms.Label label9; } } 1.2 +62 -0 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutOptionsPage.resx Index: AboutOptionsPage.resx =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/AboutOptionsPage.resx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AboutOptionsPage.resx 18 Apr 2006 16:14:44 -0000 1.1 +++ AboutOptionsPage.resx 3 May 2006 20:23:06 -0000 1.2 @@ -684,4 +684,66 @@ gAoAKACgAoAKACgAoAKACgAoAKACgAoAKAP/2Q== </value> </data> + <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/////AQAAAA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+AwABKAMAAUADAAEQAwABAQEAAQEFAAGA + FwAD/wEAAcABAQHgAQMEAAHAAQEBwAEBBAABwAEBAYAFAAHAAQEBgAUAAcABAQGABQABwAEBBgABwAEB + BgABwAEBBgABwAEBBgABwAEBBgABwAEBBgABwAEBAYAFAAHAAQEBgAUAAcABAQGAAQEEAAHAAQMBwAED + BAABwAEHAfgBPwQACw== +</value> + </data> </root> \ No newline at end of file 1.2 +33 -70 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/ExternalToolsOptionsPage.cs Index: ExternalToolsOptionsPage.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs/ExternalToolsOptionsPage.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- ExternalToolsOptionsPage.cs 18 Apr 2006 17:18:51 -0000 1.1 +++ ExternalToolsOptionsPage.cs 3 May 2006 20:23:06 -0000 1.2 @@ -21,9 +21,13 @@ public partial class ExternalToolsOptionsPage : UserControl, EnvDTE.IDTToolsOptionsPage { + #region Member variables + static MDAOptionPageProperties m_properties = new MDAOptionPageProperties(); static AddInSettings m_settings = null; + #endregion + public ExternalToolsOptionsPage() { InitializeComponent(); @@ -31,16 +35,9 @@ #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; @@ -50,22 +47,14 @@ 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) + public void OnOK() { - base.OnVisibleChanged(e); + 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; } public void OnEnter() @@ -80,49 +69,23 @@ { } - public void OnOK() + public void GetProperties(ref object PropertiesObject) { - 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; + PropertiesObject = m_properties; } #endregion - private void cbUseCustomCommandLine_CheckedChanged(object sender, EventArgs e) + prot... [truncated message content] |
From: Chris M. <cm...@us...> - 2006-05-03 20:48:54
|
User: cmicali Date: 06/05/03 13:48:52 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn AndroMDA VS2005 Add-In Readme.rtf etc/andromda-dotnet/AndroMDA.VS80AddIn/Installer AndroMDA VS2005 Add-In Setup.exe Log: - Updated readme with better info - Updated install package with new readme and better compressor (LZMA/Solid) Revision Changes Path No revision No revision No revision No revision No revision No revision No revision No revision |
From: Chris M. <cm...@us...> - 2006-05-04 12:04:26
|
User: cmicali Date: 06/05/04 05:04:05 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn/Installer AndroMDA VS2005 Add-In Setup.exe Log: Revision Changes Path No revision No revision No revision No revision |
From: Chris M. <cm...@us...> - 2006-05-04 18:55:36
|
User: cmicali Date: 06/05/04 11:55:35 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn AddInSettings.cs MDASolutionManager.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/Installer AndroMDA VS2005 Add-In Setup.exe Log: - Changed hide schema export button default to 'false' - Fixed bug with resync that was causing the filehash to be read improperly - Updated install package with new build Revision Changes Path 1.5 +1 -1 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.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- AddInSettings.cs 3 May 2006 20:23:05 -0000 1.4 +++ AddInSettings.cs 4 May 2006 18:55:35 -0000 1.5 @@ -198,7 +198,7 @@ public bool HideSchemaExportButtonIfProjectUnavailable { - get { return m_settings.GetBool("ADMAHideSCEX", true); } + get { return m_settings.GetBool("ADMAHideSCEX", false); } set { m_settings.SetBool("ADMAHideSCEX", value); } } 1.6 +2 -2 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs Index: MDASolutionManager.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- MDASolutionManager.cs 3 May 2006 20:23:05 -0000 1.5 +++ MDASolutionManager.cs 4 May 2006 18:55:35 -0000 1.6 @@ -446,7 +446,7 @@ m_commonProject.ManualPath, m_commonProject.Name); - m_commonProject.FileListHashCodeTarget= ResyncFolder(m_commonProject.FileListHashCodeSrc, + m_commonProject.FileListHashCodeTarget= ResyncFolder(m_commonProject.FileListHashCodeTarget, m_commonProject.GeneratedPathProjectItem, m_commonProject.GeneratedPath, m_commonProject.Name); @@ -456,7 +456,7 @@ m_coreProject.ManualPath, m_coreProject.Name); - m_coreProject.FileListHashCodeTarget = ResyncFolder(m_coreProject.FileListHashCodeSrc, + m_coreProject.FileListHashCodeTarget = ResyncFolder(m_coreProject.FileListHashCodeTarget, m_coreProject.GeneratedPathProjectItem, m_coreProject.GeneratedPath, m_coreProject.Name); No revision No revision No revision No revision |
From: Chris M. <cm...@us...> - 2006-05-04 21:16:51
|
User: cmicali Date: 06/05/04 14:13:25 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn MDASolutionManager.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/Installer AndroMDA VS2005 Add-In Setup.exe Log: Revision Changes Path 1.7 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs Index: MDASolutionManager.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- MDASolutionManager.cs 4 May 2006 18:55:35 -0000 1.6 +++ MDASolutionManager.cs 4 May 2006 21:13:24 -0000 1.7 @@ -323,7 +323,7 @@ } else { - AddInUtils.ShowWarning("The schema export project for this solution could not be found.\nPlease ensure the following variables are set correctly in mda\\project.properties\n\nmaven.andromda.schemaexport.available: true\nmaven.andromda.schemaexport.dir: <path to schema export project>"); + AddInUtils.ShowWarning("The schema export project for this solution could not be found.\nPlease ensure the following variables are set correctly in mda\\project.properties\n\nmaven.andromda.schemaexport.available=true\nmaven.andromda.schemaexport.dir=<path to schema export project>"); } } catch (Exception e) No revision No revision No revision No revision |
From: Chris M. <cm...@us...> - 2006-05-14 17:35:23
|
User: cmicali Date: 06/05/14 10:35:21 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn AndroMDA VS2005 Add-In Readme.rtf etc/andromda-dotnet/AndroMDA.VS80AddIn/Installer AndroMDA VS2005 Add-In Setup.exe Removed: etc/andromda-dotnet/AndroMDA.VS80AddIn Readme.doc Log: Updated with working copy Revision Changes Path No revision No revision No revision No revision No revision No revision No revision No revision |
From: Chris M. <cm...@us...> - 2006-05-16 15:46:49
|
User: cmicali Date: 06/05/16 08:46:44 Modified: etc/andromda-dotnet/AndroMDA.VS80AddIn AndroMDA VS2005 Add-In Readme.rtf etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands AboutCommand.cs AddInCommandBase.cs AndroMDALogoCommand.cs GenerateCodeCommand.cs OpenModelCommand.cs ReloadMDAConfigCommand.cs ResyncCommand.cs RunSchemaExportCommand.cs RunSolutionWizardCommand.cs StopCommand.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn MDASolutionManager.cs VS80AddIn.cs etc/andromda-dotnet/AndroMDA.VS80AddIn/Installer AndroMDA VS2005 Add-In Setup.exe Log: - Updated version number - Updated readme - Updated AddInCommandType enumeration to be more clear Revision Changes Path No revision No revision No revision No revision 1.4 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/AboutCommand.cs Index: AboutCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/AboutCommand.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- AboutCommand.cs 2 May 2006 21:33:43 -0000 1.3 +++ AboutCommand.cs 16 May 2006 15:46:44 -0000 1.4 @@ -18,7 +18,7 @@ { public AboutCommand() { - Init("About", "About", "About AndroMDA Add-In", 487, AddInCommandBase.AddInCommandType.AlwaysEnabled); + Init("About", "About", "About AndroMDA Add-In", 487, AddInCommandType.AlwaysEnabled); m_isStartOfGroup = true; } 1.5 +9 -9 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/AddInCommandBase.cs Index: AddInCommandBase.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/AddInCommandBase.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- AddInCommandBase.cs 2 May 2006 21:33:43 -0000 1.4 +++ AddInCommandBase.cs 16 May 2006 15:46:44 -0000 1.5 @@ -20,7 +20,7 @@ #region Enumerations - public enum AddInCommandType { AlwaysEnabled, AlwaysDisabled, NoMDAAlwaysEnabled, MDADisabled, MDAAlwaysEnabled, MDAEnabledWhileMavenNotRunning, MDAEnabledWhileMavenRunning } + public enum AddInCommandType { AlwaysEnabled, AlwaysDisabled, EnabledWhenMdaInactive, EnabledWhenMdaActiveButDisabled, EnabledWhenMdaActive, EnabledWhenMdaActiveAndMavenNotRunning, EnabledWhenMdaActiveAndMavenRunning } #endregion @@ -174,7 +174,7 @@ case AddInCommandType.AlwaysEnabled: status = (vsCommandStatus)vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled; break; - case AddInCommandType.MDADisabled: + case AddInCommandType.EnabledWhenMdaActiveButDisabled: if (!m_solutionManager.IsEnabled && m_solutionManager.IsSolutionUsingMDA && m_application.Solution.IsOpen) { status = vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled; @@ -184,7 +184,7 @@ status = vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusInvisible; } break; - case AddInCommandType.NoMDAAlwaysEnabled: + case AddInCommandType.EnabledWhenMdaInactive: if (!m_solutionManager.IsEnabled && !m_solutionManager.IsSolutionUsingMDA && m_application.Solution.IsOpen) { status = vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled; @@ -195,7 +195,7 @@ } break; - case AddInCommandType.MDAAlwaysEnabled: + case AddInCommandType.EnabledWhenMdaActive: if (m_solutionManager.IsEnabled && m_application.Solution.IsOpen) { status = vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled; @@ -206,7 +206,7 @@ } break; - case AddInCommandType.MDAEnabledWhileMavenNotRunning: + case AddInCommandType.EnabledWhenMdaActiveAndMavenNotRunning: if (m_solutionManager.IsEnabled && m_application.Solution.IsOpen && !m_solutionManager.IsMavenRunning) { status = vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled; @@ -221,7 +221,7 @@ } break; - case AddInCommandType.MDAEnabledWhileMavenRunning: + case AddInCommandType.EnabledWhenMdaActiveAndMavenRunning: if (m_solutionManager.IsEnabled && m_application.Solution.IsOpen && m_solutionManager.IsMavenRunning) { status = vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled; 1.2 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/AndroMDALogoCommand.cs Index: AndroMDALogoCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/AndroMDALogoCommand.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AndroMDALogoCommand.cs 2 May 2006 21:33:43 -0000 1.1 +++ AndroMDALogoCommand.cs 16 May 2006 15:46:44 -0000 1.2 @@ -34,7 +34,7 @@ public AndroMDALogoCommand() { - Init("AndroMDALogo", "AndroMDA", "AndroMDA", -1, AddInCommandBase.AddInCommandType.AlwaysDisabled); + Init("AndroMDALogo", "AndroMDA", "AndroMDA", -1, AddInCommandType.AlwaysDisabled); m_isStartOfGroup = true; } 1.2 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/GenerateCodeCommand.cs Index: GenerateCodeCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/GenerateCodeCommand.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- GenerateCodeCommand.cs 2 May 2006 21:33:43 -0000 1.1 +++ GenerateCodeCommand.cs 16 May 2006 15:46:44 -0000 1.2 @@ -17,7 +17,7 @@ { public RunMavenCommand() { - Init("GenerateCode", "Generate", "Generate Code From Model", 2138, AddInCommandBase.AddInCommandType.MDAEnabledWhileMavenNotRunning); + Init("GenerateCode", "Generate", "Generate Code From Model", 2138, AddInCommandType.EnabledWhenMdaActiveAndMavenNotRunning); } public override void Exec(vsCommandExecOption executeOption, ref object varIn, ref object varOut) 1.5 +1 -1 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.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- OpenModelCommand.cs 2 May 2006 21:33:43 -0000 1.4 +++ OpenModelCommand.cs 16 May 2006 15:46:44 -0000 1.5 @@ -19,7 +19,7 @@ { public OpenModelCommand() { - Init("OpenModel", "Open Model", "Open Model", 589, AddInCommandBase.AddInCommandType.MDAAlwaysEnabled); + Init("OpenModel", "Open Model", "Open Model", 589, AddInCommandType.EnabledWhenMdaActive); m_isStartOfGroup = true; } 1.2 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/ReloadMDAConfigCommand.cs Index: ReloadMDAConfigCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/ReloadMDAConfigCommand.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- ReloadMDAConfigCommand.cs 28 Apr 2006 04:41:17 -0000 1.1 +++ ReloadMDAConfigCommand.cs 16 May 2006 15:46:44 -0000 1.2 @@ -17,7 +17,7 @@ { public ReloadMDAConfigCommand() { - Init("ReloadMDAConfig", "Reload MDA Config", "Reload MDA Config", 1020, AddInCommandBase.AddInCommandType.MDADisabled); + Init("ReloadMDAConfig", "Reload MDA Config", "Reload MDA Config", 1020, AddInCommandType.EnabledWhenMdaActiveButDisabled); } public override void Exec(vsCommandExecOption executeOption, ref object varIn, ref object varOut) 1.3 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/ResyncCommand.cs Index: ResyncCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/ResyncCommand.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- ResyncCommand.cs 2 May 2006 21:33:43 -0000 1.2 +++ ResyncCommand.cs 16 May 2006 15:46:44 -0000 1.3 @@ -17,7 +17,7 @@ { public ResyncCommand() { - Init("ResyncFiles", "Resync", "Resync Generated Files", 37, AddInCommandBase.AddInCommandType.MDAEnabledWhileMavenNotRunning); + Init("ResyncFiles", "Resync", "Resync Generated Files", 37, AddInCommandType.EnabledWhenMdaActiveAndMavenNotRunning); } public override void Exec(vsCommandExecOption executeOption, ref object varIn, ref object varOut) 1.4 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/RunSchemaExportCommand.cs Index: RunSchemaExportCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/RunSchemaExportCommand.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- RunSchemaExportCommand.cs 3 May 2006 20:23:05 -0000 1.3 +++ RunSchemaExportCommand.cs 16 May 2006 15:46:44 -0000 1.4 @@ -20,7 +20,7 @@ { public RunSchemaExportCommand() { - Init("ExportSchema", "Export Schema", "Export Database Schema", 4005, AddInCommandBase.AddInCommandType.MDAEnabledWhileMavenNotRunning); + Init("ExportSchema", "Export Schema", "Export Database Schema", 4005, AddInCommandType.EnabledWhenMdaActiveAndMavenNotRunning); m_isStartOfGroup = true; } 1.2 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/RunSolutionWizardCommand.cs Index: RunSolutionWizardCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/RunSolutionWizardCommand.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- RunSolutionWizardCommand.cs 18 Apr 2006 16:14:44 -0000 1.1 +++ RunSolutionWizardCommand.cs 16 May 2006 15:46:44 -0000 1.2 @@ -17,7 +17,7 @@ { public RunSolutionWizardCommand() { - Init("RunSolutionWizard", "Run MDA Solution Wizard", "Run MDA Solution Wizard", 2138, AddInCommandBase.AddInCommandType.NoMDAAlwaysEnabled); + Init("RunSolutionWizard", "Run MDA Solution Wizard", "Run MDA Solution Wizard", 2138, AddInCommandType.EnabledWhenMdaInactive); } public override void Exec(vsCommandExecOption executeOption, ref object varIn, ref object varOut) 1.3 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/StopCommand.cs Index: StopCommand.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands/StopCommand.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- StopCommand.cs 2 May 2006 21:33:43 -0000 1.2 +++ StopCommand.cs 16 May 2006 15:46:44 -0000 1.3 @@ -18,7 +18,7 @@ public StopCommand() { - Init("StopGeneration", "Stop", "Stop Code Generation", 1670, AddInCommandBase.AddInCommandType.MDAEnabledWhileMavenRunning); + Init("StopGeneration", "Stop", "Stop Code Generation", 1670, AddInCommandType.EnabledWhenMdaActiveAndMavenRunning); } public override void Exec(vsCommandExecOption executeOption, ref object varIn, ref object varOut) 1.8 +30 -24 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs Index: MDASolutionManager.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/MDASolutionManager.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- MDASolutionManager.cs 4 May 2006 21:13:24 -0000 1.7 +++ MDASolutionManager.cs 16 May 2006 15:46:44 -0000 1.8 @@ -269,7 +269,15 @@ //BuildEvents public void OnBuildBegin(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action) { - if (IsEnabled && action != vsBuildAction.vsBuildActionClean) + if (IsEnabled) + { + if (this.IsMavenRunning) + { + m_applicationObject.ExecuteCommand("Build.Cancel", string.Empty); + m_applicationObject.StatusBar.Highlight(true); + m_applicationObject.StatusBar.Text = "Build canceled. Please stop AndroMDA before building."; + } + else if (action != vsBuildAction.vsBuildActionClean) { if (!AreGeneratedFilesUpToDate) { @@ -287,12 +295,10 @@ } } } + } public void OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action) { - if (IsEnabled) - { - } } public void OnBuildProjConfigBegin(string project, string projectConfig, string platform, string solutionConfig) @@ -501,8 +507,8 @@ CollapseProject(uiCommonProject); UpdateResyncProgressBar("Getting file list for " + projectName + "/" + item.Name); - ArrayList newFiles = GetFiles(folderPath); - + ArrayList newFiles = GetFileListFromFilesystem(folderPath); + //ArrayList existingFiles = GetFileListFromProjectTree(item); int filesHash = GetArrayListHashCode(newFiles); if (filesHash == fileListHashCode) { @@ -560,7 +566,7 @@ return hashCode; } - private ArrayList GetFiles(string directory) + private ArrayList GetFileListFromFilesystem(string directory) { if (System.IO.Directory.Exists(directory)) { @@ -578,7 +584,7 @@ { if (!m_addInSettings.IsInIgnoreList(dir)) { - ArrayList newFiles = GetFiles(dir); + ArrayList newFiles = GetFileListFromFilesystem(dir); foreach(string n in newFiles) { filesList.Add(n); } } } 1.6 +1 -1 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/VS80AddIn.cs Index: VS80AddIn.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/VS80AddIn.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- VS80AddIn.cs 2 May 2006 21:33:42 -0000 1.5 +++ VS80AddIn.cs 16 May 2006 15:46:44 -0000 1.6 @@ -20,7 +20,7 @@ public class VS80AddIn { - public const string ADD_IN_VERSION = "1.0.2"; + public const string ADD_IN_VERSION = "1.1"; #region Constants No revision No revision No revision No revision |