public final class ResourcesUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourcesUtil.ImportResult |
static interface |
ResourcesUtil.RunnableWithFile |
| Modifier and Type | Method and Description |
|---|---|
static IMarker[] |
buildWorkspace(boolean clean,
String markerType) |
static void |
clearWorkspace() |
static void |
copyFile(IFile source,
File target) |
static BackendResource |
getBackendResource(IResource resource) |
static String |
getProjectName(File folder) |
static ResourcesUtil.ImportResult |
importProject(File projectLocation,
IProgressMonitor monitor) |
static ResourcesUtil.ImportResult |
importProject(File projectLocation,
String projectName,
IProgressMonitor monitor) |
static int |
importProjects(Collection<File> projectLocations,
IProgressMonitor monitor) |
static boolean |
isLocal(IResource resource) |
static boolean |
matchesPredicates(IProject project,
EList<Predicate> predicates) |
static void |
runWithFile(IProject project,
IPath path,
ResourcesUtil.RunnableWithFile runnable) |
public static String getProjectName(File folder) throws ParserConfigurationException, Exception
public static BackendResource getBackendResource(IResource resource)
public static boolean isLocal(IResource resource)
public static void runWithFile(IProject project, IPath path, ResourcesUtil.RunnableWithFile runnable) throws Exception
Exceptionpublic static void copyFile(IFile source, File target) throws CoreException, FileNotFoundException
CoreExceptionFileNotFoundExceptionpublic static int importProjects(Collection<File> projectLocations, IProgressMonitor monitor) throws CoreException
CoreExceptionpublic static ResourcesUtil.ImportResult importProject(File projectLocation, IProgressMonitor monitor) throws Exception
Exceptionpublic static ResourcesUtil.ImportResult importProject(File projectLocation, String projectName, IProgressMonitor monitor) throws IOException, CoreException
IOExceptionCoreExceptionpublic static void clearWorkspace()
throws CoreException
CoreExceptionpublic static IMarker[] buildWorkspace(boolean clean, String markerType) throws CoreException
CoreExceptionCopyright (c) 2014 Eike Stepper (Loehne, Germany) and others.
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