Search code examples
javaeclipsepde

Having trouble converting Java Project to Eclipse Plug-in Development Project


I am going through The Eclipse Debug Framework tutorial which was presented at Eclipse con 2005 (https://www.eclipsecon.org/2005/tutorials.html). The Zip file (which can be downloaded from the link) contains 7 exercises. For each exercise an initial code base consisting of two plug-ins is provided - example.debug.core and example.debug.ui.

I tried to import these projects as Plugin and fragments but it doesn't work. (These Projects are not shown as Plugin Projects in the Dialog)

So then I decided to import these projects as Java Projects by "File > Import > Existing Project into Workspace" but then I can't seem to convert them to PDE Projects. I tried it by following these instructions here.

I am trying to convert these Projects to Plugin Projects because otherwise I can't seem import plugins to the Java classes in these projects

even though I have already added these plugins as Dependencies..

So any Ideas? I am using Eclipse Modeling Tools (Luna). In tutorial they recommend using Eclipse SDK, version 3.1M5.


Solution

  • 'Import > Existing Projects into Workspace' works for me.

    For the 'root directory' choose the 'exercise1.1' directory. The two projects should then be listed in the projects list.

    But these projects are 10 years old and are using the old style plugin.xml format which is not supported by default by current Eclipse builds. This results in lots of import errors.