mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 191963 - Remove warning marker when cygpath not found.
This commit is contained in:
parent
a7a62dd7d0
commit
1f8c39294a
1 changed files with 11 additions and 11 deletions
|
@ -40,7 +40,6 @@ public class CygpathTranslator {
|
|||
private boolean isAvailable = false;
|
||||
|
||||
public CygpathTranslator(IProject project) {
|
||||
SCMarkerGenerator scMarkerGenerator = new SCMarkerGenerator();
|
||||
try {
|
||||
ICExtensionReference[] parserRef = CCorePlugin.getDefault().getBinaryParserExtensions(project);
|
||||
for (int i = 0; i < parserRef.length; i++) {
|
||||
|
@ -68,17 +67,18 @@ public class CygpathTranslator {
|
|||
}
|
||||
catch (IOException e) {
|
||||
isAvailable = false;
|
||||
scMarkerGenerator = new SCMarkerGenerator();
|
||||
scMarkerGenerator.addMarker(project, -1,
|
||||
MakeMessages.getString(CYGPATH_ERROR_MESSAGE),
|
||||
IMarkerGenerator.SEVERITY_WARNING, null);
|
||||
}
|
||||
if (isAvailable) {
|
||||
// remove problem markers
|
||||
scMarkerGenerator.removeMarker(project, -1,
|
||||
MakeMessages.getString(CYGPATH_ERROR_MESSAGE),
|
||||
IMarkerGenerator.SEVERITY_WARNING, null);
|
||||
// Removing markers. if cygpath isn't in your path then you aren't using cygwin.
|
||||
// Then why are we calling this....
|
||||
// scMarkerGenerator.addMarker(project, -1,
|
||||
// MakeMessages.getString(CYGPATH_ERROR_MESSAGE),
|
||||
// IMarkerGenerator.SEVERITY_WARNING, null);
|
||||
}
|
||||
|
||||
// remove problem markers
|
||||
SCMarkerGenerator scMarkerGenerator = new SCMarkerGenerator();
|
||||
scMarkerGenerator.removeMarker(project, -1,
|
||||
MakeMessages.getString(CYGPATH_ERROR_MESSAGE),
|
||||
IMarkerGenerator.SEVERITY_WARNING, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue