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

Pages: [1]
1
General Board / Update diagram on namespace changes
« on: November 20, 2023, 10:27:52 pm »
How do I handle situation where I imported my C# code via Develop->Source Code-> Files and created a diagram from the generated classed and later on one of the classes namespace is changed. When I import my code again I see the new class is generated but I want to update my diagram to use the new class in stead of the old without replacing one with the other. I did see some comments where they suggest using local path but that doesn't help in my case. I just want my element in a diagram to reference the same class but now in the new namespace.

Is there a way to update only the reference to the code and element from an element in the diagram?

Kind regards,
Frank Litjens

2
Uml Process / Sequence diagram with concurrent access
« on: March 15, 2023, 01:42:23 am »
I have a question of which I think I have the wrong idea since this question seems to be questioned more than once since the early 2000's and still I miss something. How do I model a blocking collection in a uml sequence diagram. Now I model it like:

  • A consumer doing a blocking call item = collection.Take() to the blocking collection (Thread A)
  • An another objects adds an item to the collection collection.Add(item) (Thread B)
  • A consumer receives a return with item value (Thread A)
but I have the idea that it should be different, since each call is a seperate message group while I expect the consumer call and return to be a single message group because it is in a different context.

Kind regards,
Frank Litjens

3
General Board / Re: Import .NET6.0 SDK solution does not import classes
« on: January 02, 2023, 11:48:42 pm »
Hi Thomas,

I received feedback from Sparx and they reported the issue as a known issue. It is registered and will probably be handled in the futute.

Greetings,
Frank Litjens

4
General Board / Import .NET6.0 SDK solution does not import classes
« on: November 16, 2022, 01:51:02 am »
When I try to import a normal visual studio solution having a .NET6.0 console application it does not generate any class.
I'm using EA 16.1 but previous versions had the same problem.

Do I miss something?

Kind regards,

Frank Litjens

5
General Board / Re: Message to self in UML Class diagram
« on: November 03, 2022, 12:39:18 am »
Hi Geert,

Thanks for your quick response. Is it possible than to add that association in the model without affecting the underlying code?

Kind regards,

Frank Litjens

6
General Board / Message to self in UML Class diagram
« on: November 02, 2022, 11:57:43 pm »
Hello all,

I would like to know if it is possible to show dependencies to self in a class diagram as an association instead of a member variable when the class diagram is generated by importing code.

For example:
I have a LinkedList pointing to the root of type ListItem. ListItem has to references to itself, _next and _previous.

The dependency from LinkedList to ListItem is presented as an association with label _root, but _next and _previous of ListItem is only showed as private member. For clarity I would like to present them as an association.

Is that possible?

Kind regards,

Frank Litjens

7
General Board / How to manage a moved class file
« on: August 25, 2022, 10:37:12 pm »
My question is fairly simple and hopefully the answer is just as simple too.

I work on a C# project with a lots of files, namespaces etc. It happens quite frequently that file locations change to different folders or even projects when one class is for example moved to a different library.

My question is the following: How to manage these refactoring issues when I imported the code into EA?

For example: I have a solution containing two libraries:

LibraryA contains class1
LibraryB contains class2

I imported the code and the model show two packages, one for each library, and each package containing their class. Now in VisualStudio I moved class1 to LibraryB.

When I press Ctrl-F12 on class1 I do not see any code associated with it. I tried to synchronize the root package which ideally should have moved Class1 to LibraryB, however this was not the case when I synchronized the package using reverse engineer (source -> model) using timestamps and include child packages.

I don't want to re-import the moved class since it causes problems with already created diagrams.

Summarized it are two questions:
  • What is the prefered method of handling these refactoring actions
  • How can I change the associated file location of a class.

Kind regards and thanks in advance for all help.

Pages: [1]