Can't find all classes described in FavoritesManager (7.2)

Tell us what you think about our book and report any errata. Sample chapters are available at

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

Moderators: Eric Clayberg, Dan Rubel

Can't find all classes described in FavoritesManager (7.2)

Postby Lask » Tue Mar 15, 2005 2:27 pm


i can't find the classes FavoritesManagerListener and FavoritesManagerEvent in the book, which are described in the Chapter 7.2 in the FavoritesManager. Can you tell me please where i can find them.

Posts: 1
Joined: Tue Mar 15, 2005 2:21 pm

There you go!

Postby Tahatunga » Mon Apr 18, 2005 7:51 am


you can use my implementation of the two classes. It works by me ;)

good luck!

Code: Select all
package com.qualityeclipse.favourites.model;

public interface FavouritesManagerListener {
   void favouritesChanged(FavouritesManagerEvent evt);

Code: Select all
package com.qualityeclipse.favourites.model;


public class FavouritesManagerEvent extends TypedEvent {
   private IFavouriteItem[] i1;
   private IFavouriteItem[] i2;
   public FavouritesManagerEvent(FavouritesManager mgr, IFavouriteItem[] i1,
         IFavouriteItem[] i2) {
      this.i1 = i1;
      this.i2 = i2;

   public Object[] getItemsRemoved() {
      return i2;

   public Object[] getItemsAdded() {
      return i1;

Re: There you go!

Postby Eric Clayberg » Sun May 01, 2005 6:04 pm

Note that all of these files may be downloaded from our book web site.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

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

Who is online

Users browsing this forum: No registered users and 1 guest