Book a Demo

Author Topic: Link Element with Diagram  (Read 3556 times)

danielku15

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
  • Nobody is perfect and I'm a nobody :D
    • View Profile
Link Element with Diagram
« on: August 01, 2007, 10:20:11 pm »
Hello again.
I've got 2 models in my project. One contains the different views with the data and the other the documentation of these views with packages.
Now I have documentation-objects on the diagrams of the documentations. And if I doubleclick on one of these documentation-objects (Class with Stereotype "model document") I want to open a specific diagram. Is this possible?

- Daniel
CoderLine.net - The Online Coder Resource (comming soon)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Link Element with Diagram
« Reply #1 on: August 02, 2007, 02:53:10 am »
Daniel,

I'm not sure if this is the best way to go about what you want, but it has worked for me.

First, make sure you cannot handle this some other way. Perhaps a composite element or something will be better for you in some cases.

Try creating a hyperlink on your source diagram, and set the link to point to your target diagram. You will be removing all the text later, but don't do it right away. Shape the hyperlink to the same dimensions as the documentation object. You might need to fiddle with it a bit to do this. Now, place the hyperlink over the documentation object. Finally, remove all the text from the hyperlink.

[The reason to leave the text on the link is to avoid a 'gotcha' when you are moving and shaping the link. It is very easy to 'lose' the link if there is no text. Since the link becomes invisible, if you accidentally select another element (or click outside of the link anywhere) the link will disappear. It can be hard to find it again.]

David
No, you can't have it!

danielku15

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
  • Nobody is perfect and I'm a nobody :D
    • View Profile
Re: Link Element with Diagram
« Reply #2 on: August 02, 2007, 10:26:21 pm »
Hi.
I'm not sure if i can handle it some other way. My strucure is like this:
Code: [Select]

Model01
|
+-->Dialog View
|   |
|   +--> Package01
|        |
|        +-->Diagram01
|        +-->Dialog01
|            |
|            +-->Functionaliy
|            +-->Action*
Model01 Documentation
|
+--> Dialog View
    |
    +--> Overview (Contains the Different Packages)
    +--> Package01  
         +--> Diagram01 (Contains the Documentation-Object)
         +--> Package01 (Documentation Object)
         

...

In Diagram01 are the different dialogs placed. Dialog01 is a composite object and contains the functionality.
Now I have a documentation-object of the Package01 which creates a documentation over all dialogs. And I want to link the documentation object in the Diagram01 of the documentation, to the Diagram 01 to get to the diagram-overview.

I don't think there are any possibilities to get this without an overlay.
« Last Edit: August 02, 2007, 10:26:53 pm by danielku15 »
CoderLine.net - The Online Coder Resource (comming soon)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Link Element with Diagram
« Reply #3 on: August 03, 2007, 02:11:52 am »
At present EA does not support diagram layering, if that's what you mean.

Try the trick with hyperlinks. As I said it is not perfect, but perhaps it will work well enough.

David
No, you can't have it!

Krzysztof Swiatkowski

  • EA User
  • **
  • Posts: 76
  • Karma: +0/-0
  • Understanding is a three-edged sword
    • View Profile
Re: Link Element with Diagram
« Reply #4 on: August 06, 2007, 11:10:33 am »
You might try the trick with composition ;).
It goes like this:
1. Drag diagram you want to link with to be the child of documentation class.
2. Mark doc class as composite object
3. Now you can double click doc class to go to that diagram
4. Put the diagram back where it belongs :)
5. You still can double click doc class to go to that diagram although it is somewhere else :)

As always playing first with non crucial project is recommended
HTH
Kris
If I put you finger in the eye
then you have finger in the eye
and I have finger in the eye
but it's not the same