Book a Demo

Author Topic: Project shortcuts - Reload repository?  (Read 5234 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Project shortcuts - Reload repository?
« on: August 10, 2015, 05:58:42 pm »
We're building a large scale corporate repository with a largish number of users - both viewers and maintainers.

We want to encourage the use of Project shortcuts so each individual user can have their workspace(s) setup under their control.  For many users, they might want to switch between one set of diagrams in the repository and another set of diagrams in the same repository as they swap the tasks at hand.

When about to  open a new project shortcut, doe EA check to see if the repository is the same and therefore just  close the current diagrams and re-open the ones in the new shortcut?

If not?  Should it?

TIA,
Paolo
« Last Edit: August 10, 2015, 06:01:41 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Project shortcuts - Reload repository?
« Reply #1 on: August 10, 2015, 07:20:06 pm »
I would see that as opinion based (and have no idea how EA will handle it). There are for sure good reasons for both behaviors.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Project shortcuts - Reload repository?
« Reply #2 on: August 10, 2015, 08:06:55 pm »
Paolo,

I think you better use Working Sets for this purpose, that seems much better suited then shortcuts.
Since v10 you can share working sets to be accessible by all users of the model.

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Project shortcuts - Reload repository?
« Reply #3 on: August 10, 2015, 08:11:00 pm »
Hi Paolo,


I've done some simple tests in 11.1, and according to them EA treats a request to open the same shortcut that opened the current session as a close-and-open: it requests save confirmation in open diagrams, closes the diagrams, opens the default diagram and resets the project browser to that diagram. The behavior is the same whether you use the Recent section of the Start Page or the File menu.

If you use File -- Open  /  Ctrl-O  /  the Open toolbar icon, the save confirmation dialog is brought up before the Browse dialog. Other than that, same behavior.

Using a shortcut to the same repository but with a different default diagram again yields the same result.

File -- Reload Project is different. It requests save confirmations as necessary, then reopens the set of diagrams that was open and collapses the project browser. The reload process is noticeably quicker than reopening a shortcut.

From this, I would conclude that
1) EA does not keep track of which shortcut was used to open the current session, and
2) Opening a shortcut implies closing the current session first.
Meaning that
3) The cake has been eaten.

So in answer to your question, it appears that EA does not as such perform any checks like the one you describe.
On the other hand, the end result is that you do get back the (set of?) diagrams from the shortcut, it's just that the project is closed in between so it takes a little longer (or a lot longer if you're not using lazy load but who wouldn't in this day and age) and your credentials are presumably rechecked.

In MS Office, the behavior is different: requesting the current file from the Recent list is simply ignored: there's no save confirmation and as far as I can ascertain no reload of the file. But files are different from sessions.

Considering that shortcuts are just that, shortcuts, I think the current behavior is OK. If they were called stored sessions it'd be a different story, but a shortcut is just a way to get into the repository and I don't expect EA to remember the shortcut once the session's been opened.

And you owe me 2c. :)


/Uffe
My theories are always correct, just apply them to the right reality.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Project shortcuts - Reload repository?
« Reply #4 on: August 10, 2015, 08:17:29 pm »
As Geert suggests, Working Sets can be a solution.

You can also use Project Views to create personalized model shortcuts. Bit rough and ready, but sometimes quite useful.

/U
My theories are always correct, just apply them to the right reality.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Project shortcuts - Reload repository?
« Reply #5 on: August 11, 2015, 11:13:19 am »
Quote
As Geert suggests, Working Sets can be a solution.

You can also use Project Views to create personalized model shortcuts. Bit rough and ready, but sometimes quite useful.

/U
Thanks Geert and Uffe (and SimonC from support).  Since I "leapt over" versions 10 & 11 to 12 - I missed Working Sets.  I'll go and have a look!

[edit]Looks like Working Sets are the go!   Now, Is it possible to activate a particular working set from a shortcut?[/edit]
Paolo
« Last Edit: August 11, 2015, 05:38:59 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!