Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: adeveloper on September 17, 2012, 05:40:09 pm

Title: How to attach an image to a class
Post by: adeveloper on September 17, 2012, 05:40:09 pm
How do I attach an image, which is a screenshot of a win form to the corresponding class element?

Preferrablly I'd like to add a number of such images in the ImageManager, and then link them to their corresponding class elements. This way, we can get two way navigation, ie. from a list of images, see which class uses which image; and from a list of classes, see which image is the UI for that class.

Can we achieve this in EA? Thanks.
Title: Re: How to attach an image to a class
Post by: Stefan Bolleininger on September 17, 2012, 07:50:30 pm
The best possibility would be to create a diagram for that.

And than you can insert the images into your diagram.

regards

Stefan
Title: Re: How to attach an image to a class
Post by: Paulus on September 17, 2012, 10:29:06 pm
Actually if you want to trace relations between your classes and screens using them: DONT use plain images since these are not first-class model elements.

Take a look at the user interface toolbox: it contains an element Screen that you can use as a place for your 'screen shot'. The big advantage is that you can now use the standard traceabiulity tools of EA to navigate relations (take a look at the 'Traceability' view and 'Relationship matrix'.

Especially the last one might interest you as it allows one to view and update all relations from a single (matrix) view.

regards,

Paulus
Title: Re: How to attach an image to a class
Post by: Sunshine on September 19, 2012, 08:39:47 am
Here is a thought. Create a User Interface diagram and add an screen (from User Interface toolbox), copy the screen shot and apply image from the clipboard onto the screen object. You can rename the image later. Then add/drag the class(es) on to the same diagram. Create trace relationship between the screen and the class. If you have a lot to do I'd recommend using a matrix to create the relationships as its easier that way.
Hope that helps - cool eh?
8-)