Book a Demo

Author Topic: How to jump back to the last ("parent") diagram?  (Read 3419 times)

pstein

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
How to jump back to the last ("parent") diagram?
« on: October 12, 2010, 11:36:13 pm »
Assume I am viewing currently a certain Activity (or other diagram) "aaa"
in tab number 5

Then I double click on an activity inside which let me jump to a "child" activity "sub-aaa" diagram in another tab number 28.

Then after having done something I decide to go back to the "parent" diagram.

How can I achieve this without having to search through all open tabs?
I need a function key or menu or toolbar icon which let me go just one tab backwards in the call hierarchy (=Not an undo !).

Is there something like that in EA?

Peter

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to jump back to the last ("parent") diagra
« Reply #1 on: October 13, 2010, 06:57:01 pm »
Peter,

Alt+left/right arrow will open the tab to the left or the right.
It's will not open the previous diagram, but it might already be of some help.

Geert

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: How to jump back to the last ("parent") diagra
« Reply #2 on: October 15, 2010, 08:07:33 am »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: How to jump back to the last ("parent") diagra
« Reply #3 on: October 15, 2010, 08:55:57 am »
Integrated navigation through tab history and tab reordering are currently under development. I would expect both features to be in the next major build of EA.

If you log a feature request through to Sparx Support we can put your name against the change so that you're notified when it ships.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Thomas Evers

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: How to jump back to the last ("parent") diagra
« Reply #4 on: November 05, 2010, 01:38:24 am »
Peter, If I understand you correctly, you are more interested in navigating up the diagram drill-down path regardless of what tabs are open or what tab you were just on.  I wrote the following method as part of an add-in that I use to do this.  There is additional logic to building the add-in but this is the key to the works.

public void DrillUp(EA.Repository repository, EA.Diagram diagram)
        {
            if (diagram.ParentID != 0)
            {
                string objectXML = repository.SQLQuery(string.Format("SELECT Diagram_ID FROM t_diagramobjects WHERE Object_ID = {0}", diagram.ParentID.ToString()));
                XmlDocument objectXMLDocument = new XmlDocument();
                objectXMLDocument.LoadXml(objectXML);
                if (objectXMLDocument.SelectNodes("//Dataset_0/Data/Row/Diagram_ID").Count > 0)
                {
                    string diagramID = objectXMLDocument.SelectSingleNode("//Dataset_0/Data/Row/Diagram_ID").InnerText;
                    repository.OpenDiagram(int.Parse(diagramID));
                }
            }
        }

If this seems to be along the lines of what you are looking for, I'd be happy to share a more packaged version of it.