mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 417926 - Markers shouldn't be created on the workspace root
Change-Id: Ia7d00fa513a6fb18d616503d64e178ae4a09fe4d Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com> Reviewed-on: https://git.eclipse.org/r/16775 Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com> IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com> Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
This commit is contained in:
parent
5b9c323d9c
commit
ee19807cb0
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
* Andrew Gvozdev (Quoin Inc)
|
||||
* Dmitry Kozlov (CodeSourcery) - Build error highlighting and navigation
|
||||
* Alex Ruiz (Google)
|
||||
* Serge Beauchamp (Freescale Semiconductor) - Bug 417926
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.core;
|
||||
|
||||
|
@ -574,6 +575,8 @@ outer:
|
|||
* @param externalPath - external path pointing to a file outside the workspace.
|
||||
*/
|
||||
public void generateExternalMarker(IResource file, int lineNumber, String desc, int severity, String varName, IPath externalPath) {
|
||||
if (file == null)
|
||||
file = fProject;
|
||||
ProblemMarkerInfo problemMarkerInfo = new ProblemMarkerInfo(file, lineNumber, desc, severity, varName, externalPath);
|
||||
this.addProblemMarker(problemMarkerInfo);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue