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.


Topics - jepessen

Pages: 1 [2]
16
I'm trying to use EA in order to write requirements for a library that I'm developing.

I want to write requirements that are related to its implementation and not its usage, like:

  • It must support Visual Studio 2015;
  • It must be built at 64 bit;
  • It must use log library of Boost;
  • Boost library must be forward declared in order to avoid to include its headers in library usage;
  • etc etc...

I've seen different types of requirements in EA but I don't understand which one fits better this kind of requirements. What should I use?

17
Hi.

I'm continuing to create a new language that clone c# and change some format options, in order to leave the original untouched.

I've seen that somewhere, i.e. in Class Body, the "Stereotype overrides" list is not empty, and it contains two items: enumeration and struct. By selecting them, I can see some code.

I want to do the same thing in my new language, so I go to my Class Body, and then click on "Add new Stereotyped override". I can select enumeration, and by selecting it in the list, I can add the original code.

My problem is that I cannot do the same thing for the struct, because I cannot select "struct" in the widget that appears when I click on the button:



How can I add struct class in Stereotype Overrides, and also other that are not present in the widget list, like the others tha I can see in "Operation Declaration" for example?

18
Hi.

I want to create a C# class that a method that returns an IEnumerable, something like:

Code: [Select]
IEnumerable<string> getStrings().

I've seen that I can return a string, but there's a default way to return a collection?

19
I've created a new language in Code Template Editor (with a new product name) in order to experiment a bit.

Now I want to remove it but I don't find a way to do it. How can I remove a user-defined language from it?

20
General Board / Implement C# property in interface
« on: June 15, 2016, 07:26:06 am »
I want to implement a property in a C# interface, so when I generate the code I obtain something like:

Code: [Select]
public interface IMyInterface
{
   string MyString { get; set; }
}

and in inherited classes:

Code: [Select]
public class MyClass : IMyInterface
{
   public string MyString { get; set; }
}

I've tried to add as attributes of interface my properties



But when I generate the interface I obtain the following code:

Code: [Select]
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;



namespace MyNamespace {
public interface IMyInterface  {

}//end IMyInterface

}//end namespace MyNamespace

What's the correct way to implement properties in interfaces?

21
General Board / Add <remarks> tag in c# xml comment
« on: June 15, 2016, 06:59:34 am »
Hi.

When I want to describe a property in C# class in EA, I put description in its notes, obtaining, when generating source code, something like:

Code: [Select]
/// <summary>
/// code comment
/// inside summary
/// </summary>

Is there a way to create both a summary section and a remarks section directly from enterprise architect, so when I generate source code I obtain:

Code: [Select]
/// <summary>
/// inside summary
/// </summary>
/// <remarks>
/// detailed property description.
/// </remarks>

22
General Board / [Beta 13] Replace text in Code template editor
« on: June 11, 2016, 04:32:28 pm »
Hi.

I want to replace tabs with spaces in generated code. In template code editor I want to replace all occurrences of "\t" with "  ".

In template code editor with CTRL+f I can open the Find and Replace widget, but I cannot find any way to replace the text, only find it. How can I replace text in editor?


23
Hi.
I want to generate c# code from UML classes. I want to generate classes using two spaces instead of a tab for indenting.

I've seen that in Code Template Editor when selecting a section like "Namespace Body" I see in text something like

Code: [Select]
@indent="\t"
Should I replace all these pieces of code with

Code: [Select]
@indent="  "
where I put two spaces inside double quotes? And, if yes, I must replace manually all entries or there's a easier way?

Last but not last, if I want to export these settings and import them into another PC with EA installed, what I should do?

24
General Board / Book or guide for plugin/script developing
« on: June 06, 2016, 07:46:11 am »
Hi.
I need to extend EA in order to create certain classes using a custom code generation.

I want to create some class with some stereotype that, with code generation, for every class generate source code for class itself and other linked classes.

For this it's best to use a script or a plugin? and I've did not find an extensive tutorial/guide/book in order to learn how to extend EA. Where can I find some useful resource?

25
Suggestions and Requests / Diagram guides
« on: June 02, 2016, 03:30:35 am »
Hi.
I like to align a lot UML symbols in my diagrams. I use the align tool, but I'd like to have diagram magnetic guide lines, like the ones present in photoshop or other graphic programs, in order to use them for aligning symbols with less effort. Do you think that's a nice addition?

26
General Board / Reset auto name counter.
« on: June 01, 2016, 08:50:54 pm »
I've started to add requirements to my project.
I've set the auto counter for requirements and they appear correctly.

Now requirements are changed (please don't ask  :-X ) and I need to rewrite them in my project. I've deleted all requirementes  but when I add a new one the counter starts (correctly) from the last one.
Instead I want to restart the counter from zero. Is there a way to reset a counter inside a project without creating a new one?

Or it's possible to use a script to manually set the counter? I'd like to create something like "use the first free index", so if at same point requirement indices are 1, 2, 4, 5, 6, the next one that I create will have index 3.


27
General Board / Dropping actor like link or instance in use cases
« on: May 28, 2016, 07:00:12 pm »
Hi.

I'm starting to create Use Case Diagram.

I've created a diagram containing the list of actors, and then I drag them into other use case diagram.

EA by default Drop the actor as Object(Instance). I'm used to drag element in class diagrams, and they are dropped as link. So I'd like to know what's the difference between dragging an actor as Object instead as a link, and if there's a preferred method.

Pages: 1 [2]