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

Pages: 1 [2] 3 4
General Board / Re: Transformation : iterate through all classes
« on: May 20, 2008, 07:26:54 pm »
To reiterate my problem:

Create a single class that has a factory method for each class in the transform.

The problem seems to be getting the list of classes in scope when I generate this single class.

I have tried moving the transform everywhere to see if I can get this working, but I can either generate several classes with the same name(?!!) or a single class with no methods.

General Board / Re: Transformation : iterate through all classes
« on: May 20, 2008, 06:57:08 pm »
mmm.. I had done something similar already:


Code: [Select]

%list="Namespace" @separator="\n\n" @indent="  "%


Code: [Select]
%PI="\n  "%


      %list="Class__BusinessServiceLogicFactoryMethod" @indent="" @separator="\n\n"%       


Code: [Select]

The problem is that the Class__BusinessServiceLogicFactoryMethod never seems to get run... I have put in illegal characters to try to force an error but nothing happens.

Any ideas? :-?

General Board / Transformation : iterate through all classes
« on: May 16, 2008, 06:37:32 pm »
I have got the rest of mytransformation working and I am stuck with one last problem: I am trying to generate a single class which is a factory for all the classes that are being transformed.

I currently have class template for this and I want to do something like the following:

    for each class in the class list


Where do I start in doing this? I'm sure it must be a simple task but the  'language' is a bit obtuse and there are not many samples to work from.

General Board / Re: Transformation : How to output notes for a cla
« on: May 21, 2008, 12:01:32 am »
thanks.. that works fine.

Simple once you know how.


General Board / Transformation : How to output notes for a class
« on: May 16, 2008, 07:34:40 pm »
How do I add ClassNotes to a transfored class?

I couldn't find anything in the doc so I tried/guessed at the following:


... but it fails at the first hurdle: Unexpected symbol

General Board / Re: Delete Custom Transformation Type
« on: May 15, 2008, 03:47:37 pm »
In the end I just opened the eap file in Access and edited the data directly. This seems to be the only way to rename any transforms or templates... naughty I know but there is nothing in the interface to do much template management.

General Board / Delete Custom Transformation Type
« on: May 14, 2008, 10:33:34 pm »
I have created a new transformation type in my model, which was essentially a learning tool. I am now trying to remove/delete it but can find no way of doing so.

Is it possible to delete this transformation? :-?

General Board / Shared licence admin...
« on: February 27, 2008, 02:49:27 am »
We are using shared licenses with EA Corporate edition. It seems that keys are not automatically returned.

a) Is it possible to configure it so that keys are returned after a specified period of no usage?
b) Is it possible to see who has the keys and revoke them so that others can use them?

General Board / Re: Linking a method on a class to another diagram
« on: March 11, 2006, 02:21:32 am »
I have used hyperlinks on a diagram, but this is not a very elegant solution.

I want to do it on the class itself, so that whatever diagram it appears in, you can navigate to the sequence diagram.

General Board / Linking a method on a class to another diagram
« on: March 10, 2006, 07:27:04 am »
I posted something on this ages ago, but can't for the life of me find it!

Basically, I would really like to be able to somehow link a method on a class in a class diagram to a sequence diagram which shows how the method works. On the sequence diagram, I'd like to add a link the other way.

Then, when you view the class diagram, you will be able view the sequence diagram for the method then navigate back to the class diagram.

Is this possible, even by devious means?

General Board / .NET: adding a single class from the framework.
« on: March 10, 2006, 07:34:05 am »
Every so often, I would like to add a class from the framework just to be able to show what is happening.

Is there a quick way of doing this without having to reverse engineer the whole of the System namespace?

I have done this once and found it just created a lot of noise which I don't want. I deleted most of the classes I didn't use. Now that I need one of those classes again, I now need to reverse engineer the whole system namespace again just to get the one class.

Would it be possible to reverse engineer the framework classes into a seperate area/ project and then only bring in the ones I want to actally use?

General Board / Re: C# code generation templates
« on: March 10, 2006, 07:20:40 am »
I am presuming you mean the registered users section?
I cannot find this anywhere.. could someone either provide me with a link or at least tell me where to find it!


General Board / Re: namespace setting
« on: March 10, 2006, 07:07:05 am »
The namespace is output by the code generation templates, which you can manipulate.

You need to conditionally set the namespace to be as you define it rather than the package structure, which is the default.

I suggest you maybe put a tag on the classes you wish to treat this way, then edit the template to query this tag and output the namespace appropriately.

As to how to do this.. well, there is a load of documentation you need to read!

General Board / Re: Generation of Associations as a Property
« on: January 21, 2006, 06:53:12 am »
OK... done it.. does anyone want the template? ;D

General Board / Re: Generation of Associations as a Property
« on: January 19, 2006, 04:20:52 am »
I know this is not standard behaviour.. I was thinking something along the lines of changing the way the code for an association is generated.

I will put this forward as a feature request.. until then has anyone any clever schemes to get this done?

Pages: 1 [2] 3 4