| java.lang.Object com.bostechcorp.cbesb.ui.ide.util.ProjectUtil
ProjectUtil | public class ProjectUtil (Code) | | |
Method Summary | |
public static boolean | addProjectBuilder(IProject project, String builderId) Adds a specific builder to the end of a given project's builder list. | public static boolean | addProjectNature(IProject project, String natureId) | public static void | createFolder(IProject project, String folderName) Creates a folder in a project, with the intermediate folders if needed. | public static Collection | getAllOpenedProjects() | public static IResource | getFile(String pathRelativeToWorkspace) Gets a file from a workspace relative path. | public static IResource | getFolder(String pathRelativeToWorkspace) Gets a folder from a workspace relative path. | public static IProject | getProject(Object element) This method will try a number of known methods for determining the project
that corresponds with the passed in object. | public static IPath | getProjectLocation(IProject project) | public static IResource | getResource(String pathRelativeToWorkspace) Gets a resource from a workspace relative path. | public static boolean | projectHasBuilder(IProject project, String builderId) | public static boolean | removeProjectBuilder(IProject project, String builderId) Removes a specific builder from the end of a given project's builder list. | public static boolean | removeProjectNature(IProject project, String natureId) |
addProjectBuilder | public static boolean addProjectBuilder(IProject project, String builderId)(Code) | | Adds a specific builder to the end of a given project's builder list.
Parameters: project - Parameters: builderId - Whether or not the builder was successfully added |
addProjectNature | public static boolean addProjectNature(IProject project, String natureId)(Code) | | Adds the specified project nature to a project
Parameters: project - Parameters: natureId - boolean true add project |
createFolder | public static void createFolder(IProject project, String folderName)(Code) | | Creates a folder in a project, with the intermediate folders if needed.
Parameters: project - Parameters: folderName - |
getAllOpenedProjects | public static Collection getAllOpenedProjects()(Code) | | Gets the all the opened projects in the worksapce
A collection of opened projects |
getFile | public static IResource getFile(String pathRelativeToWorkspace)(Code) | | Gets a file from a workspace relative path. The file may not exists.
Parameters: pathRelativeToWorkspace - A workspace relative path The file handle |
getFolder | public static IResource getFolder(String pathRelativeToWorkspace)(Code) | | Gets a folder from a workspace relative path. The folder may not exists.
Parameters: pathRelativeToWorkspace - A workspace relative path The folder handle |
getProject | public static IProject getProject(Object element)(Code) | | This method will try a number of known methods for determining the project
that corresponds with the passed in object.
Parameters: element - an IProject or null if one could not be found |
getProjectLocation | public static IPath getProjectLocation(IProject project)(Code) | | |
getResource | public static IResource getResource(String pathRelativeToWorkspace)(Code) | | Gets a resource from a workspace relative path. The resoruce must exists.
Parameters: pathRelativeToWorkspace - A workspace relative path The resoruce handle |
projectHasBuilder | public static boolean projectHasBuilder(IProject project, String builderId)(Code) | | |
removeProjectBuilder | public static boolean removeProjectBuilder(IProject project, String builderId)(Code) | | Removes a specific builder from the end of a given project's builder list.
Parameters: project - Parameters: builderId - Whether or not the builder was successfully removed |
removeProjectNature | public static boolean removeProjectNature(IProject project, String natureId)(Code) | | Removes the specified project nature from the project
Parameters: project - Parameters: natureId - true removeProject |
|
|