blob: 07c4bda61d9181a9d580c5b7cd81dcf7d64dfa15 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation 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:
* IBM Corporation - initial API and implementation
* yyyymmdd bug Email and other contact information
* -------- -------- -----------------------------------------------------------
* 20100819 291954 ericdp@ca.ibm.com - Eric D. Peters, JAX-RS - provide means to change facet versions
*******************************************************************************/
package org.eclipse.jst.ws.jaxrs.core.internal.project.facet;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.wst.common.project.facet.core.IDelegate;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
/**
* JAXRS Facet Version change Delegate for WTP faceted web projects.
*
* @since 3.2.2
*/
public final class JAXRSFacetVersionChangeDelegate implements IDelegate {
/*
* (non-Javadoc)
*
* @see
* org.eclipse.wst.common.project.facet.core.IDelegate#execute(org.eclipse
* .core.resources.IProject,
* org.eclipse.wst.common.project.facet.core.IProjectFacetVersion,
* java.lang.Object, org.eclipse.core.runtime.IProgressMonitor)
*/
public void execute(final IProject project, final IProjectFacetVersion fv,
final Object cfg, final IProgressMonitor monitor)
throws CoreException
{
try {
if (monitor != null) {
monitor.beginTask("", 1); //$NON-NLS-1$
//presently there is no difference between facet versions, nothing to do
}
} finally {
if (monitor != null) {
monitor.done();
}
}
}
}