1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Add a helper method to create a project with a ICConfigurationDescription

This commit is contained in:
James Blackburn 2009-11-16 20:05:17 +00:00
parent 678dae7850
commit b6fa936b33

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Andrew Gvozdev - Initial API and implementation
* James Blackburn (Broadcom Corp.)
*******************************************************************************/
package org.eclipse.cdt.core.internal.errorparsers.tests;
@ -25,6 +26,9 @@ import java.util.Set;
import junit.framework.Assert;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.IPDOMManager;
import org.eclipse.cdt.core.model.ICProject;
import org.eclipse.cdt.core.testplugin.CProjectHelper;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
@ -144,6 +148,18 @@ public class ResourceHelper {
return createCDTProject(projectName, (String)null);
}
/**
* Create a new style cdt project with an 1 project description
* @param projectName
* @return IProject
* @throws Exception
*/
public static IProject createCDTProjectWithConfig(String projectName) throws Exception {
ICProject proj = CProjectHelper.createNewStileCProject(projectName, IPDOMManager.ID_FAST_INDEXER);
resourcesCreated.add(proj.getProject());
return proj.getProject();
}
/**
* Creates a file with specified content.
*