Book a Demo

Author Topic: Apply image from clipboard  (Read 4627 times)

marcelloh

  • EA User
  • **
  • Posts: 192
  • Karma: +0/-0
    • View Profile
Apply image from clipboard
« on: August 29, 2008, 04:46:17 pm »
This is what I do
User interface diagram, put a screen object on it.
right-click > appearance >  Apply image from clipboard
This works  :)
but.....when I save everything in subversion, synchronize with colleague,
and there,  my changed object is gone  :'(

Question: It this expected behaviour or a real bug?

I hope that this kind of info is not saved within the EAP-file, since we don't synchronize this file.

Christian Herger

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Apply image from clipboard
« Reply #1 on: August 29, 2008, 06:02:47 pm »
Hi marcelloh

I'd say, this is behaviour! Whether it is expected or not is another discussion  ;)

As you probably know, EA is based on a MS-Access DB.
Now, if you insert an image it is neatly stored in the DB as 'long binary data'.
I assume that you controll your packages and VC them with subversion.
So, if you check in your package that contains this diagram you certainly assume that everything is put away. As you even can not move element on a diagram of a checked in package! :(

The problem is: controlling packages is done via XML and in XML, you can not store binary data but only a link to it. What happens now is that an object of type 'boundary' is exported to XML and put into VC.
So if your colleague gets your changed package, he will only see an empty boundary for you are quite right: the image information is stored in the EAP-file only (which is an Access-DB).

At the moment I can not see a solution to this.
A possible approach could be that Sparx Sys. don't put the binaries into the DB but only store (relative) links to them. By then you cut put the binaries in subversion, too! But this still wouldn't be really satisfying, would it?  :o
Best regards

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Apply image from clipboard
« Reply #2 on: August 29, 2008, 06:35:20 pm »
When you export to XMI, there's an option to export alternate images - is that not working?  Is it applicable?

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Christian Herger

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Apply image from clipboard
« Reply #3 on: August 29, 2008, 06:54:17 pm »
Hi Paolo

This seems to work. But exporting to XMI is not the same as controlling packages... and when I choose to control a package I can not find this option!??

And furthermore, The image is put into a 'EAModel.image'-tag which is not defined in the EA's DTD??
Like this, import in EA fails... :(
Best regards

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Apply image from clipboard
« Reply #4 on: August 31, 2008, 11:43:43 pm »
Quote
Hi Paolo

This seems to work. But exporting to XMI is not the same as controlling packages... and when I choose to control a package I can not find this option!??

And furthermore, The image is put into a 'EAModel.image'-tag which is not defined in the EA's DTD??
Like this, import in EA fails... :(
Yes, I suspected that...

Welcome to EAUI..

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!