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

Pages: [1]
1
Suggestions and Requests / Re: Diagram Export to EPS/PDF
« on: December 10, 2009, 05:50:35 am »
Hi there,

I definitely vote for this feature.

I use currently a pdf printer through the official Adobe Acrobat. But it is kind of boring because it needs to be done diagram by diagram and it miss header (diagram name and date, ...).

By the way when you export a pdf this way, it can be opened directly in Adobe Illustrator. Everything is maintained as vectors and even texts can be edited and font changed, the only exception are gradient, export is correct but they are not editable.

Since EA is purely vectorial I feel that they miss something big in not allowing their users to export vector high quality and size independant diagrams. Which can reveal useful for printed books content for instance...

Best regards.

maddec

2
What you describe sounds to me like the history panel found in Adobe products and other. Gives a list of every operations made step by step and then you can switch between each states.

What do you think about my suggestion on undo/redo at in list level within a Class Element (list of attributes and operations direct manipulation)?
I'd like also to have the possiblity to drag and drop  in list of attributes and operations...

Best regards.

Cedric M. (aka maddec)
http://analogdesign.ch

3
Hello,

Thank you for your answers and comments.

Frank, I confess that it was very surprising at first that undo/redo was not implemented in the context I've described. But I guess that it is more complex to handle this multiple level and hierachy of "history" regarding the complexity and variety of elements mixed in EA. For example, when you edit a Class element there are plenty of way to edit the same piece of information, I guess it makes its handling more complex.
Maybe it is also a matter of context tracking, I guess it is hard for EA to define if undo is done on the whole diagram or on the currently selected Class Element data. I wonder if the fact to add buttons next to the class you are editing, allowing "local" undo/redo might be a solution? (buttons like quick link button).

Regarding the autolayout feature, it is one of the feature I turned off quickly when I started using with EA months ago. It gave me bad surprises when I reopenend complex diagrams... By the way thank you for the tip on Undo check out.


Best regards.

Cedric M. (aka maddec)


4
Hi there this is a feature I really miss:

Class Diagram undo/redo for class inline entries.

When I have a Class element and I do inline edition(I do not mean when the inline text edition is current ), if for example I delete one parameter, I can't undo my change.
Furthermore it would be nice to add this capability to the whole Class elements' edition panel workflow.

Thank you for your interest.


Best regards.

Cedric M. (aka maddec)

5
Hello,

I'd like that it is possible to save a diagram as a vectorial file format pdf (or/and) eps  (or/and) ai (or/and) svg (or/and) swf.
Of course I can use the pdf printer to do so currently, but it is not perfect comparing to save image EA features (for example which adds automatically for SQ diagram the SQ header with the diagramm title).

Thank you for your interest in this.

Best regards.

Cedirc M. (aka maddec)

6
Thank you very much for precising this and to have added this to the latest build. I've just upgraded to the latest version. I'm a bit late, I'm sorry ;)

Best regards.

Cedric M. (aka maddec)

7
Hello,
I have been using Enterprise Architect exclusively for Actionscipt Flash/Flex/AIR projects now for months .
I will try in upcoming months to spread the word around the Actionscript Flash Flex community how great EA is and MDG integration.

In my start up of using EA with Actionscript 3 code engineering, I found a very useful source:
http://www.dgrigg.com/post.cfm/09/14/2006/UML-Stub-Code-and-ASDocs
I suggest that these modifications may be integrated to EA release (point 1)?
I will post here other suggestions of improvement related to Actionscipt when they comes up.

I feel that to put extra tutorial especially about Actionscript may be useful.

Thank you for your interest.

Cedric M. (aka maddec)

8
General Board / Re: Actionscript 3 Constructor params auto generat
« on: May 14, 2008, 06:41:16 pm »
Actionscript 3, code generation.
Quote
Finally, default constructors (with no parameters) are only added if generating the whole class not synchonizing.
Yes I understand this point.

Ok thanks to your comment I understood that;
1: advanced code generation has a per class base
2: it can be resetted for a complete package and sub children to default main options.

Following my test:
1: constructor is generated automatically if Options|Source Code Engineering | Object Lifetime | Generate Copy Constructor is ticked
2: the constructor is not displayed automatically into the class element operations list (visual information). It requires that code is generated first, then synchronised. Which is a bit confusing. I'd like, if possible, to see this in the operations list.
But I understand it can be a bit hard to manage because the option change regarding Object Lifetime (possible at any time) should also remove the constructor from the operations list automatically.
Regarding As3 code generation I think that Generate constructor should be always on (to apply best practices).

