/** * Activates the bread crumb participant. * * @param breadCrumbParticipant * The participant to activate */ protected final void activate(final IBreadCrumbParticipant breadCrumbParticipant) { // get old value IBreadCrumbParticipant previousParticipant = activeParticipant; // and set the provided participant as the active one activeParticipant = breadCrumbParticipant; // fire bread crumb activated event listenerSupport.fireBreadCrumbActivated(previousParticipant, breadCrumbParticipant); // signal the bread crumb participant that it is selected as the // currently active one breadCrumbParticipant.onActivate(previousParticipant); } }
/** * Activates the bread crumb participant. * * @param breadCrumbParticipant * The participant to activate */ protected final void activate(final IBreadCrumbParticipant breadCrumbParticipant) { // get old value IBreadCrumbParticipant previousParticipant = activeParticipant; // and set the provided participant as the active one activeParticipant = breadCrumbParticipant; // fire bread crumb activated event listenerSupport.fireBreadCrumbActivated(previousParticipant, breadCrumbParticipant); // signal the bread crumb participant that it is selected as the // currently active one breadCrumbParticipant.onActivate(previousParticipant); } }