Book a Demo

Author Topic: Images missing when using Version Control  (Read 4288 times)

Hofmann

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Images missing when using Version Control
« on: February 18, 2014, 08:17:07 pm »
I have an EAP file which contains a custom image on a diagram. I put the whole EAP file under Version Control (Team Foundation Server).
Everything works fine, I can checkout packages, modify them and check them in again.

Now I wanted to test, if it is possible to restore the EAP file from the version controlled files only (many .XMI files + one .EAB file):

I created an empty EAP file. Then I right clicked the root package "Model" and chose "Package Control/Import a Model Branch". I then chose the EAB file. After the import was completed, the package structure and all elements where there, but the diagram did not show the custom image (although the element containing the image was there).

I then exported the Project Reference Data from the original EAP file and imported it in the new EAP file. Under Settings/Images I can see the custom image, but still it isn't displayed on the diagram.

What can I do?
Thank you.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Images missing when using Version Control
« Reply #1 on: February 18, 2014, 08:46:51 pm »
There is a flag in Tools/Options/XML that tells EA to export images. Try turning that on.

q.

Hofmann

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Images missing when using Version Control
« Reply #2 on: February 19, 2014, 02:59:46 am »
Sorry, doesn't help.

I tested further and recognized this:
If I add an image to the diagram which comes with the EA Installation, I can see it also in my "restored" EAP file (after I chose "Get All Latest").

I also looked into the XMI file which contains the diagram with the custom image. The custom image is stored in the XMI file as binary data.

Hofmann

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Images missing when using Version Control
« Reply #3 on: February 19, 2014, 08:03:38 pm »
Finally I found the bug:
It depends on which kind of file format the bitmap is of. If I use PNG, then the image is not displayed on the diagram anymore. If I use JPG or Metafile everything works fine.

So I guess this is a bug in EA!?
« Last Edit: February 19, 2014, 08:06:15 pm by wdh »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Images missing when using Version Control
« Reply #4 on: February 19, 2014, 08:40:54 pm »
You should probably not call it bug but individual characteristic of EA ;)

q.

Hofmann

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Images missing when using Version Control
« Reply #5 on: February 19, 2014, 10:43:50 pm »
Ok, it's not a bug, it's a feature  ;)