Building Favorites Projects for Eclipse 3.1.1

Tell us what you think about our book and report any errata. Sample chapters are available at http://www.qualityeclipse.com/

(Note: Previous Editions were called "Eclipse: Building Commercial Quality Plugins")

Moderators: Eric Clayberg, Dan Rubel

Building Favorites Projects for Eclipse 3.1.1

Postby Kenneth Evans » Tue Nov 08, 2005 1:03 pm

First, it is an excellent book. However, it is based on a
complicated, single example. It is hard to follow when you cannot
build the example, as I cannot using Eclipse 3.1.1. It would be nice
to have instructions on how to make it work with 3.1.1 since that is
the current version. There is a lot 3.0.0 stuff hardcoded.

Nevertheless, I seem to have it working and the following is what I
did. I am posting this without trying it extensively, because if I
wait, it might never get done. Hope it helps. I am surprised no one
else has had problems.

1. Extracted the favorites-projects.zip into a directory and imported
the com.qualityeclipse.favorites project.

2. Deleted everything on the Build Path except the JRE, then added
Plug-in Dependencies. It built with some Problems.

3. Fixed ambiguous Path in CreatePropertyKeyResolution.java to use
org.eclipse.core.runtime.Path.

4. Deleted lines in plugin.xml that had url and icon.

5. It then ran but the view said, "This Favorites binary is compiled
for 3.0.0 but being executed on 3.1.0" and didn't work. Fixed the
hard-coded test in FavoritesPlugin.java to use 3, 1, 1. (Guess I
could have used 3, 1, 0.)

It then seems to work, but I have not tested it very much. (I need to
read the book and use the example to learn what to do ;-)

-Ken
Kenneth Evans
 
Posts: 1
Joined: Tue Nov 08, 2005 12:35 pm

Return to Book: Eclipse Plug-Ins (3rd Edition)

Who is online

Users browsing this forum: No registered users and 1 guest