931 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
34
views
EMF/Xtext grammar error "Encountered `val` at line 6, column 5. Was expecting `}`" after `Model` definition
I’m defining an EMF metamodel but I keep getting an error on the { that starts my Model class. The parser highlights the opening brace after Model and reports:
Encountered " "val" &...
1
vote
1
answer
44
views
Escape ">" character in Eclipse EMF serialization
I am serializing an EMF EObject to file.
This works fine and is all correct.
But: a third-party tool relies on escaping the > character, also for text fields. What is the cleanest way to do this? I ...
-1
votes
1
answer
69
views
How to set the "Set operation" in a Sirius Properties View?
I created a model and a viewpoint in table format that shows me the data based on the rules I set.
I have created a new properties view that when i select a row of the table shows some information of ...
0
votes
1
answer
46
views
How to get Document Or Element (XML DOM) from Resource or EObject
How to get Document or Element (XML DOM) from Resource or EObject?
Loading of resource is done this way
URI uri = URI.createFileURI(file.getPath());
Resource resource = resourceSet.getResource(uri, ...
0
votes
0
answers
73
views
Error running EMF Ecore project as an Eclipse application on ARM/M3 architecture
I recently moved from a windows machine to a MacbookPro M3 and I'm trying to run an EMF Ecore project I had on my previous machine as an Eclipse application on this new machine.
I downloaded the 2024-...
1
vote
1
answer
81
views
How to create random EMF (eclipse modelling framework) object for testing purposes?
I need large and random EMF objects for testing certain performance-related aspects of my application. They don't have to be "correct" by any means, or have any meaning wrt the metamodel.
...
0
votes
1
answer
60
views
How can I download the raw metamodels from my EMF registry?
I'm using Eclipse EMF in a project with MoDisco as a dependency.
I can access many different metamodels through the MoDisco Explorer, but I can only open them using the MoDisco browser. Is it possible ...
0
votes
0
answers
31
views
Is there a way to check the Mac version using Platform.OS on Windows?
In the code I'm currently writing, I've written to provide a buffer to improve drawing performance on MacOS BigSur.
Example code is as follows.
class EcoreGridEditPane<PayloadType extends EObject&...
0
votes
0
answers
51
views
How to build Windows and Mac plugins simultaneously in Eclipse
After developing the plugin, you must build it for Windows and Mac OS simultaneously during the build process.
I've had no problems developing and building on MacOS so far.
But now we have to build on ...
0
votes
0
answers
167
views
"The import org.eclipse cannot be resolved" using EMF
I just cloned a Maven project from GitHub with Ecore models. I'm using the EMF version.
This project has a lot of java classes. The error I get is "The import org.eclipse.cannot be resolved"....
0
votes
1
answer
124
views
Eclipse Epsilon EMF Eugenia not appearing
I am new on eclipse, trying to learn how to use the environment. I created my Plug in project with a emf file inside. However, when trying to "Right click, Eugenia, Generate GMF editor", the ...
0
votes
1
answer
90
views
Xtext define a syntax with subpakages in the ecore file
I would like to generate a syntax using Xtext from an Ecore file. I successfully created an Xtext project from an existing Ecore but when I create a sub package in my Ecore, and regenerate the .xtext ...
1
vote
1
answer
215
views
What files should be commited in the case of an Eclipse modeling project?
In your opinion, what Eclipse configuration files need to be included in git commits and what are those that should be ignored?
Specifically, I am talking about an Ecore/Xtext project using Eclipse ...
0
votes
1
answer
75
views
How to get relative paths in the traces model when executing ATL transformation programmatically through EMFTVM?
Consider the basic ATL transformation Families2Persons, running it through EMFTVM and getting the traces as explained in the docs.
-- @atlcompiler emftvm
-- @path Families=/Test/Families.ecore
-- @...
1
vote
1
answer
148
views
Get UUID from a EMF/XMI resource using PyEcore
I have an XMI file serialized in a Java/EMF program. Now, I need to read it using PyEcore, and I want to set the UUID and then retrieve it back while iterating over the resource.
This is my current ...