Santhosh
Santhosh

Reputation: 534

Clearing Eclipse Markers Programmatically

Is there a way to clear the eclipse markers in the Markers View programmatically? I'm logging Markers in eclipse Markers View.Before adding new markers,I want to clear the already existing markers for the same project alone.

Upvotes: 1

Views: 1224

Answers (2)

Unni Kris
Unni Kris

Reputation: 3095

Another approach could be clearing the markers by project, instead of resource:

project.deleteMarkers("markerId", true, IProject.DEPTH_INFINITE);

Upvotes: 2

Related Questions