blob: 7a3ef424f7e19fa5ff3a60b9b3d55e5a82fbddb1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 IONA Technologies PLC
* 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:
* IONA Technologies PLC - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.ws.internal.cxf.core;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.ClasspathContainerInitializer;
import org.eclipse.jdt.core.IClasspathContainer;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
/**
*
* @author sclarke
*
*/
public class CXFClasspathContainerInitializer extends ClasspathContainerInitializer {
@Override
public void initialize(IPath containerPath, IJavaProject javaProject) throws CoreException {
CXFClasspathContainer cxfClasspathContainer = new CXFClasspathContainer(containerPath, javaProject);
if (cxfClasspathContainer.isValid()) {
JavaCore.setClasspathContainer(containerPath, new IJavaProject[] {javaProject},
new IClasspathContainer[] {cxfClasspathContainer}, null);
}
}
}