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

Pages: 1 2 [3] 4 5 ... 14
General Board / Re: Class Name uniqueness
« on: May 18, 2005, 05:13:37 pm »
Hi Guys,

Lots of good discussion here. This post is almost by way of summary...

In answer Barbuckles specific query : Is there a way to enforce uniqueness in names? Official answer : No - not yet.

More broadly, the missing feature is a "model checking" option - both to allow "live" checking and  model checks/reports based on user request.

As it happens, we're already working on a generic constraints engine that will facilitate precisely the things that have been suggested in this thread - eg. opt-in model checks. This extends beyond basic checking for UML compliance ...

I cannot provide a release date at this stage- there's some rumours about including it in 5.1 though.


General Board / Re: CVS in EA5
« on: May 17, 2005, 08:01:15 pm »
Hi wstidolph,

Thanks for alerting us to this.  Would you be able to send a bug report to sparxsupport and include a screenshot of your version control config screen? If you have a sample eap file that we can use to reproduce the problem, that would be helpful also. Other details that might be useful include windows version, service pack etc.

We haven't seen this behaviour in our own testing of EA/CVS, but would like to get this resolved promptly.

Thanks in advance.


General Board / Re: creating new uml type
« on: February 27, 2005, 04:39:12 pm »
Hi Martin,

Unfortunately, no way to create new metaclasses. The closest thing in EA, is extension via profile elements and adding the profile to the toolbox ... but it does involve stereotypes


General Board / Re: Code Generation with a Constructor
« on: February 15, 2005, 08:08:24 pm »
Hi Dave,

This is in response to your EXEC_ADD_IN query - Simon will get back re customizing code templates.

Sounds like you're roughly on the right track with the add-in. Couple of points :

1. You probably don't need to make your add-in an MDG add-in (at least not at this stage). Being an MDG add-in has some advantages, but there's also other baggage you need to deal with ... so return an empty string in your EA_Connect function.

2. Make sure EA is actually talking to your add-in. (If it's not, you will be prompted when starting up EA). The following sample functions should be enough to test with. It includes a dummy menu option just so you know things are working. Other than that, I used the same EXEC_ADD_IN call from the template that you did and got the intended result...

Code: [Select]

Function EA_Connect(Repository As EA.Repository) As String
   EA_Connect = ""
End Function

Function EA_GetMenuItems(Repository As EA.Repository, Location As String, MenuName As String) As Variant
   EA_GetMenuItems = "Hello"
End Function

Sub EA_GetMenuState(Repository As EA.Repository, MenuLocation As String, MenuName As String, ItemName As String, IsEnabled As Boolean, IsChecked As Boolean)
   IsEnabled = True
End Sub

Sub EA_MenuClick(Repository As EA.Repository, MenuLocation As String, MenuName As String, ItemName As String)
   MsgBox "Hello World!", vbInformation
End Sub

Function MyTest(Repository As EA.Repository, Args As Variant) As String
   Dim arg As String
   arg = Args(LBound(Args))
   MyTest = "ReturnString"
End Function

Having done the above, are you at least able to see your add-in from the add-ins menu? Let me know if it still isn't working for you...

One other note : Body code for methods is only inserted on initial forward generation - ie. when you generate/overwrite the file initially, or forward synch a  new method into your existing code.

I hope this helps


General Board / Re: Is it me, or something is wrong with build 747
« on: February 15, 2005, 04:17:36 pm »
Hi Igor,

It's a bug- to be corrected in the 748 release. The work around is simple enough :

Try : Tools | Customize | Tool Bars | Reset All

Alternatively :

Try : View | Visual Layouts | Default Layout.

I believe the problem is related to Mike's post here :;action=display;num=1108481216

I'm curious - did you attempt to restore a user layout from an earlier version of EA, after installing 747?

Gary : As regards the speed factor : no particular performance enhancement comes to mind between 744 and 747 releases. Were you using EA over a network and got a faster link ...? There could be a number of reasons depending on what operation you are performing, but not specifically tied to 747 improvements ...


General Board / Re: EA 4.51 Installation Problem
« on: February 10, 2005, 02:41:18 pm »
Hi bollwahnk,

Thanks for noting this.

We have had reports of problems installing EA 4.51 on NT4. The problem was caused by a system call that is not supported by NT4, by default. The problem has been corrected for 748, which will hopefully be available within a week or so.

A potential workaround would be to install IE 4.0 or later - I think that may install the required system call.

Sorry for any inconvenience - we'll get this resolved ASAP.


General Board / Re: Code Template Framework Help
« on: February 03, 2005, 02:21:20 pm »
Hi Mike

Using stereotypes and or tagged values on the link to achieve this kind of customization would be ideal, but is not currently possible in the code templates - we're working on it though.

If you can get away without the stereotype info, then the following may of help :

There is a way to make EA generate include files from dependency links - though it involves some customization of EA's default code generation templates for C++ (see the help file for details on doing this).

Basically you can replace EA's default ImportSection template with the following:

$includes = %fileImports% + %list="Import__Dependency" @separator="\n"% %REMOVE_DUPLICATES($includes, "\n")% \n

Then create a new custom template called "Dependency". Its contents might be as follows :

%if importFromDependency == "T"%
$file = "#include " + %qt% + %importClassName% + ".h" + %qt% $file %endIf%

Otherwise, you may wish to invoke the automation interface from within the code templates to overcome the limitation. See the related threads:;action=display;num=1088595585;start=3#3;action=display;num=1094146636

(In your case you would be using the automation interface to iterate over the class' connectors.)

I hope this helps.


General Board / Re: Tagged values for a particular stereotype
« on: February 03, 2005, 01:41:30 pm »
Hi IgMand,

Here's a simple trick to get what you're after :

1. Go to the menu item Configuration | UML | Tagged Values

2. In the dialog :
- Enter the tag name
- Enter a VERY brief description
- Enter BaseStereotype=process; in the Detail field
- Save and Close

You've just setup a pre-defined tagged value that's only available to elements with a primary stereotype of <<process>>.

More details available in the help doco - search the index under "predefined tagged "

There's probably another nice solution if you're using profiles - but I'll leave you to experiment on that...


General Board / Re: Font's too big in Linux
« on: January 31, 2005, 08:25:30 pm »

I believe this problem will be resolved for the release of EA 4.51 - currently in beta.;action=display;num=1107149640


General Board / Re: Can you import XML schema to EA?
« on: December 22, 2004, 02:13:30 pm »
Hello Greg,

Conversion to XMI is a possibility, but you'd need a utility to convert the XSD to XMI. There may be some existing stylesheets to do this (though I'm not aware of any), or you may need to roll your own.

Alternatively, you could look at using EA's automation interface to import the schemas directly.

Finally, a user reported to me some success in getting his XML editor to map the schema to java code and then importing this into EA. Something of a contortion, but appeared to suit his needs ...


General Board / Re: Can you import XML schema to EA?
« on: December 21, 2004, 06:42:47 pm »
Hello Greg,

In answer to the question/topic :

Can you import XML schema to EA?

Unfortunately, not supported yet. We have received a number of requests to this effect and do plan to support reverse engineering of XML schema in future - no ETA at this stage though.


General Board / Re: Upgrading to 4.5 - Database version?
« on: December 21, 2004, 07:17:26 pm »
Hello Jim,

Your version numbers are correct.

There are two significant version numbers :

1. EA Program Version : Currently 4.5

2. EA Database Version : Currently 4.01

So the versions you mentioned are fine.

In case you attempted to open a model with an old database version, an upgrade wizard would alert you and help you through the upgrade process anyway.

I hope this explains.


General Board / Re: Help! Import disabled in the Code Generation b
« on: December 09, 2004, 02:50:58 pm »
Some additional possibilities to the above :

* Do you have security enabled for your model? If so, your user may not have code engineering privelages and the import options will be disabled.
You'll need to set these by logging in as admin, (or disable security entirely)

* Do you have version control setup for the package? If so, import options will be disabled if you have not checked out the package.

* Are you running the Lite version of EA - this is readonly, so import will be disabled.

Also note, the import options are removed from the context menu entirely if:

* You are running the Desktop version of EA (or tial version in desktop mode). Code engineering is only available in pro and corporate version.

* The current diagram is not a structure (class) diagram.

I hope that explains.


General Board / Re: Configuration/Maintenance/Problem Types
« on: December 08, 2004, 03:12:18 pm »
Hi Bruce,

A brief clarification on the usage of problem types with tagged values, which may be relevant for some other work you mentioned in another post...

Under Configuration | UML | Tagged Values, you can create a predefined tag say MyProblemTag. Then in the Detail put something like :


(BTW : We do intend to wrap the functionality of the details field at some stage, so users don't have to get bogged down by the syntax)

Now you have a predefined tag called MyProblemTag and its value will be restricted by the set defined under Configuration | Maintenance | Problems.

This may be another one of Thomas' "Easter Eggs" :P ... though I believe there are some more clues by searching the help for Predefined Tags ...


General Board / Re: Automatic Generation of Class Diagrams
« on: December 08, 2004, 03:00:12 pm »
Hi Rodney,

I'm not exactly sure of the functionality you require here, but I'm assuming you've setup a bunch of classes and packages (as namespaces) in EA's project view and these are not currently on any diagrams that show the various relationships...

Although there's no fully automated way to get all of the elements onto a diagram for each package, you might find the following useful.

* To quickly get all classes from a package onto a diagram:
1. Create a new diagram under the relevant package in the Project View.
2. In the Project View, select all classes of interest and drag onto the diagram (eg. if using EA 4.5, select all classes in the package by : Ctr+click first and last class in the package, then drag onto diagram)
3. Select Layout Diagram from the Diagram menu

* To conveniently insert related elements for a given class on an existing diagram :
1. Right-click the class of interest
2. Select the context option : Insert Related Elements

I hope this helps. Let me know if I have misread your intention.


Pages: 1 2 [3] 4 5 ... 14