Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IResource.deleteMarkers()


 
  public Object execute(ExecutionEvent event) throws ExecutionException {
    try {
      IResource resource = ResourcesPlugin.getWorkspace().getRoot();
      if (resource != null)
        resource.deleteMarkers(Crystal.MARKER_DEFAULT, true,
            IResource.DEPTH_INFINITE);
    } catch (CoreException ce) {
      logger.log(Level.WARNING, "CoreException when removing markers", ce);
    }
    return null;
View Full Code Here


      IResource resource = compUnit.getResource();
      if (resource == null)
        // this happens with external libraries like the Java runtime library
        logger.warning("Cannot clear markers in " + compUnit);
      else
        resource.deleteMarkers(
            Crystal.MARKER_DEFAULT, true, IResource.DEPTH_INFINITE);
    }
    catch (CoreException ce) {
      logger.log(Level.SEVERE, "CoreException when removing markers", ce);
    }
View Full Code Here

  @Override
  public void processingStarts(RelativePath sourceFile) {
    try {
      IResource resource = getResource(sourceFile);
      if (resource != null)
        resource.deleteMarkers(IMarker.MARKER, true, IResource.DEPTH_INFINITE);
    } catch (CoreException e) {
    }
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.