Book a Demo

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

Pages: [1]
1
General Board / Re: Connectors in Custom CTF
« on: September 26, 2010, 06:22:25 pm »
alright figured it out, was doing it right but for some reason EA puts in double _ when naming a template. So i created connector template called connector__test, then call %list="Connector__test" @separator=" " @indent="" % from the class body. Make sure you use two _ after connector.

2
General Board / Re: Connectors in Custom CTF
« on: September 24, 2010, 04:09:17 pm »
I tried that also, i created a custom template of Connector type and used %connectorName% etc but it comes up empty...

Basically i need to know how i can access the generated code of a linked class in the first class?

3
General Board / Connectors in Custom CTF
« on: September 24, 2010, 01:40:38 am »
Hi,

What i want to do is retrieve the code generation from one class and insert it into the code generation of a linked class. I have a base class which i generate from and it has an asoociation to another class. It seems like i could possible do this by using the connectorxxxxxx variables however i cannot access them. I can access the linkedAttrbutes ok, linkedAttName etc. I feel there must be some rules about how to apply and where to call connectName etc from but i can't find anything in guide or forum. Can anyone point me in the right direction?

Regards,
Tim

4
Uml Process / uml pattern and composite classes
« on: October 11, 2010, 05:21:37 pm »
Hi,

Is there a way to create a template/pattern that will include the composite classes and their diagrams and classes. At the moment when creating a uml pattern it just ignores that it is composite ...

Tim.

5
Automation Interface, Add-Ins and Tools / GenerateClass extra options
« on: October 01, 2010, 06:54:16 pm »
Hi,

As i have come across other undocumented features i though i would just check this. The generateclass method has a second parameter for extra options, the doco says this is currently unused. Is there a plan to implement this option in the future? Is there any options i can set now? I would like to set the langauge, dir and filename same as when doing it manually. From what i can tell the method will use the options currently set, so if there is nothing set then...

GenerateClass (string
ElementGUID, string
ExtraOptions)


Regards,
Tim

6
Automation Interface, Add-Ins and Tools / Patterns in MDG technology
« on: October 05, 2010, 10:56:09 pm »
Hi,
I have created my MDG file with uml pattern, profile, scripts, and custom code templates. I then stick the mdg file into the EA MDGTechnology directoy. Then when i start a new project i can see my technology. Under scripts i can see the scripts i added. In custom templates i can see the custom code templates. Under toolbox i can see my profile, however for Patterns i cannot see anything. If i import the mdg into resources i can see it all but as that is not recommended i am trying to do it the other way. Where are the patterns? Perhaps i have to create a toolbox to refer to them? This is the case for GoF patterns but they are also visible under resources whereas mine are not.

Please, please help.


7
Hi,
Is there an issue with synchronizing operations. I have the synchronize working fine with stereotypes that are classes but i have an issue with operations. When i add in code they do not synchronise. If i then go to diagram and save them as a dif stereotype then save them back to normal stereotype they do sync. Code below shows how i add it which is the same as for the elements, so im not sure how to fix this issue. Any ideas?


Code: [Select]
       
        var MatchingRuleOp as EA.Method;
        MatchingRuleOp = ResponseRuleElement.Methods.AddNew(  "MatchAll" , "");
        MatchingRuleOp.Stereotype = "DP_MatchingRule";
        MatchingRuleOp.Update();
     thePackage.Elements.Refresh();
     Repository.CustomCommand("Repository", "SynchProfile", "Profile=DataPower;Stereotype=DP_MatchingRule;");
            

8
Automation Interface, Add-Ins and Tools / custom code generation
« on: September 27, 2010, 01:06:23 am »
Hi,
Is it possible to access a linked classes generated code? i.e from my first class can i somehow make a call to classBody from another class that is linked by an association or other connector? I have seen PROCESS_END_OBJECT(<template_name>) but there is almost no documentation about how to use this and still would only get access to certain things.

Any help would be appreciated

Pages: [1]