当前位置: 首页>>代码示例>>Java>>正文


Java IContainer.refreshLocal方法代码示例

本文整理汇总了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);
			}
		}
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:21,代码来源:ResourceManager.java

示例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);
		}
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:16,代码来源:N4JSBuilderParticipant.java

示例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();
    }
}
 
开发者ID:gluonhq,项目名称:ide-plugins,代码行数:11,代码来源:ProjectUtils.java

示例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);
			}
		}
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:16,代码来源:ResourceManager.java

示例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());
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:12,代码来源:ResourceManager.java


注:本文中的org.eclipse.core.resources.IContainer.refreshLocal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。