Book a Demo

Author Topic: link automatically visible  (Read 5300 times)

gilles2

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
link automatically visible
« on: April 14, 2011, 01:43:24 am »
Hi all,

I am trying to customize Enterprise Architect so that it behaves as i want to and i am questionning myself about what is possible and what is not.

1. Is there a way to block entreprise architect from showing existing links between elements when dragging and dropping those elements (as simple link) on a newly created diagram?

2. And is there a way, when creating a new relation between two elements to prevent EA from adding this new  link on all diagrams where both elements are visible ?

Thanks,
Cheers,
Gilles

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: link automatically visible
« Reply #1 on: April 14, 2011, 08:29:07 am »
No and No. (Well, at least not without writing an add-in responding to EA_OnPostNewDiagramObject and EA_OnPostNewConnector to explicitly hide relationships)

gilles2

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: link automatically visible
« Reply #2 on: April 14, 2011, 06:30:53 pm »
Thank you  for your answer Simon.

But one last more question :
How does EA behave if your eap file is under  version controlled with following scenario :

- You checkout package A
- In package A, on a diagram, you add a link between two elements
- both elements are also visible on a diagram in package B which has not been checked out (so not writable)

--> in that case, the diagram located in package B cannot be updated to show the  newly created link.

Can you confirm this ?
If yes, we can have two kinds of behaviour from EA ?

Thanks
Gilles

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: link automatically visible
« Reply #3 on: April 14, 2011, 08:45:07 pm »
Gilles,

The diagram doesn't have to be writeable to add the links.
So yes, the links will be added to the diagram, even if it isn't checked out.

Geert

gilles2

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: link automatically visible
« Reply #4 on: April 14, 2011, 10:08:59 pm »
Well,

I check my idea by myself and i am quite confused with the result.
The diagram which is not writable is refreshed and displays the newly created link (on a writable diagram).


A diagram can be changed  automatically by EA in a non checked out package ? I know that the link is stored in the package of the source element of a relation but what is displayed in a diagram is stored in the package containing the diagram  ? isn't it ? So the modification of my diagram is not sent to the version control system ?

And what is more strange, if i try to do it manually : menu > diagram > visible relations is disabled for diagrams in non check out package.

So i try something else : creating a link between two elements in a diagram non checked out ( considering that both elements linked are located in checked out packages) : not possible


So am i misunderstanding something ?

Thanks,
Gilles

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: link automatically visible
« Reply #5 on: April 14, 2011, 11:04:53 pm »
Gilles,

The thing is that in fact, the diagram itself is not changed when a link between two elements has been added.
EA will, on the fly, inspect all relations between the elements shown on the diagram, and show the appropriate relations.
Yes, you can only add the relations on a writable diagram.
I'm not sure about the specification of a diagram in ea's xmi, but it might indeed be possible that there is no trace of the relations when exporting the diagram. (which means that for your VCS there is no difference).

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: link automatically visible
« Reply #6 on: April 15, 2011, 10:15:57 am »
Quote
Gilles,

The thing is that in fact, the diagram itself is not changed when a link between two elements has been added.
...
EA doesn't think so, but the rest of us in the real world do...

"It used to look one way, now it looks different", ergo it MUST have changed...

J.R Abrial has been right all along...

(It's Friday...  ;))

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

gilles2

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: link automatically visible
« Reply #7 on: April 15, 2011, 05:54:35 pm »
Quote
EA doesn't think so, but the rest of us in the real world do...

Paolo,

to be more precise, EA doesn't think so, but it does not allow you to work as it works, i mean you cannot modify visible relations on a diagram that is located in a non writable package. ;-)

Gilles


skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: link automatically visible
« Reply #8 on: May 05, 2011, 08:21:50 am »
Quote
2. And is there a way, when creating a new relation between two elements to prevent EA from adding this new  link on all diagrams where both elements are visible?
But you can then undisplay the link on all other diagrams afterwards.
From link context menu choose "Visibility | Hide Connector in other diagrams.

IMHO it would be useful to have, on a diagram properties basis both of these as options
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.