Categories
- Food (2)
- Investing (11)
- Kids (3)
- Programming (61)
- Thoughts (55)
- Uncategorized (1)
Tags
action android Argentina bond book Book review code code generation complexity craft delek nadlan Discworld donate eclipse editor EMF framework funny GEF graph help internals Investing investing guidelines israel java JGraph JUNG management mauldin novel opm passion programming research review Science fiction software software development style tase terry pratchett tutorial UML visual programmingFeeds
Tag Archives: EMF
Code Generation is Not Agile
I am a great advocate of software modeling, which provides a higher abstraction of software artifacts that allow us easier work with them. For my current project (OPM Editor and Interpreter) I use a model based on the eclipse modeling framework (EMF). Until now I had only a model for the editor, and when I started to implement the interpreter the names of the packages that I set for the editor model didn’t seem good enough, so I decided to refactor them. Oh what a headache. I changed the name of the package in the genmodel file and regenerated everything… … Continue reading
Getting Rid of the Ugly “Resource is out of sync” Message
While working with my OPM GEF editor, I sometimes saw the current exception in the eclipse console: While this was bothersome, it didn’t affect the editor’s contents and didn’t bother, so I did nothing to fix the problem. But now that I am working more with the editor itself and not developing it, it seemed to happen more often, and there was a concrete way to reproduce it: after modifying a model and saving it, every time I opened it the exception occurred. It stopped occurring when I refreshed the workspace. No (short) google researched turned out a good solution … Continue reading
Creating an OPM GEF Editor – Part 16: Displaying EMF Properties in a GEF Editor
Previous Tutorial: Creating an OPM GEF Editor – Part 15: Adding Structural Links. The eclipse workbench provides us with ready-made views, which can be populated by the editor to support the information that is provided by it. One very useful views is the properties view, which can show us name-value properties of the diagram elements. There are some properties tutorials in the net, like this, this and this; But none of these seemed to match my requirements. I also found that in the past there were problems mixing EMF and GEF (see here) but there was no elegant solution to … Continue reading
Creating a GEF Editor – Part 5: Loading the Model from an EMF File
Previous Tutorial: Creating a GEF Editor – Part 4: Showing the Model on the Editor Hi everyone. In this tutorial we will learn how to load the model from an EMF file (Seemed easy but took me some searching to find how this is done, and I’m not sure I’m doing it the best way it could be done), and in the way we’ll also be expanding our model definition to match our requirements. If you didn’t generate your EMF editor code, please do so now, because we’ll be using it to bootstrap our EMF file before we open it … Continue reading
Creating a GEF Editor – Part 4: Showing the Model on the Editor
Previous Tutorial: Creating a GEF Editor – Part 3: Basic GEF Editor The last episode of “Creating a GEF Editor” ended with the creation of a magnificent GEF-based editor that did… well.. nothing. But it worked!. In this tutorial we will add some more spice to the brew and will teach you how to display the model entities in the graph. There will be code, there will be modeling, and it will be FUN (I hope). So lets get started. Before we start, we have to fix one small configuration problem I found in the genmodel file that we created … Continue reading
