1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

PR: 325669 - run on folder, patch from Marc-Andre Laperle

This commit is contained in:
Alena Laskavaia 2010-09-18 14:40:14 +00:00
parent 9a0a38fdca
commit 60d1761727

View file

@ -14,6 +14,7 @@ import java.util.Iterator;
import org.eclipse.cdt.codan.core.CodanRuntime;
import org.eclipse.cdt.codan.internal.ui.CodanUIMessages;
import org.eclipse.cdt.core.model.ICContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
@ -45,6 +46,11 @@ public class RunCodeAnalysis implements IObjectActionDelegate {
return Status.CANCEL_STATUS;
for (Iterator iterator = ss.iterator(); iterator.hasNext();) {
Object o = iterator.next();
if (o instanceof ICContainer) {
o = ((ICContainer) o).getResource();
}
if (o instanceof IResource) {
IResource res = (IResource) o;
SubProgressMonitor subMon = new SubProgressMonitor(