Multiple editors [message #1862230] |
Sun, 19 November 2023 11:43  |
Eclipse User |
|
|
|
Hi,
Can a single metamodel in Ecore, have multiple model editors? Let us say that for different purposes and users I would like to have different model editors (each of which I will customise accordingly). But to do that, can I use a single metamodel, or do I need multiple metamodels, one for each model editor?
I would actually like to achieve the first, so if there is a way to do that, I would appreciate if you could share your insights.
Thanks !
|
|
|
|
Re: Multiple editors [message #1863321 is a reply to message #1862238] |
Thu, 25 January 2024 17:13   |
Eclipse User |
|
|
|
Hi Ed,
I have a question regarding this approach of implementing and registering multiple editors.
- Let us say that I have Model_A conforming to Metamodel_A.
- Let us say that for Metamodel_A I have generated Editor_1, Editor_2 and Editor_3.
- According to this approach, when I right click on Model_A -> Open With..., besides the default editors I get Editor_1, Editor_2, and Editor_3 .
My question is: Is there a way to show only a set of the registered editors to a particular user? For instance, to implement a login system where users can login. Based on the user, it shows different editors for the same model. For instance, to Ed, only Editor_1 and Editor_2 is shown, while to Klarise, only Editor_2 and Editor_3.
Do you have any suggestion on how to achieve that? Can it be achieved in the first place?
Thanks!
[Updated on: Thu, 25 January 2024 17:35] by Moderator
|
|
|
Re: Multiple editors [message #1863323 is a reply to message #1863321] |
Fri, 26 January 2024 03:22  |
Eclipse User |
|
|
|
This isn't really an EMF question but a general question about the Platform abilities. There is no mechanism for filtering available/registered editors via some property.
|
|
|
Powered by
FUDForum. Page generated in 0.03694 seconds