Code Samples for my book for Eclipse 4.3 (Kepler)

Eclipse 4.3 (Kepler) was released in June this year. There have been some changes to plugin dependencies in E4 RCP applications from version 4.2 to 4.3. I had created sample projects for my book using Eclipse 4.2. If you import those projects in Kepler, then applications would not work.

I have recreated sample projects for Kepler and have submitted them to PACKT. Hopefully they should be available for download soon.

However if you follow through code examples in the book by creating your own E4 RCP projects in Keper, then things should work fine. Eclipse RCP APIs haven’t changed, as far as code samples in the book are concerned. However some of the links mentioned in the book are different for Kepler. They are  –

Application project wizard for E4 has changed a bit in Kepler. Now you have an option to create sample content (menus and views) in the wizard. Earlier you did not have this option and the wizard used to created sample content. This option is turned off by default. If you do not select this, then no menu options would be created. In which case skeleton sample application would look different from what is explained in the book.
If you select the above option, then along with menus and toolbar button, a view is also created.

To try out examples in the book, I would recommend that you select the option to create sample content and then delete the ‘Sample Part’ from Application.e4xmi (it is in Application->Windows->Trimmed Window->Controls->Perspective Stack->Perspective->Controls->PartSashContainer->Part Stack). You can also delete Java source file for this part (SamplePart.java in codesnippetapp.parts package). This will make the skeleton project same as explained in the book.

-Ram Kulkarni

6 Replies to “Code Samples for my book for Eclipse 4.3 (Kepler)”

  1. I am new to Eclipse RCP and plan to use your book in order to learn it. Thank you a lot for sharing the code samples!

  2. I went through the entire book and built the full application. Very good learning tool !!!
    I hope there will be a follow-up, and am suggesting some additional topics:
    – unit testing, in particular for the UI
    – adding a full help system
    – using a specialized editor (for Java in the case of the book example, but also for some DSL like the ones developed using XText)

    Thanks again for the excellent tutorial book
    MS

    1. I don’t know where to download the example source code if you buy the book from Amazon. But I have contacted the publisher and asked them to reply to you by posting their comment here.

Leave a Reply

Social