當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。