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 ... 392 393 [394] 395 396 ... 420
5896
Are you wanting Project.DoBaselineCompare()?

5897
See http://www.sparxsystems.com.au/EAUserGuide/index.html?importingcodetemplatesfrom.htm
Quote
User-defined Code Templates can be imported and exported as Reference Data (see Import and Export Reference Data in the Enterprise Architect User Guide). The templates defined for each language appear in a list of tables with the language name suffixed with _Code_Templates.

You could also embed them in an MDG technology.  (http://www.sparxsystems.com.au/EAUserGuide/index.html?addingcodemodulesinmdgtec.htm)

5898
[split] [link=http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1211980532][splithere][/link][splithere_end]

5899
Thanks David,

I didn't think I'd made a mistake, but did appreciate that are more lengthy and formal description could remove possible ambiguities from what I said.

5900
Thank you for the quote about keywords from the specification.  I think that the first part of that particuarly expresses what I was trying to say much more clearly.  (Either that or I have become too used to "specification talk".)

5901
I suspect that realize is not a stereotype, but a keyword.

Although they look the same, a keyword is goes with the base class (in this case realization) and can't be modified.  However, I think that there is still a potential problem here because if it is in the stereotype field it should also be in the stereotypeex field.

Yes, there are other examples of this.  The only one I can think of at the moment is interface.

5902
Automation Interface, Add-Ins and Tools / Re: Add-in thread safety.
« on: June 19, 2008, 08:53:26 am »
I don't believe that the EA automation interface is thread safe.  Although you may be able to use some classes (eg. Element, Connector) I wouldn't attempt it for Repository and Project.

5903
Another possible solution is that until relatively recently (7.1?) the java API didn't like being called from a different thread within a program that had already used it.

That used to produce a similar error.

5904
CA is correct, (in my understanding) that function adds a window where you find diagrams.

EA doesn't currently support docked windows from add-ins.

5905
ImportPackageBuildScripts is the wrong function.

You need Project.ImportPackageXMI.

Code: [Select]
Repository rep = new Repository();
rep.OpenFile("D:\\testproject.eap");
Collection<Package> packs = rep.GetModels();
Collection<Package> elems = packs.GetPackages();
Package importPack = elems.GetByName("test");
rep.GetProjectInterface().ImportPackageXMI(importPack.GetPackageGUID(),"D:\\test.xml",1,0);

5906
What have you put in your file template?

If you put plain text in does it generate that to a file?

5907
Frank is right that modifying the XML files would be the quickest/easiest way to do it.  Tip. You can see what files correspond to what packages by looking at ModelPatterns\models.xml.   You can also add new packages and groups this way.

For something that you don't need to worry about during an upgrade you should look into MDG technologies.  You'll have to directly edit the MTS file, but the instructions for this are at http://www.sparxsystems.com.au/EAUserGuide/index.html?model_templates2.htm.

5908
Those fields will be accessible when using the attributes dialog for datamodeling elements (such as table).

5909
Have a look at predefined tagged value types and then:

Quote
Create an MDG Technology that bundles your UML Profile and your tagged value type definitions into a single file. Then when you import the technology your target model is guaranteed to have the tagged value types.

You can get more than a text filter, you can get a date field complete with a date selector.

5910
Automation Interface, Add-Ins and Tools / Re: Security Problems
« on: June 12, 2008, 02:12:03 pm »
David is right about one thing.

You can't go wrong with a feature request.  The function has the extra options there so that it can be extended to take more options without breaking existing callers.

Pages: 1 ... 392 393 [394] 395 396 ... 420