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.

Messages - AdamHearn

Pages: [1] 2 3 4
Hey Barry,

I don't follow the limitation with EA...

Language Datatypes
Add Product
Add the types for that particular language

Code Generation Templates
Python is listed in the list of languages
One thing to notes is that there is *no* default CGT data for the new language. You *have* to roll your own which could be rather tedious but not unreasonable.

Adding a class of that language type works as expected - i.e. Python is in the drop down list and the types are limited to those added previously.

Now CG the class to a file. It all should be there as you defined. That's what I had done when trying out the (as was) new CGT features when they were released.

Drop me an e-mail if you want to compare notes!

Suggestions and Requests / Re: Suggestion: "Save As New" button
« on: May 27, 2004, 04:00:37 am »
Initial request and sargasso's update would be a great usability improvement.

Suggestions and Requests / Re: New Template ParameterNotes
« on: July 07, 2004, 11:25:57 am »
You can get close with what's there now...

C++ code gen options:
Comment Style: XML.NET
Method notes: In header - I assume ;)

This will provide you with some basic info although the formatting will not be as you desire:
Code: [Select]

     /// <param name="arg1">This is arg 1 notes</param>
     /// <param name="arg2">This is arg 2 notes</param>
     virtual void MyMethod(byte arg1, unsigned char arg2) =0;

Here's the Javadoc comment style:
Code: [Select]

      * @param arg1    This is arg 1 notes
      * @param arg2    This is arg 2 notes
virtual void MyMethod(byte arg1, unsigned char arg2) =0;

Suggestions and Requests / Re: C# Indentation when generating code
« on: July 05, 2004, 12:23:41 pm »
Well yes & no....

The feature you desire is provided by the Code Generation Templates. You must edit these to suit your own presentation style requirement. As with any layout, it's more likely to be done at a company level to match existing standards.

You should look at the "PI" macro. From memory, it affects 2 or 3 places however I cannot be sure as our templates are company bespoke and very neat (well they match exactly what we are obliged to produce!).


The Tools->Options page seems to have a very 'undocumented' way of working!

The Code Generation page allows you to set 'synchronise' or 'overwrite'. The problem is that this setting is:
- on a per model basis so if you've got a large team using an RDMS then it's that option for all
- seems to be read only once on application startup so a change in the setting in the multi-user environment will not affect everyone. Also, if a user loads up the dialog with the 'old' setting then closes the dialog with close, it'll overwrite the 'new' setting that was set by someone else. Can't be 110% on this but I'm fairly certain that's what I saw!

So, best option would be to control this flag on a per user setting. Any thoughts?

Suggestions and Requests / Re: Tabbed MDI Windows for Diagrams
« on: September 02, 2003, 06:41:18 am »
EA is a great tool but this would be a significant usability improvement - it's really the only thing that I get annoyed about it when using EA.

Thanks in advance!

General Board / Re: Collaboration <-> Sequence Generator
« on: September 18, 2005, 04:15:45 pm »
I also missed this when it was first released...

Trying it against the latest version of EA, I either get an empty diagram or the error as posted above. I'll wait a while to see if Sparx responds to the bug report before I file my own.

General Board / Re: Attribute sorting - problem introduced in V6?
« on: December 09, 2005, 11:14:51 am »
A shame it's a one option for all types but it'll have to do :)

General Board / Attribute sorting - problem introduced in V6?
« on: December 08, 2005, 04:28:33 pm »
I've recently upgraded to V6 and I've noticed an issue that may need looking into...

Got an element of stereotype enumeration with a set of attributes. It's normal practise (for our company) to create an initial item with value 0. This would typically be assigned the name 'Unknown' or 'None' and have the initial value set to 0.

What I've noticed is that with V6, attributes are listed alphabetically. Thus when code generated I get an out of sequence enum.

Instead of this:

None = 0,

I would get:

None = 0,

I couldn't see an option to prevent this but I may well have missed it! Anyone confirm this or provide a workaround?

Thanks in advance!

General Board / Re: MySQL reliability
« on: November 16, 2005, 01:55:11 am »
If your repository is on a Windows server then why not use MSDE. It's a free DB engine from Microsoft and EA works very well in it (given that MSDE is nothing more than a performance limited SQLServer we should not be surprised!).

I'm not sure if EA V6 has 'fixed' the issue with SQLServer Express (the replacement to MSDE) which is a fully fledged SQLServer 2005 server with no performance limitations but is size limited (most likely *many* times bigger than your repository would ever get!).

You can co-host the above with other SQL Server instances on the same machine so there are no conflicts.

General Board / Re: Modelling C# calculated properties
« on: October 14, 2005, 08:03:28 am »
You'll have to look at the Code Generation templates and roll your own customized output. It's not quite a scripting langauge (I sometimes wish it were!) but you should be able to do what you've specified very easily.

A couple of things to note:
1) Code Generation templates are stored within model. You'll either have to add them to the 'base' EA model or export them to XML and import them per new model created.
2) Code Generation template fixes/updates will not override your custom template. So any bugs/issues/improvements will have to be manually added to your custom ones.

Best of luck!

General Board / Show element parents - not always working?
« on: October 11, 2005, 02:56:05 am »
Arggh - forgot to fill out subject then back produced a blank form :( :(

Could someone please enlighten me on how/why EA decides to *NOT* show inherited elements.

This is the help text from 'Set Parent' (although the dialog is now captioned Type Hierarchy):
Note: Parents that do not have their corresponding related element in the same diagram will display their parentage in the top right corner of the child element, as shown below:

If I reverse engineer a class (C#) that inherits one class and one interface, the diagram shows the class with both parents in the top corners.

If I create a class with the exact same inherited elements, I only see the class.

The difference seems to be that the Type Details (as show in the Type Hierarchy dialog) are not the same. The one that shows has Owned: No and Package <none> where as the class I created has Owned: Yes, Package: 'blah' (I'm assuming this is because I chose the interface from the list of existing model elements). The interface is defined in another package and so going by the help text it should show up (I have the Show Additional Parents option enabled in the diagram).

It's not a huge issue but it would be nice if it worked like the help suggests it does. Perhaps I've not done something correctly?

General Board / Re: Changing the source path for code synchronizin
« on: September 26, 2005, 01:10:31 am »

Will there be an 'easier' way to set the code generation path for non-default language types (i.e. the ones presented in the drop-down list on the Local Paths dialog)?

We've a couple of custom language types (resx, xml) which are spread around the model (one to a few per package for example) and performing a manual update of these as described would be cumbersome.

Thanks in advance, Adam

General Board / Re: Small Team with Shared Models
« on: July 29, 2005, 03:45:00 pm »
Our development team contains 5 people and we use the corporate edition of EA against a SQLServer 2000 (MSDE) repository.

General Board / Re: SQL Server 2005
« on: July 29, 2005, 03:39:50 pm »
I too receive an error on connection.

'EA has experienced a network error and will close down.'

I tested this with EA build 568 against the version of SQL Server Express that shipped with Visual Studio .NET Beta 2.

Pages: [1] 2 3 4