Permalink
Browse files

Fix bug running HLint on renamed files.

  • Loading branch information...
1 parent 0a60561 commit 895680b323697433d4dbd0412bfca375949d297b @serras committed Jul 18, 2011
@@ -38,8 +38,12 @@ public HLintBuilder() {
return null;
}
ResourcesPlugin.getWorkspace().run( new IWorkspaceRunnable() {
- public void run( final IProgressMonitor monitor ) throws CoreException {
- delta.accept( new DeltaVisitor() );
+ public void run( final IProgressMonitor monitor ) {
+ try {
+ delta.accept( new DeltaVisitor() );
+ } catch (CoreException e) {
+ // Do nothing
+ }
}
}, monitor );
} else if( kind == CLEAN_BUILD ) {
@@ -52,7 +56,11 @@ public void run( final IProgressMonitor monitor ) throws CoreException {
ResourcesPlugin.getWorkspace().run( new IWorkspaceRunnable() {
public void run( final IProgressMonitor monitor ) throws CoreException {
clean( monitor );
- getProject().accept( new FullBuildVisitor() );
+ try {
+ getProject().accept( new FullBuildVisitor() );
+ } catch (CoreException e) {
+ // Do nothing
+ }
}
}, monitor );
}

0 comments on commit 895680b

Please sign in to comment.