Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part I: EMF Overview > Model Editing with EMF.Edit

Chapter 3. Model Editing with EMF.Edit

In the previous chapter we saw how EMF can take a model definition and produce a good, easily customizable Java implementation for it. Well, that’s just the beginning. Once you decide to use EMF to model your application, you can then use EMF.Edit to build very functional viewers and editors for the model. You can generate an editor that will display and edit (i.e., copy, paste, drag-and-drop, etc.) instances of your model using standard JFace viewers and a property sheet, all with unlimited undo and redo. Alternatively, you can use the reflective support in EMF.Edit to do the same kinds of editing reflectively, even with a dynamic EMF model for which you didn’t generate code.

You might be thinking that this is beginning to sound like one of those infomercials: if you buy EMF in the next 24 hours, we’ll throw in the free viewers, drag-and-drop, and a bonus icon directory. Well, maybe it does sound that way, but the bottom line is that EMF.Edit is simply exploiting the information that is available in the model, along with the mechanisms supplied by the EMF core, to provide greater and higher level functionality. The free functionality being offered comes naturally from the fact that we have a model, so you can rest assured that there is no “free juicer” about to be offered.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint