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

Pages: [1]
1
Suggestions and Requests / Possibility to add diagrams to a method
« on: December 03, 2010, 01:36:42 am »
I miss the possibility to add a activity or state chart to a method in a Class diagram. It would be helpful to document a algorithm of a method with a activity diagram, so it would be possible to open the activity diagram by double clicking the method.

2
Bugs and Issues / Re: EA deletes Realize when reverse synchronizing
« on: December 03, 2010, 07:18:23 pm »
Oh, it's a pity... however thank you for your quick reply!

3
Bugs and Issues / EA deletes Realize when reverse synchronizing
« on: December 03, 2010, 01:49:48 am »
Hello,
I imported C-Source-Code and I want to use Realize Connectors. But when I reverse synchronize the Model with the source code, EA always deletes the Realize Connectors, even when I deactivated the "On reverse synch, delete model associations not in code" in the Options menu. Is there any way to get EA to leave this Connections untouched?

4
Bugs and Issues / Problems with Comments: Reverse Engineering C-Code
« on: December 03, 2010, 04:07:14 am »
Hi,
I imported C-Source-Code in a Class Diagram using the reverse engineering option. I'm using Javadoc-Style Comments with Doxygen for each file and each function like in this example:

/** @StartHeader
 *
 * @brief      Purpose of this file.
 *
 * @filename   filename.c
 * @author     Jeronimo
 * @date       02.12.2010
 * @project    My Project
 *
 * @copyright  2008-2010 ...
 *
 ** @EndHeader */

#include "filename.h"

/* -----------------------------------------------------------------*/
int x; /**< description of variable */

/**
 * @brief Short description of the following function.
 *
 * @param myParameter
 * ...
 */
void foo(int par)
{
    ...
}

When I'm importing this source code EA ignores the file header and takes the last comment before the first statement as Note for the generated class ( in this case the line above the declaration of the variable x  /*---...---*/).
The next problem is, if I change the notes of the class and reverse synchronize the source code with the model later, then the notes written in EA will be overwritten by the comments in the source code.
How can I avoid this?
P.S.:
I already tried to deactivate  Notes in the options menu for C Source Code Engineering...

5
Bugs and Issues / struct-Problem when Reverse Engineering C-Code
« on: November 16, 2010, 08:18:44 pm »
Hello,
I try to generate Class Diagrams from our C-source code using the reverse engineering option. I have the following problem:
EA generates for structures a extra class with the stereotype "struct" and uses the tag-name of the struct as class name.
But in our source code almost all structs are typedef'd and the structs are referenced by their typedef-name. So EA is not able to set the associations because it looks only at the struct-tag-name.
In some cases where only a typedef-name is given (and no struct-tag-name) EA detects the associations.
If I change the class name from the struct-tag-name to the typedef-name EA generates the associations on a resynchronization BUT it also generates a second class for the struct with the struct-tag-name...
Exists there any way to solve this problem?

bests,
Jeronimo

6
Dear Geert,
thank you very much for your quick help!  :)

7
Hello,
I try to generate automatically some Activity Diagrams, but I see
no way how to create a ActivityInitial and a ActivityFinal node...
I thought I can specify this by the attribute "type" of the element.
But "ActivityInitial" and "ActivityFinal" is no valid type...
Is there any way to create this elements?

bests,
Jeronimo

8
Dear all,
i found out whats going wrong... My fault was before the code fragment:
I created a new Diagram, but I didn't save the diagram using the activityDiagram.Update();  -method.
After creating the Diagram I have to save the Diagram before adding elements to it!

Thank you all for your help!  :)

9
Hello Simon M,

unfortunately saving the activity doesn't help... The activities are just still appearing in the project browser but not in the diagram.

bests,
Jeronimo

10
Hello Geert,
thank you for your quick reply! Unfortunately reloading the
Diagram by Repository.ReloadDiagram(activityDiagram.DiagramID)
doesn't help... the diagram is still empty...  :(

bests
Jeronimo

P.S.:
I wish you all a merry Christmas and a happy new year!

11
Hello,
I try to write a Jscript which adds an activity diagram to every class and adds for each method of the class an activity to this diagram. Unfortunately the added activities don't appear at the diagram...

[size=10]for(var n = 0; n < methods.Count; n++)
{
    // Get the current method
    var currentMethod as EA.Method;
    var newActivity as EA.Element;
    currentMethod = methods.GetAt(n);
    
    // Create an activity for this method
    newActivity = currentElement.Elements.AddNew(currentMethod.Name, "Activity");
                        
    // Add the activity to the diagram
    var diagramObjects as EA.Collection;
    diagramObjects = activityDiagram.DiagramObjects;
    var activityDiagramObject as EA.DiagramObject;
    activityDiagramObject = diagramObjects.AddNew("l=200;r=400;t=200;b=600;", "");
    activityDiagramObject.ElementID( newActivity.ElementID );
    activityDiagramObject.Update();
    diagramObjects.Refresh();
    Session.Output( "Added activity '" + newActivity.Name + "' to
                             diagram '" + activityDiagram.Name + "'");
    currentElement.Update();
}[/size]


What I'm doing wrong?

bests,
Jeronimo

12
Automation Interface, Add-Ins and Tools / Importing JScripts?
« on: December 03, 2010, 04:27:30 am »
Hi,
I've written several JScripts in a Test-Project. With the "save as"-Button it is no problem to export them. But is there any way to import this JScripts  in another Project without copy&paste?

Pages: [1]