本文整理汇总了Java中org.eclipse.core.resources.IContainer.refreshLocal方法的典型用法代码示例。如果您正苦于以下问题:Java IContainer.refreshLocal方法的具体用法?Java IContainer.refreshLocal怎么用?Java IContainer.refreshLocal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.core.resources.IContainer
的用法示例。
在下文中一共展示了IContainer.refreshLocal方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAllJUnitResultFiles
import org.eclipse.core.resources.IContainer; //导入方法依赖的package包/类
/**
* @param container
* @param files
* @throws CoreException
*/
public static void getAllJUnitResultFiles(String projectName, List<IFile> files) throws CoreException {
if (projectName == null)
return;
IContainer container = ResourceManager.getProject(projectName);
container.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
IResource[] members = container.members();
for (IResource member : members) {
if (member instanceof IFile) {
IFile file = (IFile) member;
if (isJUnitResultFile(file)) {
files.add(file);
}
}
}
}
示例2: refreshOutputFolders
import org.eclipse.core.resources.IContainer; //导入方法依赖的package包/类
/**
* @see #refreshOutputFolders(org.eclipse.xtext.builder.IXtextBuilderParticipant.IBuildContext, Map,
* IProgressMonitor)
*/
protected void refreshOutputFolders(IProject project, Map<String, OutputConfiguration> outputConfigurations,
IProgressMonitor monitor) throws CoreException {
SubMonitor subMonitor = SubMonitor.convert(monitor, outputConfigurations.size());
for (OutputConfiguration config : outputConfigurations.values()) {
SubMonitor child = subMonitor.newChild(1);
IContainer container = getContainer(project, config.getOutputDirectory());
if (null != container) {
container.refreshLocal(IResource.DEPTH_INFINITE, child);
}
}
}
示例3: refreshProject
import org.eclipse.core.resources.IContainer; //导入方法依赖的package包/类
public static void refreshProject(IContainer project) {
if (project == null) {
return;
}
try {
project.refreshLocal(IResource.DEPTH_INFINITE, null);
} catch (CoreException e) {
e.printStackTrace();
}
}
示例4: getAllWorkBookFiles
import org.eclipse.core.resources.IContainer; //导入方法依赖的package包/类
public static void getAllWorkBookFiles(String projectName, List<IFile> files) throws CoreException {
if (projectName == null)
return;
IContainer container = ResourceManager.getProject(projectName);
container.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
IResource[] members = container.members();
for (IResource member : members) {
if (member instanceof IFile) {
IFile file = (IFile) member;
if (isWorkBookFile(file)) {
files.add(file);
}
}
}
}
示例5: resfresh
import org.eclipse.core.resources.IContainer; //导入方法依赖的package包/类
/**
* Refresh the passed container
*
* @param folder
* @throws CoreException
*/
public static void resfresh(IContainer folder) throws CoreException {
if (folder == null)
return;
folder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
}