/*******************************************************************************
* Copyright (c) 2006-2010 eBay Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*******************************************************************************/
package org.ebayopensource.turmeric.eclipse.build.builder;
import org.ebayopensource.turmeric.eclipse.build.SOAFrameworkBuilderActivator;
import org.ebayopensource.turmeric.eclipse.core.buildsystem.AbstractSOANature;
import org.ebayopensource.turmeric.eclipse.repositorysystem.core.GlobalRepositorySystem;
import org.eclipse.core.resources.IProjectNature;
import org.eclipse.core.runtime.CoreException;
/**
*
* Consumer Project Nature. All SOA Consumer projects will have this nature.
* This nature has a corresponding builder - SOAClientProjectBuilder
*
* @see SOAClientProjectBuilder
* @see IProjectNature
* @author smathew
*/
public class SOAClientProjectNature extends AbstractSOANature {
/**
* The Nature ID for the SOAClientProjectNature.
*/
public static final String NATURE_ID = SOAFrameworkBuilderActivator.PLUGIN_ID
+ ".SOAClientProjectNature";
/* (non-Javadoc)
* @see org.ebayopensource.turmeric.eclipse.core.buildsystem.AbstractSOANature#getBuilderName()
*/
@Override
public String getBuilderName() {
return SOAClientProjectBuilder.BUILDER_ID;
}
/* (non-Javadoc)
* @see org.ebayopensource.turmeric.eclipse.core.buildsystem.AbstractSOANature#configure()
*/
@Override
public void configure() throws CoreException {
if (GlobalRepositorySystem.instanceOf().getActiveRepositorySystem()
.getProjectConfigurer().configureProjectNature(getProject(), this)) {
super.configure();
}
}
}