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
Exception
public static void copyFile(IFile source, File target) throws CoreException, FileNotFoundException
CoreException
FileNotFoundException
public static int importProjects(Collection<File> projectLocations, IProgressMonitor monitor) throws CoreException
CoreException
public static ResourcesUtil.ImportResult importProject(File projectLocation, IProgressMonitor monitor) throws Exception
Exception
public static ResourcesUtil.ImportResult importProject(File projectLocation, String projectName, IProgressMonitor monitor) throws IOException, CoreException
IOException
CoreException
public static void clearWorkspace() throws CoreException
CoreException
public static IMarker[] buildWorkspace(boolean clean, String markerType) throws CoreException
CoreException
Copyright (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 v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html