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


Java IFolder.delete方法代码示例

本文整理汇总了Java中org.eclipse.core.resources.IFolder.delete方法的典型用法代码示例。如果您正苦于以下问题:Java IFolder.delete方法的具体用法?Java IFolder.delete怎么用?Java IFolder.delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.core.resources.IFolder的用法示例。


在下文中一共展示了IFolder.delete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processFile

import org.eclipse.core.resources.IFolder; //导入方法依赖的package包/类
public static void processFile ( final IContainer parent, final Definition definition, final Profile profile, final IProgressMonitor monitor ) throws Exception
{
    monitor.beginTask ( makeJobLabel ( definition, profile ), 100 );

    final IFolder output = parent.getFolder ( new Path ( "output" ) ); //$NON-NLS-1$
    if ( output.exists () )
    {
        output.delete ( true, new SubProgressMonitor ( monitor, 9 ) );
    }
    output.create ( true, true, new SubProgressMonitor ( monitor, 1 ) );

    final Builder builder = new Builder ( definition, profile );
    final Recipe recipe = builder.build ();

    try
    {
        final Map<String, Object> initialContent = new HashMap<String, Object> ();
        initialContent.put ( "output", output ); //$NON-NLS-1$

        recipe.execute ( initialContent, new SubProgressMonitor ( monitor, 90 ) );
    }
    finally
    {
        monitor.done ();
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:27,代码来源:RecipeHelper.java

示例2: deleteEmptyDirectories

import org.eclipse.core.resources.IFolder; //导入方法依赖的package包/类
private void deleteEmptyDirectories(IFolder folder, IProgressMonitor progressMonitor) throws CoreException {
	for (IResource member : folder.members()) {
		if (member instanceof IFolder) {
			deleteEmptyDirectories((IFolder) member, progressMonitor);
		}
	}
	if (folder.members().length == 0) {
		folder.delete(true, progressMonitor);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:11,代码来源:BuildInstruction.java

示例3: removeTemprarySourcePackage

import org.eclipse.core.resources.IFolder; //导入方法依赖的package包/类
private void removeTemprarySourcePackage() {
	IPath tempSrcFolder = new Path(PathConstant.TEMP_BUILD_PATH_COMPILATION_PACKAGE);
	IFolder folder = BuildExpressionEditorDataSturcture.INSTANCE.getCurrentProject().getFolder(tempSrcFolder);
	try {
		if (folder.exists()) {
			folder.delete(true, new NullProgressMonitor());
		}
	} catch (CoreException e) {
		LOGGER.error("CoreException occurred while removing temporary source folder", e);
	}
	LOGGER.debug("Removed temporary build path at " + PathConstant.TEMP_BUILD_PATH_SETTINGS_FOLDER);
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:13,代码来源:LaunchExpressionEditor.java


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