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 - Simon M

Pages: 1 ... 412 413 [414] 415 416 ... 430
6196
Automation Interface, Add-Ins and Tools / Re: Document Generation
« on: November 15, 2006, 04:10:03 pm »
May be worth adding it to the EA User Group site.  http://www.eausergroup.org/

I suspect it may be easier to add it to the SharePoint site.

6197
Automation Interface, Add-Ins and Tools / Re: Code Template
« on: July 11, 2007, 01:43:58 pm »
Tagged values is the standard extension mechanism and can be accessed in the code templates with %opTag:"tagName"%.

6198
Automation Interface, Add-Ins and Tools / Re: Code Template
« on: July 11, 2007, 12:35:43 pm »
This is the situation that custom templates are for.

http://www.sparxsystems.com.au/EAUserGuide/index.html?customtemplates.htm

Create a template of type parameter called Add.  This creates a template Parameter__Add that you can enter
Code: [Select]
db.AddInParameter(cmd, %paramName%, %DBType%, %paramName%);

You can then list over that template with
Code: [Select]
%list="Parameter__Add" @separator="\n" @indent="\t"%

All that's left of that is how you've defined %DBType%.

6199
Automation Interface, Add-Ins and Tools / Re: Subversion XMI 2.1
« on: June 21, 2007, 02:13:38 pm »
Okay.  I stand corrected.

I can't make EA 6.5 read them, but as of the next build of version 7 they won't be lost.

6200
Automation Interface, Add-Ins and Tools / Re: Subversion XMI 2.1
« on: June 20, 2007, 01:00:53 pm »
No.  EA's version control always uses XMI 1.1.

However, obviously this won't cause any loss of data withing EA.

6201
Sorry, I can't reply to all of this right now.  Send something in to sparx support about it.

Regarding the Read Only status of those collections.  According to the documentation all collection attributes are read-only.  This is technically correct, you can't assign another collection to that attribute, but misleading because you can edit the collection itself.

6202
Beta 1 of version 7 was released two days before this thread.  So unfortunately it missed getting the Java API compiled for 1.5.  ;)

6203
The Java API requires Java 1.5 because it uses generics and enumerations.  It's an unfortunate error that it was compiled for Java 1.6 instead of 1.5.

6204
Automation Interface, Add-Ins and Tools / Re: How to change GUID?
« on: June 18, 2007, 01:18:41 pm »
It looks to me that the help file is wrong.

Quote
Read only
and
Quote
If you need to set this value manually, you should only do so when the element is first created - and make sure you format the GUID exactly as EA expects.
are clearly contradictory.  I'm certain that there is no method for setting an element GUID in the automation interface.

If you want to copy an element, call AddNew on the Elements collection for the package you want to add to.  Then copy each of the properties you can.  When you save that element it will get a new guid.

6205
Filenames (including implementation files) can be specified in EA 7.0 using CodeOptions in an MDG technology.  See http://www.sparxsystems.com.au/EAUserGuide/index.html?addingcodemodulesinmdgtec.htm.

6206
Automation Interface, Add-Ins and Tools / Re: Copy Tagged value
« on: June 12, 2007, 08:48:15 pm »
Yes, it's because you didn't specify the type.

It didn't work for your attribute template because the name of the template is Attribute__test, not Attribute_test.  (Two underscores).

6207
Automation Interface, Add-Ins and Tools / Re: Copy Tagged value
« on: June 12, 2007, 01:12:00 pm »
Because there is no such thing as a list over tagged values.

http://www.sparxsystems.com.au/EAUserGuide/controlmacros.htm

6208
Automation Interface, Add-Ins and Tools / Re: Copy Tagged value
« on: June 11, 2007, 01:18:03 pm »
The templates don't (yet) provide the capability to list over the tagged values of a class (or attribute, operation, paremeter, connector or connector end).  There is also no macros to access the tagged value information apart from the tagged value construct documented.

The only way to copy tagged values using only the templates, is to know what specific tagged values you are expecting to copy.

eg.
Code: [Select]
%if classTag:"myTag1" != ""%
Tag
{
 name="myTag1"
 value=%qt%%classTag:"myTag1"%%qt%
}
%endIf%
%if classTag:"myTag2" != ""%
Tag
{
 name="myTag2"
 value=%qt%%classTag:"myTag2"%%qt%
}
%endIf%

6209
The only tagged values that GetByName works for is Element.TaggedValues.

6210
Quote
Maybe programming at midnight is not a good idea, but it seems I can not access TaggedValues of EA.Connectors at all? Please tell me that I am wrong!

My guess about what you're doing wrong is trying to get TaggedValue objects out of the Connector.TaggedValues list.  Connector.TaggedValues is made up of ConnectorTag objects.

Pages: 1 ... 412 413 [414] 415 416 ... 430