mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-25 01:03:48 +02:00
Bug 403409. Organize Includes throws IllegalStateException
This commit is contained in:
parent
48c9cc0b73
commit
41522141d9
1 changed files with 9 additions and 7 deletions
|
@ -965,13 +965,15 @@ public class IncludeOrganizer {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IPath header = fHeaderChooser.chooseHeader(request.getBinding().getName(), candidatePaths);
|
if (!request.isResolved()) {
|
||||||
if (header == null)
|
IPath header = fHeaderChooser.chooseHeader(request.getBinding().getName(), candidatePaths);
|
||||||
throw new OperationCanceledException();
|
if (header == null)
|
||||||
|
throw new OperationCanceledException();
|
||||||
request.resolve(header);
|
|
||||||
if (!fContext.isAlreadyIncluded(header))
|
request.resolve(header);
|
||||||
fContext.addHeaderToInclude(header);
|
if (!fContext.isAlreadyIncluded(header))
|
||||||
|
fContext.addHeaderToInclude(header);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue