Tag Archives: opm

Creating an OPM GEF Editor – Part 21: Adding Keyboard Shortcuts

Previous Tutorial: Creating an OPM GEF Editor – Part  20: Creating a Context Menu and Adding Custom Actions Keyboard shortcuts are very useful for activating actions. There are many shortcuts that are common in all environments – and for better usability, enabling this shortcuts give the user a better user experience. In my case, I wanted to let the user edit the name of a thing (or state) using the F2 key, which is commonly used for this purpose. Adding keyboard shortcuts to GEF is fairly easy. You only need to define a <code>KeyHandler</code> and attach it to the graphical viewer. … Continue reading

Posted in Programming | Tagged , , | Leave a comment

The Fine Thread between Being a Good Researcher and a Good Programmer

My “day job” is studying a PhD in Information Systems Management, where I am investigating the executable aspects of OPM (the Object-Process Methodology). While doing this I am also developing an open source tool where I am able to create OPM diagrams, and my plans are to use this tool as the interpreter of the OPM modeling language that I am creating (OPP – Object Process Programming). As a researcher, how the code looks, how much it is tested, patterns, style, etc.. is of no matter to me. What matters is the result: can I prove using the tool that … Continue reading

Posted in Programming, Thoughts | Tagged , , , , , , | Leave a comment

Creating an OPM GEF Editor – Part 19: Displaying Tooltips

Previous Tutorial: Creating an OPM GEF Editor – Part 18: Snapping to Grid and to Geometry. Well, I was wrong by saying that there would be more tutorials . The tooltip functionality is simply great eye-candy and easy to implement, so why not do it (I may be suffering from featuritis, please call a doctor). The draw2d framework provides an easy way to add tooltips to a figure. Just call the IFigure.setToolTip(IFigure) method and you are done. While displaying a simple Label may do the trick, for long tooltips this is not good, so we need a Figure that know … Continue reading

Posted in Programming | Tagged , , , | 1 Comment

Creating an OPM GEF Editor – Part 18: Snapping to Grid and to Geometry

Previous Tutorial: Creating an OPM GEF Editor – Part 17: How to Define Container Edit Parts. As a finishing touch to our editor, we will now add snapping functionality to our editor. This will probably be the last tutorial I’ll be writing for some time since I have now a working editor that can be used for my purposes. Only if I find some new GEF features that have not been covered here they will be added. But the development of my OPM editor with continue and you are always invited to check the repository for new versions. For how … Continue reading

Posted in Programming | Tagged , , , , , , | 3 Comments

Creating an OPM GEF Editor – Part 17: How to Define Container Edit Parts

Previous Tutorial: Creating an OPM GEF Editor – Part 16: Displaying EMF Properties in a GEF Editor. The Object Process Methodology‘s modeling language allows (and even encourages) the definition of processes by “in-zooming” (enlarging) the process to define and inserting into it internal process that constitute the process that is being defined, something like this: In the diagram, process P1 is composed of three sub-processes, P1.1, P1.2 and P1.3. Since there is no information flow between the processes, they are executed in parallel when process P1 is executed (A full semantic specification of OPM model execution is currently under work). … Continue reading

Posted in Programming | Tagged , , , , , | 4 Comments