Skip to main content



      Home
Home » Modeling » EMF » UI Issue with using Modeling Nature
UI Issue with using Modeling Nature [message #1864874] Tue, 16 April 2024 16:39 Go to next message
Eclipse UserFriend
Hey,
I noticed some unexpected behavior in the Model Explorer with the generated code from a .genmodel in an ECore Modeling Project.
In below screenshot, you can see that the src-gen folder does not properly display the files as expected. It rather displays them in a text only mode.

index.php/fa/44146/0/

However, you can make it display text and icons by removing the Modeling Nature from the project natures.

index.php/fa/44147/0/

I am using Eclipse version 2024-03 (4.31.0).
To reproduce this, create a blank Ecore Modeling Project. Create a basic model and generate the code. Could reproduce it on two different Eclipse installations.

How can I resolve this or did anyone have the same issue?

Thanks
Re: UI Issue with using Modeling Nature [message #1864886 is a reply to message #1864874] Thu, 18 April 2024 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Probably you should ask here:

https://github.com/eclipse-sirius/sirius-desktop/discussions

It's also possible that it's an Ecore Tools issue:

https://github.com/eclipse-ecoretools/ecoretools/issues
Re: UI Issue with using Modeling Nature [message #1865697 is a reply to message #1864886] Thu, 09 May 2024 04:44 Go to previous message
Eclipse UserFriend
While the Modeling nature/perspective was well-intentioned, its implementation is sadly deficient. The Model Explorer view that 'replaces' the Package Explorer View familiar to Java users unfortunately replaces rather than extends. Consequently many behaviors differ in ways that confuse Java users. e.g a number of menu entries are missing and some additional ones are very expensive.

Yes. I have seen similar issues, resolved them and reported them. Bottom line, never use the Sirius/Modeling perspective if you can possibly avoid it. (I am working on a regular Initialize Diagram action accessible from the Package Explorer View so that creating a diagram is as easy as it was in the pre-Sirius Ecore Tools days.)



Previous Topic:Order of multi-inheritance is not deterministic?
Next Topic:How to get a localized name of EEnumLiteral
Goto Forum:
  


Current Time: Wed Jun 18 15:08:10 EDT 2025

Powered by FUDForum. Page generated in 0.04132 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top