Problem with downloaded Chapter 7 code with Eclipse 3.3

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

Problem with downloaded Chapter 7 code with Eclipse 3.3

Postby purtill » Fri Aug 29, 2008 3:37 pm

I downloaded the book code plugin from http://qualityeclipse.com/ (QualityEclipse_v2.1.0_for_Eclipse3.3.zip) and installed it, and all works fine up to Chapter 7. But when I load the chapter 7 examples, the code doesn't compile: I get the error:
Code: Select all
The method createContextSnapshot(boolean) is undefined for the type IHandlerService

at
Code: Select all
com.qualityeclipse.favorites/src/com/qualityeclipse/favorites/contributions   RemoveFavoritesContributionItem.java   line 125

I assume this is generated code (it's not mentioned in the book, as far as I can tell), so I'm not quite sure how to proceed. I am using Eclipse 3.3 (on Linux) and I get the same problem with various JDKs, including 1.5 and 1.6).
purtill
 
Posts: 1
Joined: Fri Aug 29, 2008 2:25 pm

Re: Problem with downloaded Chapter 7 code with Eclipse 3.3

Postby brindusa » Mon Jan 05, 2009 2:36 pm

Hello. I have the exact same problem. Did you resolved it? Thanks.
brindusa
 
Posts: 1
Joined: Mon Jan 05, 2009 12:30 pm

Re: Problem with downloaded Chapter 7 code with Eclipse 3.3

Postby Dan Rubel » Sat Jan 17, 2009 12:23 pm

IHandlerService#createContextSnapshot(boolean) is new in Eclipse 3.4.
In Eclipse 3.3, I recommend modifying the code to call RemoveFavoritesHandler directly.
Dan Rubel
Moderator
 
Posts: 27
Joined: Thu Oct 30, 2003 9:13 am


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

Who is online

Users browsing this forum: No registered users and 1 guest