org.eclipse.cdt.debug.testplugin
Class CProjectHelper

java.lang.Object
  extended by org.eclipse.cdt.debug.testplugin.CProjectHelper

public class CProjectHelper
extends java.lang.Object

Helper methods to set up a ICProject.


Constructor Summary
CProjectHelper()
           
 
Method Summary
static org.eclipse.cdt.core.model.ICProject createCProject(java.lang.String projectName)
          Creates a ICProject.
static org.eclipse.cdt.core.model.ICProject createCProjectWithImport(java.lang.String projectName, org.eclipse.core.runtime.IPath zipFile)
          Creates a ICProject.
static void delete(org.eclipse.cdt.core.model.ICProject cproject)
          Removes a ICProject.
static org.eclipse.cdt.core.model.IArchive findArchive(org.eclipse.cdt.core.model.ICProject testProject, java.lang.String name)
          Attempts to find an archive with the given name in the workspace
static org.eclipse.cdt.core.model.IBinary findBinary(org.eclipse.cdt.core.model.ICProject testProject, java.lang.String name)
          Attempts to find a binary with the given name in the workspace
static org.eclipse.cdt.core.model.ICElement findElement(org.eclipse.cdt.core.model.ICProject testProject, java.lang.String name)
          Attempts to find an element with the given name in the workspace
static org.eclipse.cdt.core.model.IBinary findObject(org.eclipse.cdt.core.model.ICProject testProject, java.lang.String name)
          Attempts to find an object with the given name in the workspace
static org.eclipse.cdt.core.model.ITranslationUnit findTranslationUnit(org.eclipse.cdt.core.model.ICProject testProject, java.lang.String name)
          Attempts to find a TranslationUnit with the given name in the workspace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CProjectHelper

public CProjectHelper()
Method Detail

createCProjectWithImport

public static org.eclipse.cdt.core.model.ICProject createCProjectWithImport(java.lang.String projectName,
                                                                            org.eclipse.core.runtime.IPath zipFile)
                                                                     throws org.eclipse.core.runtime.CoreException,
                                                                            java.lang.reflect.InvocationTargetException,
                                                                            java.io.IOException
Creates a ICProject.

Throws:
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.io.IOException

createCProject

public static org.eclipse.cdt.core.model.ICProject createCProject(java.lang.String projectName)
                                                           throws org.eclipse.core.runtime.CoreException
Creates a ICProject.

Throws:
org.eclipse.core.runtime.CoreException

delete

public static void delete(org.eclipse.cdt.core.model.ICProject cproject)
                   throws org.eclipse.core.runtime.CoreException
Removes a ICProject.

Throws:
org.eclipse.core.runtime.CoreException

findArchive

public static org.eclipse.cdt.core.model.IArchive findArchive(org.eclipse.cdt.core.model.ICProject testProject,
                                                              java.lang.String name)
                                                       throws org.eclipse.cdt.core.model.CModelException
Attempts to find an archive with the given name in the workspace

Throws:
org.eclipse.cdt.core.model.CModelException

findBinary

public static org.eclipse.cdt.core.model.IBinary findBinary(org.eclipse.cdt.core.model.ICProject testProject,
                                                            java.lang.String name)
                                                     throws org.eclipse.cdt.core.model.CModelException
Attempts to find a binary with the given name in the workspace

Throws:
org.eclipse.cdt.core.model.CModelException

findObject

public static org.eclipse.cdt.core.model.IBinary findObject(org.eclipse.cdt.core.model.ICProject testProject,
                                                            java.lang.String name)
                                                     throws org.eclipse.cdt.core.model.CModelException
Attempts to find an object with the given name in the workspace

Throws:
org.eclipse.cdt.core.model.CModelException

findTranslationUnit

public static org.eclipse.cdt.core.model.ITranslationUnit findTranslationUnit(org.eclipse.cdt.core.model.ICProject testProject,
                                                                              java.lang.String name)
                                                                       throws org.eclipse.cdt.core.model.CModelException
Attempts to find a TranslationUnit with the given name in the workspace

Throws:
org.eclipse.cdt.core.model.CModelException

findElement

public static org.eclipse.cdt.core.model.ICElement findElement(org.eclipse.cdt.core.model.ICProject testProject,
                                                               java.lang.String name)
                                                        throws org.eclipse.cdt.core.model.CModelException
Attempts to find an element with the given name in the workspace

Throws:
org.eclipse.cdt.core.model.CModelException