I recently added something totally cool to EMF. It's so cool, you might want to use it even if you don't use EMF for anything else. You're probably aware that JFace provides tool tip support for column viewers and of course, as a user of JDT, you've likely made extensive use of the Java editor's Javadoc hovers which display HTML-based information that even allows hyperlink navigation. It's effectively a mini browser. With the new feature I added, you can easily display HMTL-based hover information in any column viewer. You can see that in action with the sample I created; you'll need the latest build. It's an RCP application that looks like this:
I used this basic feature to implement improved validation support. You can try this out by enabling Sample Ecore Editor → Live Validation. With that enabled, whenever you change the model, the tree view will be decorated with validation results. For example, when you create a new EClass, it won't have a name, and that's invalid. The hover displays that as follows:
itemis, the generous sponsor of cool things, for funding this year's "Christmas tree decoration" effort. The benefits will definitely outlast your decorated Christmas tree.
Use and Misuse of Statistics
11 months ago