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

Pages: [1]
1
General Board / Operations: Throwing Exceptions
« on: January 14, 2003, 04:22:50 pm »
I have just started using EA today and have a question:

We are using Java as our coding language. When defining an operation in EA that will throw an exception how/where do I decleare that the operation throws an exception? I can't find where to do it.

2
General Board / Re: Generated Constructor Includes Return Type
« on: January 16, 2003, 07:55:39 am »
OK, thanks. So how do I include a constructor in my design?

3
General Board / Generated Constructor Includes Return Type
« on: January 15, 2003, 11:23:43 am »
When creating an operation on one of my classes, I checked the "Const" checkbox on the "General" tab. I assumed that meant that this operation would be a constructor. When I generated the class, however, the generated code included a return type of "void". This is incorrect syntax for a constructor which, of course, has no return type.

Was I incorrect in assuming that the "Const" checkbox indicated that I wanted this operation to be considered a constructor?

Or is there a bug in EA that is causing it to add a return type to constructors?

4
General Board / Re: Inherit From JDK Class
« on: January 27, 2003, 08:09:44 am »
I had already tried that, but found no way in EA to do it. I could only find "Import Source Code", which doesn't work as the unjar'd files are, of course, .class files, not .java files. The online help gave no assistance. Any ideas on how to do this?

5
General Board / Inherit From JDK Class
« on: January 14, 2003, 04:27:18 pm »

How do I represent that a class I am defining is subclassing an existing class from the JDK?  For example, I want to create my custom Exception classes which will inherit from java.lang.Exception. Is there a way to tell EA where my JDK is installed so it can recognize these base classes (and interfaces, too) so that they can be referenced as parent classes, attribute types, and parameter types? The only way I can see right now is to define all the JDK classes I need myself but that is more work than I want to do.

TIA.


6
General Board / Including Title Or Page # When Printing
« on: January 22, 2003, 11:49:53 am »
When printing a multi-page diagram (e.g. sequence diagram), is it possible to get EA to include either a title on every page or a page number on each page? This would make it much easier to collate pages that get shuffled out of order. But I can't find anyway to do it. Which means that it can't be done or it is so simple that it eludes me.

7
General Board / Generate Default Constructor
« on: January 15, 2003, 11:20:45 am »
According to the documentation (section 7.4.2), it is possible to set options that tells EA whether or not to create a default constructor and/or a destructor. This section of the documentation even shows a picture of the dialog box that is supposed to allow you to set these options. However, the dialog box contains no actual checkboxes for setting these options. That includes both the dialog box in the picture in the documentation and the actual dialog box in the EA product.

Is it possible to set these options or is the documentation incorrect?

8
General Board / Class Properties: Class Implements Interface?
« on: January 15, 2003, 10:27:40 am »
I want to indicate that a class will implement an interface. How can I do this in EA?

There is nothing (that I can see) in the ClassProperties window that will allow me to do this. Correct me if I am wrong.

Alternatively, I guess I can place both the interface and the class onto a Class Diagram and connect them with a "realise" relationship, but I can't figure out how to do this either. If I drag an interface from the ProjectExplorer onto my diagram then EA makes an instance of this interface and names it the same as the package within which the interface lies. There is no way to change the name of the object. For example, I have a package called "db" and within that package have an interface called "TransferObject". If I drag the "TransferObject" onto the diagram I get an object with the following notation:

<<interface>>
db:TransferObject

(I've tried turning AutoInstance off, but that seems to have no effect.)

When I open up the properties for this object there is no way to change the "db" to what the actual class will be called, which is "Account", by the way.

Is there a way (it should be very simple to do) to indicate on a class diagram that a class implements an interface?

Pages: [1]