cp-api / capella

0 stars 0 forks source link

The ShowOnStartup property is ignored in Capella #191

Closed eclipse-capella-bot closed 3 years ago

eclipse-capella-bot commented 3 years ago

Attachment: OpenRepresentationOnStartupProject.zip

  1. After unchecking "Use Defaults"

In Sirius, there is a feature to open a specific representation on the opening of a session. It is documented here [1]: If Show on startup in set, then when a modeling project is opened which contains instances of this diagram description, they will be opened: if only one such representation exist, it will be opened automatically; if there are more than one, a dialog box will appear to allow the user to select which one(s) to open.

In Sirius, it is done in org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.OpenRepresentationsFileJob.runInWorkspace(IProgressMonitor) [2].

In Capella, I think it could be done in org.polarsys.capella.core.sirius.ui.actions.OpenSessionAction.doOpenSessions(IProgressMonitor).

Steps to reproduce:

[1] http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#diagram_description [2] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/views/common/modelingproject/OpenRepresentationsFileJob.java#n130

ECLIPSE-554169 POLARSYS-1161 @lre 2016-09-13

eclipse-capella-bot commented 3 years ago

lre commented on 2016-09-13

The patch set [1] is a proposition of fix. I'm not sure about condition with the boolean shouldOpenActivityExplorer...

[1] https://git.polarsys.org/r/3278

jba commented on 2016-09-28

Actually these diagrams should be opened even when the activity explorer is not launched at session opening.

jba commented on 2016-12-08

fixed in 'master' branch