Quote
You could achieve much of your other comments (for an initial generation at least) by modifying code templates.  (I'd look at adding a tagged value to the attributes you want set by a constructor, a custom template or two and listing over the attributes looking for that tagged value.)

Ok, so I'll look further into it if I have some time, but I don't know much about the syntax used, so it can be hard to manage by myself, if somebody has written such functionnality, do not hesitate to forward it to me.
By the way, I feel that to add in the attribute dialog of a class element a check box [ ] "set by constructor next" to []Derived []Static [ ]Property []Const might be very useful. If this check box is checked, then EA when it generates the default constructor adds automatically as parameter of the constructor function this variable and even the this.myVariable=myVariable ....

Thank you for your previous detailed answer.

Best regards.

Cedric M. (aka maddec)
http://analogdesign.ch



9
General Board / Re: Actionscript 3 Constructor params auto generat
« on: May 10, 2008, 06:48:28 pm »
Hello,

I guess your question is related to my point A.

Off course I have.
I even tried | Tools | Options | Source Code Engineering | Object LifeTimes

Generate Constructor.

But I never have a constructor added automatically to my new class.


Best regards

Cedric M. (aka maddec)


10
General Board / Actionscript 3 Constructor params auto generation
« on: May 10, 2008, 01:13:50 am »
[EA 7.1 build 829]
Hello,

I'm looking for 3 things to speed up my workflow in preparing models to be used with Actionscript 3 code generation.

In UML Class Diagram:

A:
Is it possible to tell somewhere that a constructor function should be automatically added to a class?

B:
I'd like to set that a var is part of a constructor parameter, and that this constructor takes it automatically as a parameter.
      1: create a var
      2: set somewhere that its data is given by a constructor function parameter
      3: parameter is automatically added to the constructor function

Is it possible ? How can I handle this?


C:
I'd like that each parameter in a constructor function are automatically associated with their Class vars counterpart (assuming they have the same name).

1: constructor function has a parameter myVar:
public function MyVar ( myVar:String ):void{
}

2: I'd like that the following is automatically added at code generation time (but only if it is a constructor(function with the same name as  class name) ):
public function MyVar ( myVar:String ):void{
      this.myVar=myVar;
}

Is it possible ? How can I handle this?

THE END RESULT should look like that:

package {
public class MyClass {

var myVar:String;

public function MyVar ( myVar:String ):void{
      this.myVar=myVar;
}
}

Ideally the only operation I should have set in EA is that myClass has a constructor, and that myVar receive it's data from the constructor function.

Thank you very much in advance for your help.

Best regards

Cedric M. (aka maddec)

11
General Board / Re: As3 Adobe published a best practice code writi
« on: May 14, 2008, 05:42:51 pm »
Thank you for your answer.

Yes, indeed EA is compliant to most of the code writing prescriptions. I'll compare it further, and let you know here some of the irrelevances, if any.
By the way I hope that you'll take a further look at it also...

Various related questions:
Why the default value for a not set return value is :var instead of :void?
Why void, int, uint are not available by default on type combobox?
Why in class attributes | Create property implementation there isn't a radio button for actionscript?
Why import statements (written in code) are not added to the dialog Generate Code (for a selected class) header text field when we reverse engineer the code into a diagram?


Best regards.

Cedric M. (aka maddec)
http://analogdesign.ch

12
General Board / As3 Adobe published a best practice code writing
« on: May 13, 2008, 11:00:16 pm »
Hello,

Adobe published recently a best practice code writing convention that might be useful to Sparx System, regarding Actionscript 3 code engineering. I hope that it will be taken into account if possible:
http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions

Thank you in advance for your interest.

Best regards.

Cedric M. (aka maddec)
http://analogdesign.ch

13
Bugs and Issues / code engineering Actionscript 3: parser block
« on: December 10, 2009, 05:08:58 am »
Hi there,

When I import an as3 class containing a RegExp literal:

var pattern2:RegExp = /test-\d/i;

the parser block and report an error: There was an error parsing ../MyClass.as on line 77.  Unexpected symbol: /      

I know that I could use the new operator instead:  
var pattern1:RegExp = new RegExp("test-\\d", "i");

But in some cases this is really boring/impossible to modify this in eahc class manually.

Thank you in advanceto fix this problem.

Best regards.

maddec

Pages: [1]