本文整理匯總了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());
}