Questions tagged [eclipse-emf]

Use this tag for questions about the Eclipse Modeling Framework Project (EMF)

The Eclipse EMF project is a modeling framework and code generation facility for building tools and other applications based on a structured data model. From a model specification described in XMI, EMF provides tools and runtime support to produce a set of Java classes for the model, along with a set of adapter classes that enable viewing and command-based editing of the model, and a basic editor.

http://www.eclipse.org/modeling/emf/

489 questions
7
votes
1 answer

Using e3x property view with e4 Selection service from EMF Model

I built a small e4 RCP application containing both an "e4 xmi" tree view populated by emf generated model code (using ComposedAdapterFactory) and an "e3 properties view". Tried following "dirksmetric tutorial" to display property view in…
WattoWatto
  • 159
  • 8
7
votes
2 answers

Changing generated code or use inheritance?

I work on an EMF project. One of the design decisions was not to touch the generated code and not to check it in. Instead, whenever something needs to be changed, a sub-class is created that contains the changes. The framework is flexible enough to…
Wizard of Kneup
  • 1,863
  • 1
  • 18
  • 35
6
votes
2 answers

Projectional Textual Editor?

are there any textual, projectional Editors available? How do they work especially regarding updating subtrees? Are there any frameworks available for building them? Do you know any papers describing their design? How is this style of "parsing"…
Stefan K.
  • 7,701
  • 6
  • 52
  • 64
6
votes
2 answers

What is Eclipse Modeling Framework?

I am sorry, this might look too simple, but I am vague about what Eclipse Modeling Framework is? Based on their website, it generates java code, based on XML specification. I wonder if it is something like Visual Paradigm? And does it generate code…
Omid Kamangar
  • 5,768
  • 9
  • 40
  • 69
6
votes
4 answers

Using EMF objects as keys

Is it possible to have EMF objects implement hashCode and equals? I would like to be able to use a model object as a key in a HashMap.
JesperE
  • 63,317
  • 21
  • 138
  • 197
6
votes
1 answer

How to define a map in Xcore

According to the EMF FAQ, it is possible to create a Map in EMF: An EMap is basically a List of java.util.Map$Entry instances. Therefore to create a Map you need to first model your map entry by following these steps: Create an EClass with the…
Gabor Szarnyas
  • 4,410
  • 3
  • 18
  • 42
6
votes
2 answers

How to generate 'java code with annotations' from emf model

More precisely, I want to know, how one can model annotations into the ecore model definition. So that the generated java code would contain them. (For eg: hibernate persistence tags)
questzen
  • 3,260
  • 18
  • 21
6
votes
1 answer

Run EMF Validation of an Ecore model outside of Eclipse

I found nothing how to validate an Ecore model outside of Eclipse. Does someone know how to do this?
Dr. Simon Harrer
  • 1,954
  • 1
  • 15
  • 26
6
votes
1 answer

How to get graphical UML class diagrams in Eclipse PDT?

I am an Eclipse-PDT user, who wants to have some graphical aids in OOP Class designing and refactoring process. My IDE: Eclipse Mars.1 Release (4.5.1) I have used Eclipse for Java Developing, and know there are plenty of tools which can help. The…
code_angel
  • 1,537
  • 1
  • 11
  • 21
6
votes
1 answer

EAnnotation usage in ecore

Can anybody explain the usage of EAnnotation in ecore, in terms of its specific fields (i.e., Source, Details, EModel Element, Contents, and References). I looked at its API documentation here, but could not get that much from…
qartal
  • 2,024
  • 19
  • 31
6
votes
1 answer

EMF (Eclipse Modeling Framework) in C#

I worked with Eclipse EMF in the past Now I am working in C# to create a tool that needs extensive modeling to capture its metadata, logic, persistance etc. What is the equivalent in C#? The idea in EMF is that you define your model in UML, then…
Ragoler
  • 1,261
  • 4
  • 15
  • 20
6
votes
3 answers

Graphical Workflow Editor plugin to Eclipse/IntelliJ/Webapp

I'm considering developing a multi-platform graphical workflow editor as a plugin for Eclipse and/or IntelliJ. The editor would work in a way similar to tools such as Visio/OmniGraffle/Activiti Designer/FuseIDE. It would allow the developers to drag…
Son Do Lenh
  • 826
  • 1
  • 8
  • 16
6
votes
2 answers

What is the best way to serialize an EMF model instance?

I have an Eclipse RCP application with an instance of an EMF model populated in memory. What is the best way to store that model for external systems to access? Access may occur during and after run time. Reads and writes of the model are pretty…
John
  • 233
  • 1
  • 7
5
votes
2 answers

How to convert an XMI model-instance of Ecore to XML of the given XSD?

I am using the Ecore model which is based on imported XML Schema file (XSD). Using generated Java classes (based on Ecore model), I build an instance of the model and save it as a resource in XMI standard. This XMI file is actually an XML file which…
sromku
  • 4,663
  • 1
  • 36
  • 37
5
votes
2 answers

How to convert ecore (EMF) to xsd

What is the best way to convert .ecore-files into .xsd-files?
qwazer
  • 7,174
  • 7
  • 44
  • 69
1
2
3
32 33