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 - MichaelHanson

Pages: [1] 2 3
1
General Board / Re: Drag and Drop Add To Package
« on: July 29, 2007, 10:26:16 pm »
Thanks, I will do that.

2
General Board / Drag and Drop Add To Package
« on: July 26, 2007, 03:17:00 am »
Apologies if this is a FAQ, but I couldn't find anything about it by searching or browsing.

Is there a way to get EA to add new elements dropped on to a Package in a diagram into the actual package.

For example I create a Package in my class diagram, a new package is added as a child of the package containing the diagram.  I then drag a new Class from the toolbox and drop it on the new Package in the diagram.  A new class is created and appears to be contained in the new package from the diagram perspective, that is if I move the Package the Class moves with it, so the concept of the class being contained in the package is recognised by the diagram.  However when I look in the Project Browser the new class is added to the parent package of the diagram. I have to move the class in Project Browser to place it in the right package.  This is not very intuitive.

Mike

3
General Board / Label Visibility
« on: June 17, 2005, 05:46:47 am »
Anyone know of a way to set the default visibility of labels on Associations.

As an example, I am using EA for data modelling, and everytime I configure a FK between two tables I get the full set of labels displayed.  I always hide the Top and Bottom labels as I am not interested in seeing which operations implement the ends of the Association.

I have tried creating an Element Template Package with the relevent labels hidden on an Assocation but that isn't working.

Mike Hanson

4
General Board / Re: Forum organisation
« on: April 27, 2004, 12:38:56 pm »
Don't mean to throw a spanner in the works, but what about switching to News Groups, then we can all use our preferred News Reader which provides all of the filtering and sorting people are looking for, also means we can download stuff for offline reading.

Once a root news group has been established there would be no limit to the number of sub groups Sparxs could host

5
General Board / Re: convert data model to class diagrams?
« on: May 06, 2004, 02:39:32 am »
There may well be an easier way, but it is possible to copy and paste your data model, convert the tables to classes, modify them then generate code.

It is a bit long winded but works.

Having imported your data model to create a diagram.

For each table, open the property sheet and remove the stereotype.

Once you have done them all Save the diagram (until the diagram is saved EA still thinks you are working with a table stereotyped class, autosave may change this)

Now you can open the property sheet for each class, set the language to C#, C++ or whatever you want to use for code generation.

All you have to do now, is modify the attributes to remove the column stereotype, change the data type and remove any operations that have been imported for PK, FK and other indexes and constraints.

Now you have a basic class diagram and can begin setting up the associations etc to complete it.

You can of course always import your data model to another diagram to re-create that later.

Regards
Mike Hanson

6
General Board / Tagged Values - Values
« on: May 05, 2004, 11:24:40 am »
I have noticed that the Tags tab of any Property Sheet includes a drop down list Labelled Value.  I know how to add new Tagged Values so that they appear in the drop down list labelled Tag.

How do I associate values with a Tag so that I can select a value from the Value drop down list.

For example I have added a tag called Attribute and it appears in the Tag list.  I want to have values like [XmlAttribute("PropertyName")] in the value list so I don't have to type it every time I use it, which is very often.

Mike Hanson

7
General Board / Re: C# code generation
« on: May 05, 2004, 11:19:15 am »
I have been tinkering with the C# Code Generation features and had similar troubles getting the Name Space to generate correctly

I resolved the problem by doing the following

Create a Package to contain all of the physical classes you want to generate I chose my to place mine in a a package named after my company, which I placed package called Physical Model below the Component View folder

Right click this package and choose Package Control, Set as Namespace Root

Organise your physical classes in the Namespace Root package, optionally in packages of their own.

Select your NameSpace Root in the Project Explorer then initiate Code Generation from the toolbar or contect menu (Right Click choose Code Engineering, Generate Source Code...

Generate the code and you should find Namespaces are correctly organized based on package heirarchy

Hope this helps
Mike Hanson

8
General Board / Re: Tagged Values - Question
« on: May 05, 2004, 11:04:41 am »
I would say it is an appropriate use of Tags, that you are suggesting.  Although it is worth mentioning that Use Cases already have some of the properties you are looking for such as Complexity.

I mention this because as far as I am aware the Estimation features of EA can't use Tags so you would need to use the provided properties if you plan to use this feature.

Mike Hanson

9
General Board / Re: Generate Table Owner
« on: April 28, 2004, 03:03:56 am »
Interesting results with this feature.

Have added the tag "owner" to each table with a value of "dbo".

Now if I use a Generate DDL command directly on an individual table in my model the owner is generated correctly.

But if I select the package containing my data model in the Project Explorer and choose Generate DDL from the toobar, set the Generate Table Owner option on and Generate the Tag is ignored and no owner is generated.  This happens whether I choose to generate a single file or one for each table.

Strange, I will report this as a bug using the relevant feature from the Sparx site

10
General Board / Re: Generate Table Owner
« on: April 28, 2004, 12:12:48 am »
Great, thanks for that.

Can you enlighten me as to the use of the Table Space textbox on the Details tab of a Table property sheet

Mike

11
General Board / Generate Table Owner
« on: April 27, 2004, 12:20:33 pm »
Been trying to get this feature to work since it appeared in the Generate DDL dialog.

Can anyone tell me how to get this to work because naming tables to include the owner name is irritating because it makes more work and generates code that has to be modified

12
General Board / Re: Linking Web Documentation to Word Files
« on: April 27, 2004, 12:27:34 pm »
Not really a workaround, but I got around this by adding two links to files, one for use in EA with the default type of Local File, using a UNC path then another with the type set to Web Address using a relative URL.

Had to educate users and team members to use the correct link when viewing HTML version, but it worked

13
General Board / Re: General UML question
« on: March 29, 2004, 12:00:48 am »
I think the fact that EA lets you use any element anywhere and associate anything to anything is in keeping with UML.

UML does not really state rules for enforcing what type of association can exist between model elements, it really states the meaining and semantics of certain associations between elements.  So really EA is more conformant with UML than the rest of the tools.

I have used most of the leading tools, and one of the reasons I discarded them all for EA (when given a choice) is because most of the other tools try to impose their own interpretation of UML on us.

I like being able to do things that don't necessarillyy fit with the common interpretation of UML, because I frequently work in shops where UML is new, and the teams don't understand some of the more esoteric notation, so I "customise" to make it easier for my teams to understand.

EA is the only tool that let's me do that.

14
General Board / Database Owner
« on: March 26, 2004, 04:53:22 am »
The recently released version 4.0 of EA includes a new option in the DDL generation options dialog, "Generate Table Owner".  However when I enable this option the generated DDL is no different to that produced without the option.

I have set dbo as the Table Space, as I can't find anywhere else to set the owner.

How do I get this option to work, and make sure that the "dbo" owns all tables in my SQL Server 2000 database

15
General Board / Sequence Branching
« on: October 21, 2003, 02:52:42 am »
Is it possible to branch the timeline of a Sequence in a Sequence Diagram.

Every book I have read regarding UML Sequence Diagrams shows branching of a Sequence timeline as the way to diagram alternative processing paths for an object.

For example at some point during the lifetime of an object a decision has to be made, for one state the sequence of messages dispatched is different to that of another.

I have found the option to branch one message from the previous one, which enables me to show a single alternative message based on a condition, but this does not fulfill my need to show the same instance of an object dispatching a different sequence of messages based on a condition.  This is exactly what branching of a timeline is supposed to provide.

If EA does not support this could someone offer an alternative way of diagramming a single instance branching to a sequence of messages based on a condition.

Mike Hanson

Pages: [1] 2 3