mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-06 07:45:50 +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.core.CodanRuntime;
|
||||||
import org.eclipse.cdt.codan.internal.ui.CodanUIMessages;
|
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.resources.IResource;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
|
@ -45,6 +46,11 @@ public class RunCodeAnalysis implements IObjectActionDelegate {
|
||||||
return Status.CANCEL_STATUS;
|
return Status.CANCEL_STATUS;
|
||||||
for (Iterator iterator = ss.iterator(); iterator.hasNext();) {
|
for (Iterator iterator = ss.iterator(); iterator.hasNext();) {
|
||||||
Object o = iterator.next();
|
Object o = iterator.next();
|
||||||
|
|
||||||
|
if (o instanceof ICContainer) {
|
||||||
|
o = ((ICContainer) o).getResource();
|
||||||
|
}
|
||||||
|
|
||||||
if (o instanceof IResource) {
|
if (o instanceof IResource) {
|
||||||
IResource res = (IResource) o;
|
IResource res = (IResource) o;
|
||||||
SubProgressMonitor subMon = new SubProgressMonitor(
|
SubProgressMonitor subMon = new SubProgressMonitor(
|
||||||
|
|
Loading…
Add table
Reference in a new issue