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

Pages: [1]
1
General Board / Multi-page diagram cut-off in RTF documentation
« on: July 10, 2007, 12:08:49 am »
I have a diagram that is a few pages long. If I go to Print Preview for the diagram, the diagram is correctly displayed as separate pages according to the page borders.

However, when I include the diagram in a RTF generated document using the diagrams template, the diagram is displayed on one page only with the second page cut-off and not visible.

Is there an option that I need to set for the RTF documentation to make this work or is this a defect?


2
General Board / Code generation with relative paths
« on: June 21, 2007, 01:09:26 am »
Does anyone know of a way to forward engineer a model by using relative paths? The "Generate Package Source Code" dialog allows you to specify a Root Directory when the "Auto Generate Files" option is selected, however this always populates with the absolute path such as "C:\myproject\code", whereas I need to specify it as a relative path something like "..\code". I can't seem to find any way to specify a relative path here because the edit line is disabled.

This causes a problem for us because our source code is accessed via network drives (we use ClearCase for our CM system) and we also move the project locations from time to time.

3
Bugs and Issues / Re: Naming problem when using transfomation to C#
« on: February 10, 2009, 12:20:24 pm »
There is another alternative. EA provides a mechanism for you to associate the property and underlying attribute, and lets you choose a name for the Property.

Do the following:
- Go to the Attributes dialog for you class and select the attribute that you want a property for.
- Check the "Property" checkbox. This will bring up a dialog called "Create Property Implementation"
- You can specify the name of the Property in the "Name" field and also specify whether you want Get and/or Set scope

Although you will have to do this for all your properties, it does provide better control than changing the generation templates which may cause you pain in future when you upgrade your EA version etc.

4
Bugs and Issues / Re: Can't define Generic .Net Interface
« on: February 11, 2009, 11:04:00 am »
Ok thanks Simon. Do you know if this is on the Roadmap in the near future?

5
Bugs and Issues / Can't define Generic .Net Interface
« on: February 10, 2009, 12:04:14 pm »
I have a .Net interface defined as follows:
public interface IRepository<T>

I can not find any way to define this Generic interface in EA since the "Details" tab where you define "Templates" is not available for interfaces like it is for classes. I have also tried reverse engineering the interface but it also does not seem to define the Type parameters.

Does anyone know how to do this in EA? Otherwise my round-trip engineering would be pretty useless if it can't handle this standard .Net2.0 functionality.

6
Automation Interface, Add-Ins and Tools / .Net Generic method parameters?
« on: February 09, 2009, 07:25:09 pm »
I have a generic class that is defined in C# as follows:
public class Repository<T> : IRepository<T>

It has a method that takes an instance of type T as a parameter:
public virtual void Add(T entity);

I am trying to work out how to define this Parameterised parameter in the EA Parameters dialog for my operation? Would I enter <T> in the "Type:" droplist?

Reverse engineering the UML from the class definition also didn't work since the above "Add" method came back with no parameters defined. I was also unable to define the Parameterised Type for the Interface since the "Details" tab is not available. I presume these are bugs?

Any ideas from anyone how to solve this problem? It would make my round-trip engineering pretty much useless of this standard .Net2.0 functionality is not supported.

Pages: [1]