Community
Participate
Working Groups
The default workflow associated with a Sirius session is non standard, with most important features (session opening/closing associated "magically" with project opening/closing, viewpoint selection and representation creation only available in context menus, etc.) not easily discoverable in the UI. In addition, because these operations are tied to the Model Explorer/Modeling perspecitve, many of them are not available or do not work as expected in other perspectives. The goal of this ticket is to provide a proper Eclipse editor associated to the .aird files that will be available from everywhere and that will offer direct access to most general session-level operations. Details will be specified later, but to give an idea of the kind of operations I'm thinking of: * Viewpoint selection: an embedded version of the Viewpoint Selection Dialog UI. * Semantic model browsing: an embedded version of the semantic model, as visible currently in the Model Explorer. * Semantic model management (add/remove/control/uncontrol semantic resources). * Representation creation, deletion, renaming, fragmentation. The editor should be a multi-page form-like editor. The first iteration will implement a single hard-coded page with the kind of information and operations listed above, but the goal is to make it extensible in various ways after that. This extensibility, while it should be taken into account in the architecture of the first iteration, is not in the scope of this particular ticket.
Created attachment 266162 [details] Rough mockup This is not to be taken as a specification, but only a rough mockup to give an more concrete idea of the UI that could be provided.
New Gerrit change created: https://git.eclipse.org/r/88258
Some code pointers: * org.eclipse.ui.forms.editor.FormEditor or org.eclipse.ui.forms.editor.SharedHeaderFormEditor should probably be used as base class * org.eclipse.sirius.ui.tools.api.wizards.page.ViewpointsSelectionWizardPage already contains some code to display viewpoints and their rendered documentation in a way similar to what is visible on the mockup (top-left element) * SiriusCommonContentProvider, SiriusCommonLabelProvider and other classes in the org.eclipse.sirius.ui.tools.internal.views.common.navigator (and neighbours) are the ones used in the "Model Explorer" view. The same code should be used in the various tree viewers in the form editor. See org.eclipse.ui.navigator.CommonViewer for the CNF class which makes use of them and takes all extension points/configuration options properly into account.
Not that currently, the org.eclipse.sirius.ui plug-in defines a default editor for "*.aird" files, which is just a plain text editor: https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.ui/plugin.xml#n557 The plain text editor should probably be made non-default, while the new, optional (for now) form-based editor will be set as the default. When the new plug-in is not present, it should not have any impact (only the basic text editor is present, so default or non-default should have the same behavior). When the new plug-in is installed, it's editor will take precedence over the text-based one.
(In reply to Pierre-Charles David from comment #1) > Created attachment 266162 [details] > Rough mockup > > This is not to be taken as a specification, but only a rough mockup to give > an more concrete idea of the UI that could be provided. The "Reresentations" block should probably have the same kind of search/filter field as the semantic Models block.
We'll probably need a proper specification document, but for now I'm putting my raw ideas/comments here. One aspect that will need clarification is how the lifecycle of the editor is tied to the sesssion's. * When using a "Modeling Project", if the user has access to the .aird file, it means the project has been opened/expanded, and so the Sirius session is already opened. * When not using a "Modeling Project", or when not in the "Modeling" perspective, the user can double-click/select open on the aird while the session may not already be opened. In that case the editor should open the session (in a non-blocking way) if it is not already. * When closing the editor, we should probably not close the session (opening a session can be a costly operation). The leaves a kind of "leak", with no obvious hint to the user that potentially large models are still loaded in memory. From the user's point of view, opening and then closing an editor should understandably leave the system in the same state as before. This problem is not new or specific to this ticket however, it is already present in the asymetry between: automatic loading of a session when expanding a modeling project, but no automatic closing when the project is collapsed (one needs to explictly close the project to close the session and release the resources).
New Gerrit change created: https://git.eclipse.org/r/88462
Gerrit change https://git.eclipse.org/r/88258 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5f411e898b9d9e7ca41bdc739c7ad76e3c6a5692
New Gerrit change created: https://git.eclipse.org/r/92031
New Gerrit change created: https://git.eclipse.org/r/92110
Gerrit change https://git.eclipse.org/r/88462 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7cf115c58d48e0367f5ee78cbd090aecb06816eb
New Gerrit change created: https://git.eclipse.org/r/92462
Gerrit change https://git.eclipse.org/r/92031 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=6a72b809cd202ce61367f95cf414cb2bb9018e20
New Gerrit change created: https://git.eclipse.org/r/92634
New Gerrit change created: https://git.eclipse.org/r/92706
New Gerrit change created: https://git.eclipse.org/r/92788
New Gerrit change created: https://git.eclipse.org/r/92878
New Gerrit change created: https://git.eclipse.org/r/92925
New Gerrit change created: https://git.eclipse.org/r/92924
Gerrit change https://git.eclipse.org/r/92925 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d2847e38a0e1c65a56836665aa7a07f8b24746f7
New Gerrit change created: https://git.eclipse.org/r/92932
Gerrit change https://git.eclipse.org/r/92932 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=619d8153212a6dc3233431eb853cb37bdee4bd96
Gerrit change https://git.eclipse.org/r/92878 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9fc142262f15db0103848ea2818267f72a6f488f
New Gerrit change created: https://git.eclipse.org/r/93006
Gerrit change https://git.eclipse.org/r/93006 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fe76e549c89759bfaa98323744237801af71eaa6
New Gerrit change created: https://git.eclipse.org/r/93027
Gerrit change https://git.eclipse.org/r/93027 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=63398f338c5044c52d84a0c26735488c92571626
New Gerrit change created: https://git.eclipse.org/r/93038
New Gerrit change created: https://git.eclipse.org/r/93048
Gerrit change https://git.eclipse.org/r/93048 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=efe352e9f681fa42be028fa23d4149b952686647
Gerrit change https://git.eclipse.org/r/93038 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8baa48bf610c239b10c1e7566919933adc7e141b
New Gerrit change created: https://git.eclipse.org/r/93091
Gerrit change https://git.eclipse.org/r/93091 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1458b8a4ff92aa6cf832b1cf74999dc4a57cc095
New Gerrit change created: https://git.eclipse.org/r/94740
Gerrit change https://git.eclipse.org/r/94740 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e12702ba730cbf1995caec20b73725d4ddf9bc4c
New Gerrit change created: https://git.eclipse.org/r/95059
New Gerrit change created: https://git.eclipse.org/r/95067
Gerrit change https://git.eclipse.org/r/95067 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f031bb11f67fdd68cb345e3c99ff2b830814f0bf
Gerrit change https://git.eclipse.org/r/95059 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=91f571730ceeaa8364683e3267cac8e7226580fc
New Gerrit change created: https://git.eclipse.org/r/95703
New Gerrit change created: https://git.eclipse.org/r/95914
New Gerrit change created: https://git.eclipse.org/r/96155
New Gerrit change created: https://git.eclipse.org/r/96181
New Gerrit change created: https://git.eclipse.org/r/96923
New Gerrit change created: https://git.eclipse.org/r/96922
New Gerrit change created: https://git.eclipse.org/r/96924
Gerrit change https://git.eclipse.org/r/96181 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=21b1781c67acb21a36ba7c1e3e952fe418b3294a
Gerrit change https://git.eclipse.org/r/95703 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=2f9dce8a5e55824b78c6e62245b8188f75bd2c26
Gerrit change https://git.eclipse.org/r/95914 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1ba3983edf6318dbe55f5924dee0100be2260f37
Gerrit change https://git.eclipse.org/r/96155 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d627a965244a5251350b87d48cb7f6046f2450d9
Gerrit change https://git.eclipse.org/r/95338 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=49e90e41c624607ceb34c1b40cda7a61de6bf412
New Gerrit change created: https://git.eclipse.org/r/96959
New Gerrit change created: https://git.eclipse.org/r/97043
Gerrit change https://git.eclipse.org/r/96922 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1b7abc07d81cd29c301e9c0dab6a43e2f7ca32ee
Gerrit change https://git.eclipse.org/r/96923 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b394b980af7005be3621fb9be735192d48ac336d
Gerrit change https://git.eclipse.org/r/96924 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=15e804f4c471870f52c69d2c3da2a04f47c43058
Gerrit change https://git.eclipse.org/r/97043 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=823d475c647e496172d762fc6bd9670036bf8586
New Gerrit change created: https://git.eclipse.org/r/97121
New Gerrit change created: https://git.eclipse.org/r/97120
Gerrit change https://git.eclipse.org/r/97120 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=997f1dfd19a66459046b794ce5edc84cec9c5c9f
Gerrit change https://git.eclipse.org/r/97121 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3decfc3af016ef0d15134b666208c732dc399a23
New Gerrit change created: https://git.eclipse.org/r/97125
Gerrit change https://git.eclipse.org/r/97125 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=17320b9a3071093953d8dca64caf9c44d77bb7ed
New Gerrit change created: https://git.eclipse.org/r/97199
Gerrit change https://git.eclipse.org/r/97199 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c607b6aa0ec8491e3f8fdc1d621c513b86797e2d
New Gerrit change created: https://git.eclipse.org/r/97230
New Gerrit change created: https://git.eclipse.org/r/97243
Gerrit change https://git.eclipse.org/r/97230 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a7ce1c4f76e4ee97d8642eb4bb2ec891dceea53f
Gerrit change https://git.eclipse.org/r/97243 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8cec6b4409d94a4d2653408dda879365c40da407
Gerrit change https://git.eclipse.org/r/96959 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f5caa3bbb1a271a36be0463adde1fc2d959ab256
New Gerrit change created: https://git.eclipse.org/r/97336
New Gerrit change created: https://git.eclipse.org/r/97440
Gerrit change https://git.eclipse.org/r/97336 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=85a8e052f9f8c165c1ade6c7ca971b89fd25967a
Gerrit change https://git.eclipse.org/r/97440 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=bbd3df2939b11f983a1af5e22b966b8868d10452
New Gerrit change created: https://git.eclipse.org/r/97471
New Gerrit change created: https://git.eclipse.org/r/97591
New Gerrit change created: https://git.eclipse.org/r/97733
Gerrit change https://git.eclipse.org/r/97733 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=bcdf84db921091e20e35308f1ed3451f8fc7c362
New Gerrit change created: https://git.eclipse.org/r/97832
New Gerrit change created: https://git.eclipse.org/r/98232
New Gerrit change created: https://git.eclipse.org/r/98233
Gerrit change https://git.eclipse.org/r/98233 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=17f118e8abf017cc0e34ec7b13b1ecb22b6be5f1
Gerrit change https://git.eclipse.org/r/98232 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=77fb9715d379ad2d358b831360620883fbbfa0d6
New Gerrit change created: https://git.eclipse.org/r/98244
Gerrit change https://git.eclipse.org/r/97832 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=4ef71263c274158af80275b6a94bfe781cd77c2c
New Gerrit change created: https://git.eclipse.org/r/98677
Gerrit change https://git.eclipse.org/r/98677 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=af5736c051fda60129df5aa067ba515e022a7d01
Gerrit change https://git.eclipse.org/r/97591 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8c82250232a613fb5033c35ce967f9c21f3c48e6
New Gerrit change created: https://git.eclipse.org/r/98766
New Gerrit change created: https://git.eclipse.org/r/98768
New Gerrit change created: https://git.eclipse.org/r/98787
New Gerrit change created: https://git.eclipse.org/r/98797
Gerrit change https://git.eclipse.org/r/98768 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5c9d7f3a8635d183ac54b8fd403a8a4d2918c3e1
Gerrit change https://git.eclipse.org/r/98787 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=0bb1aee305b5699a45d4be3fadff10c16012551e
Gerrit change https://git.eclipse.org/r/98797 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d8b4407fd9cf5897cf57c4627c5beae63013e0fa
Gerrit change https://git.eclipse.org/r/98766 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f133c662465a9fc9a6522e39ab861b0a1b24c995
New Gerrit change created: https://git.eclipse.org/r/98823
New Gerrit change created: https://git.eclipse.org/r/99037
New Gerrit change created: https://git.eclipse.org/r/99201
Gerrit change https://git.eclipse.org/r/99201 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=79983b798fcad978fbdba2a0aaff4657d83649a3
Gerrit change https://git.eclipse.org/r/98244 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9818495919edc4ea0b70921219f0353b1a96328b
We're done here. Remaingin bugfixes and enhancements will be treated in separate tickets for future versions.
New Gerrit change created: https://git.eclipse.org/r/99500
Gerrit change https://git.eclipse.org/r/99500 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ccca0ee47c478d60e7b7615c7239b00e181b38e6
Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details.
New Gerrit change created: https://git.eclipse.org/r/111392
Gerrit change https://git.eclipse.org/r/111392 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=cc8926e1b2c5d0a14fa643de4db0e821179cdf87