mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52: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;
|
private boolean isAvailable = false;
|
||||||
|
|
||||||
public CygpathTranslator(IProject project) {
|
public CygpathTranslator(IProject project) {
|
||||||
SCMarkerGenerator scMarkerGenerator = new SCMarkerGenerator();
|
|
||||||
try {
|
try {
|
||||||
ICExtensionReference[] parserRef = CCorePlugin.getDefault().getBinaryParserExtensions(project);
|
ICExtensionReference[] parserRef = CCorePlugin.getDefault().getBinaryParserExtensions(project);
|
||||||
for (int i = 0; i < parserRef.length; i++) {
|
for (int i = 0; i < parserRef.length; i++) {
|
||||||
|
@ -68,17 +67,18 @@ public class CygpathTranslator {
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
isAvailable = false;
|
isAvailable = false;
|
||||||
scMarkerGenerator = new SCMarkerGenerator();
|
// Removing markers. if cygpath isn't in your path then you aren't using cygwin.
|
||||||
scMarkerGenerator.addMarker(project, -1,
|
// Then why are we calling this....
|
||||||
MakeMessages.getString(CYGPATH_ERROR_MESSAGE),
|
// scMarkerGenerator.addMarker(project, -1,
|
||||||
IMarkerGenerator.SEVERITY_WARNING, null);
|
// 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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