private void removeOutputFile(IFile file, IProgressMonitor monitor) { String outputFileName = getOutputFileName(file); monitor.subTask(NLS.bind(PDECoreMessages.Builders_Schema_removing, outputFileName)); IWorkspace workspace = file.getWorkspace(); IPath path = new Path(outputFileName); if (workspace.getRoot().exists(path)) { IFile outputFile = workspace.getRoot().getFile(path); if (outputFile != null) { try { outputFile.delete(true, true, monitor); } catch (CoreException e) { PDECore.logException(e); } } } monitor.done(); } }
private void removeOutputFile(IFile file, IProgressMonitor monitor) { String outputFileName = getOutputFileName(file); monitor.subTask(NLS.bind(PDECoreMessages.Builders_Schema_removing, outputFileName)); IWorkspace workspace = file.getWorkspace(); IPath path = new Path(outputFileName); if (workspace.getRoot().exists(path)) { IFile outputFile = workspace.getRoot().getFile(path); if (outputFile != null) { try { outputFile.delete(true, true, monitor); } catch (CoreException e) { PDECore.logException(e); } } } monitor.done(); } }
if (reporter.getDocumentRoot() != null && reporter.getErrorCount() == 0 && generateDoc) { ensureFoldersExist(file.getProject(), getDocLocation(file)); String outputFileName = getOutputFileName(file); IWorkspace workspace = file.getWorkspace(); Path outputPath = new Path(outputFileName);
if (reporter.getDocumentRoot() != null && reporter.getErrorCount() == 0 && generateDoc) { ensureFoldersExist(file.getProject(), getDocLocation(file)); String outputFileName = getOutputFileName(file); IWorkspace workspace = file.getWorkspace(); Path outputPath = new Path(outputFileName);