Twitter github

Eclipse Easter Eggs

So, I’m working on a quick demo of RCP for some students… I like to use the RCP Browser example alot because it is simple and easy to modify. So I was digging through the code and I noticed this snippet:

/**
* The easter egg action.
* See the corresponding command and key binding in the plugin.xml,
* and how it’s registered in createBrowser.
*/
private Action easterEggAction = new Action() {
{
setActionDefinitionId(
IBrowserConstants.COMMAND_PREFIX + “easterEgg”); };
public void run() {
browser.execute(“window.confirm(‘You found the easter egg!’)”);
}
};

Digging further, I found the way to invoke the action was via CTRL+SHIFT+E

Anyone know of any other Eclipse easter eggs out there?

New Article

I just topped off an EMF article which will be included in the new EclipseReview magazine (should be available @ EclipseCON). It should give a good introduction to EMF and especially the technologies surrounding EMF. Here’s an outline of what I covered:

  • Introduction to EMF
  • EMF Components
    • EMF Core
    • EMF.Edit
    • EMF.CodeGen
  • Development with Ecore
    • Defining your model
    • Generate your code
  • EMF Code Snippets
    • Creating EMF objects
    • Observing EMF objects
    • Persisting EMF objects
    • Dynamic EMF (Reflective API)
    • EContentAdapter – Listening to your whole model
    • ChangeRecorder – Recording changes to your model
  • Introducing EMFT
    • EMFT-Transaction
    • EMFT-Validation
    • EMFT-CDO (net4j)
    • EMFT-Query
    • EMFT-OCL
  • Introducing GMF
  • Conclusion

Oh, I finally moved to blogger 🙂