1
0
Fork 0
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:
Doug Schaefer 2007-06-11 15:03:44 +00:00
parent a7a62dd7d0
commit 1f8c39294a

View file

@ -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);
} }
/** /**