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:
parent
9a0a38fdca
commit
60d1761727
1 changed files with 6 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue