Author Topic: How to attach an image to a class  (Read 3728 times)

adeveloper

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to attach an image to a class
« 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.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: How to attach an image to a class
« Reply #1 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
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: How to attach an image to a class
« Reply #2 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

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1320
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: How to attach an image to a class
« Reply #3 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-)
Happy to help
:)