/******************************************************************************* * Copyright (c) 2008 Spring IDE Developers * 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: * Spring IDE Developers - initial API and implementation *******************************************************************************/ package org.springframework.ide.eclipse.beans.core.model.update; import org.springframework.ide.eclipse.beans.core.model.IBeansProject; /** * A model update is applied if the {@link #requiresUpdate(IBeansProject)}method returns true, indicating the this update wants to update the given * project by calling the {@link #updateProject(IBeansProject)}. * @author Christian Dupuis * @since 2.0.3 */ public interface IBeansModelUpdate { /** * Returns true if the given project needs to be updated. */ boolean requiresUpdate(IBeansProject beansProject); /** * Update the given project. */ void updateProject(IBeansProject beansProject); /** * Returns a useful description for that update to displayed in the UI. */ String getName(); }