Book a Demo

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 - du-it

Pages: [1] 2
1
Suggestions and Requests / Re: Live-update in descendant classes
« on: November 16, 2005, 02:56:47 am »
Well, I think I see what you mean but:
Lets say I have a parent class with an operation named 'abc' and a subclass in which I chose to override this method.
If I then change the name (not via new operation but via changing its name) I would expect that the name will be updated in all subclasses. So renaming 'abc' to 'def' in the parent class should result in renaming the operation to 'def' in the subclass as well.
Of course, I overrode this operation but the intention ist just to override the operations content and not its signature (since this would be no overriding but a different operation).

What about my suggestion to not show final methods in the overriding dialog? Do you agree?

2
Suggestions and Requests / Live-update in descendant classes
« on: November 15, 2005, 09:36:36 am »
I wonder if it is possible with EA that changes made in a parent class will be reflected in a descendant class?

I have created a class A with some attibutes and operations. Another class B is a descendant of class A and I choosed some operations to be overriden by class B. Some time later I choosed to change the name of an operation in class A but this is not reflected in class B.
Is this a bug or intended?

Furthermore I figured out that even operations which are declared as final/const in class A are offerd to be overriden in the subclass. Since they are final they should not appear in the dialog for operations to be overriden/implemented.

3
General Board / Re: Java import statements by code generation
« on: December 15, 2005, 03:41:42 am »
Oh, I found out that I can setup the dependency as described and then delete the dependent class from the VIEW without removing the dependency from the concerned class as I can see in its 'Link' tab.
::)

4
General Board / Re: Java import statements by code generation
« on: December 15, 2005, 01:14:03 am »
It's clear to me that I have to generate an import statement manually for classes defined externally like thje JDK classes.

The [...] button doesn't help.

A dependency connectory, however, does the job well. I have separated the views for certain parts of the model to make them more concise. For instance I have some events defined by myself and I put them on a separate diagram so that the focus is on these events and not on the stuff around. Using a dependency connector I have to include all the used classes into this diagram which makes it less concise.
But I partly understand that it's a kind of dilemma for EA to know when to generate import statements automatically.

I would suggest, however, that EA should automatically generate import statements whenever another class is used. Either as instance variables or as method parameters. The quintessence is: the class uses another class which needs to be imported. Thus, I have to generate an import statement automatically independent from placing any kind of connectors to the model.

Thank you very much for your help.  :)

Regards,
Dirk

5
General Board / Java import statements by code generation
« on: December 14, 2005, 02:57:36 am »
I encountered some strange behaviour of EA during Java code generation. I have to insert an import statement manually when using classes not contained in my own model like java.util.Map and so on (or is there a flag I can set to do this automatically in EA?).
But I have to do this for classes I have modelled by myself, either, unless I have defined an attribute within a class. In this case EA generates an imoport statement automatically. If some classes for instance are used only as a method's parameter, no appropriate import statements are generated and I have to add them manually in the code generation dialog.

What can I do to automate this generation of import statements?

Thank you,
Dirk

6
General Board / How to generate javadoc with java tags?
« on: November 03, 2005, 04:00:12 am »
???
I want EA to generate javadoc for classes, methods, params, ... How can I do this considering HTML tags like <p> or <code>xxx</code> and special javadoc block tags like {@link xyz} and so on?

Thank you,
Dirk

7
General Board / Re: final classes
« on: November 02, 2005, 01:02:47 am »
Oh, I see. I have to select the 'isLeaf' checkbox in the dialog which opens after clicking the 'Advanced' button.

8
General Board / final classes
« on: November 02, 2005, 12:37:23 am »
I wonder how I can define a class as final in a class diagram? Can anybody give me a hint?

Thank you,
Dirk

9
General Board / Re: Setter params
« on: October 27, 2005, 12:37:48 am »
Oh, Jesus!

A good idea to override the template but how can I do this (since I'm a newbie to EA)?
Where can I get information about the script language?

Dirk

10
General Board / Setter params
« on: October 26, 2005, 08:39:26 am »
I wonder how I can change the name of a setter method for an attribute without having conflicts during code generation?

After defining an attribute I checked the Property checkbox whereafter the appropriate get and set methods are generated automatically. When I, however, want to change the setter method's parameter name the code generated during forward engineering leads to compiler errors because the parameter's name in the method's signature was changed but the code in the method's code block still works with the parameter's old name 'newVal'.

How can I change the name without running into troubles with the Java compiler?

Thank you,

Dirk

11
General Board / Default constructor in forward engineering
« on: October 26, 2005, 04:30:13 am »
EA generates a default constructor. How can I prevent this? The user help tells me that I can set up this under Tools->Options->Local Options but I can't find th eplace to tell EA "Don't generate a default constructor".
(Target language is Java.)

How can I achieve this?

Thank you,
Dirk

12
General Board / Constructor in class diagram
« on: October 18, 2005, 02:40:22 am »
How can I describe a [glb]constuctor[/glb] or destrucotr respectively in a class diagram?
I found out how to define operations and attributes but not how to declare a con-/destructor.

Thank you,

Dirk

13
General Board / Re: Define an operation's exceptions
« on: October 13, 2005, 12:23:59 am »
Thanks to both of you.

In the meantime I defined a tag named "throws" since I found it somewhere in a documentation/tutorial.
I will additionally apply your suggestion, TrtnJohn. I think it's good manner to define pre and post conditions.

Thank you,

Dirk

14
General Board / Define an operation's exceptions
« on: October 12, 2005, 06:57:21 am »
I'm a newbie to enterprise Architect.
How can I define Exceptions thrown by an operation (target language is Java)?

Thanks,

Dirk

15
Uml Process / Re: Code Generating Finalizer
« on: November 23, 2005, 11:25:09 am »
I'm running 772 and I have to uncheck 'Generate Destructor' for each class separately.
To uncheck this field in Tools-->Options-->Lifelines doesn't work. Using this checkbox solely results in creating finalize methods.

Pages: [1] 2