/******************************************************************************* * Copyright (c) 2007, 2014 compeople AG and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * compeople AG - initial API and implementation *******************************************************************************/ package org.eclipse.riena.e4.launcher.listener; import org.eclipse.riena.navigation.IModuleGroupNode; import org.eclipse.riena.navigation.listener.ModuleGroupNodeListener; /** * This listener of a module group ensures the preparation of nodes (if necessary). */ public class PrepareModuleGroupNodeListener extends ModuleGroupNodeListener { private final PrepareNodeDelegate<IModuleGroupNode> delegate = new PrepareNodeDelegate<IModuleGroupNode>(); /** * {@inheritDoc} * <p> * After activation of a module group prepare - if necessary - every child (sub module) node. */ @Override public void activated(final IModuleGroupNode source) { delegate.prepare(source); } /** * {@inheritDoc} * <p> * After the parent of a module group changed prepare - if necessary - every child node. */ @Override public void parentChanged(final IModuleGroupNode source) { delegate.prepare(source); } }