In order to demonstrate how to migrate a plug-in to Eclipse 4.x technology, a simple example needs to be created. For this purpose, the Eclipse plug-in example library will be used, although the exact sample used by this book can also be checked out from the book's GitHub repository at https://github.com/alblue/com.packtpub.e4/
com.packtpub.e4.migration
as the name of the project, click on Next, and then accept the defaults by clicking on Finish.META-INF/MANIFEST.MF
file and go to the Overview tab. Click on the Extensions link on the right-hand side, under the Extension/Extension Point Content group:views
in the filter and uncheck the Show only extension points from the required plug-ins option to show the list. Select Sample View and click on Next:In order to migrate an existing application, a sample plug-in needs to be used. The version of the extension point in Eclipse's built-in wizards currently uses the Eclipse 3.x APIs (these samples were taken from Eclipse Neon; the exact code used can be seen from the book's GitHub repository).
A sample view was created using the view
extension point, showing a table viewer populated with sample data. The table viewer has a number of actions (which are an Eclipse 2.x technology), along with a view menu, a toolbar, and a context-sensitive pop-up menu. Subsequent sections will show how to refactor each of these in turn into their Eclipse 4.x equivalents.
3.141.12.209