Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - DaveEchols

Pages: [1]
1
General Board / MS SQL ServER Mets Data Services
« on: December 02, 2003, 09:43:34 am »
Has anyone used EA to work with the Microsoft Meta Data Services SDK for SQL Server? The preferred tool Microsoft recommends is Rational Rose 2000, but I would like to be able to use EA. The SDK has tools that integrate with the modeling tool to generate Information Models.

2
General Board / Status of .NET support
« on: September 08, 2003, 06:06:39 am »
What is the status of fully supporting the .NET framework. I have tried the XML imported, written by a third party, and have had problems using it in a latrge number of classes/DLLs. I also found this fron Geoff Sparx...

Hi,

The latest build (584) of EA has an additional option to import an XML 'library' file of .NET framework classes as mention by Jason in an earlier post on this thread:

http://msdn.microsoft.com/net/ecma/
(scroll to the bottom of the page, there is a link for an XML file describing the BCL)

The option is on the right click on a package in the project tree ... under import/export.

We plan to put together some reflection based examples in C# to create suitable XML files for import using this option. In the meantime you can use this to import the BCL at least.

Hope this helps,

Geoff Sparks


When will EA support .NET natively, instead of relying on a third party utility, or an incomplete BCL xml file from Microsoft? Can someone at EA create a .NET base EAP file with the complete set of classes, and post to the downloads section?

3
General Board / Patch
« on: March 12, 2003, 11:48:00 am »
Does the Patch on the Downloads page patch the Corporate version as well as the other versions?

4
Automation Interface, Add-Ins and Tools / Custom Icons for EA folders
« on: July 06, 2004, 06:54:23 am »
I am writing an object browser addin for EA using VB.NET and reflection. I am fairly far along, and want to be able to change the icon for various folders (packages) I add to hold objects imported from the .NET framework. Is there a way, using the automation interface , to change or set the icon used by folders in the tree view of the EA project view?
    Dave

5
Has anyone used EA to work with the Microsoft Meta Data Services SDK for SQL Server? The preferred tool Microsoft recommends is Rational Rose 2000, but I would like to be able to use EA. The SDK has tools that integrate with the modeling tool to generate Information Models.

6
Automation Interface, Add-Ins and Tools / Addin Example in C#
« on: December 01, 2003, 04:49:30 am »
Hi All,
    I have started working on an addin and had some trouble getting the one example working. I eventually worked out the problems, and wanted to post a more detailed example. Hope this helps others get a faster start on developing addins.

The addin should behave as follows if built and configured correctly, otherwise, you should get an error when starting EA, or errors when compiling...

1. The "MyAddin connected" msgbox should display before the EA main program displays
2. The "Add-Ins" main menu option should be visible once EA is loaded.
3. The "MyAddIn" submenu should appear under the "Add-Ins" main menu.
4. Clicking the "MyAddIn" submenu should display the "Not implimented" msgbox
5. Exiting EA should display the "MyAddin disconnected" msgbox

//--------------------- start of class -------------
using System;
using System.Runtime.InteropServices;   // needed for the Guid and ClassInterface attributes

namespace MyAddIn  
{
   [Guid  ("1602B4A3-AE64-4a9e-812F-AC08613E0962"),
   ClassInterface(ClassInterfaceType.None)]
   public class EAAddIn : EAAddInTemplate.Addin  
   {

       /// <summary>
       /// Summary description for Class1.
       /// </summary>
       public EAAddIn()
       {
           //
           // TODO: Add constructor logic here
           //
       }
 
       #region "AddinMembers"

       public void ShowHelp(string MenuName, string ItemName)
       {
           // TODO:  Add EAAddIn.ShowHelp implementation
       }

       public void MenuClick(ref EA.Repository Repository, string MenuName, string ItemName)
       {
           // TODO:  Add EAAddIn.MenuClick implementation
           System.Windows.Forms.MessageBox.Show( "Not implimented" );
       }

       public object GetMenuItems(string MenuName)
       {
           // TODO:  Add EAAddIn.GetMenuItems implementation
           //return null;
           return "&MyAddIn";
       }

       public void FileOpen(ref EA.Repository Repository)
       {
           // TODO:  Add EAAddIn.FileOpen implementation
       }

       public void Connect(ref EA.Repository Repository)
       {
           System.Windows.Forms.MessageBox.Show( "MyAddin connected" );
       }

       public void Disconnect()
       {
           GC.Collect();  
           GC.WaitForPendingFinalizers();  
           System.Windows.Forms.MessageBox.Show( "MyAddin disconnected" );
       }

       #endregion
   }
}
//--------------------- end of class -------------


The registry info threw my for a while. I kept getting an error loading the COM object in EA. In my example, I set my Project default namespace to MyAddIn to match the namespace in my class file. This is found in the Project Properties dialog under Common Properties/General/Default Namespace. Note the capital "I" in MyAddIn.


//--------------------- start of registry info -------------
REGEDIT4


[HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins\MyAddIn]
@="MyAddIn.EAAddIn"
//--------------------- end of registry info -------------

Several references are required for this example to work. The first 2 are described in the EA documentation, and the other is the Forms reference so the msgbox calls work.


//--------------------- start of reference info -------------
EA      // EA.TLB
EAAddInTemplate   // Addn_tmpl.TLB
System
System.Data
System.Windows.Forms
System.XML
//--------------------- end of reference info -------------

Pages: [1]