Package org.eclipse.core.resources

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


                IMarker marker5 = resource.createMarker(IMarker.PROBLEM);
                marker5.setAttribute(XPath.class.getName(),
                        child2aPath.getExternalForm());
                marker5.setAttribute(Element.class.getName(), parent2.getName());

                IMarker marker6 = resource.createMarker(IMarker.PROBLEM);
                marker6.setAttribute(XPath.class.getName(),
                        child2bPath.getExternalForm());
                marker6.setAttribute(Element.class.getName(), parent2.getName());

                // Find markers associated with parent2
View Full Code Here


                XPath aPath2 = new XPath("/aone/atwo");

                XPath bPath1 = new XPath("/bone");
                XPath bPath2 = new XPath("/bone/btwo");

                IMarker marker1 = resource.createMarker(IMarker.PROBLEM);
                marker1.setAttribute(XPath.class.getName(),
                        aPath2.getExternalForm());
                IMarker marker2 = resource.createMarker(IMarker.PROBLEM);
                marker2.setAttribute(XPath.class.getName(),
                        aPath1.getExternalForm());
View Full Code Here

                XPath bPath2 = new XPath("/bone/btwo");

                IMarker marker1 = resource.createMarker(IMarker.PROBLEM);
                marker1.setAttribute(XPath.class.getName(),
                        aPath2.getExternalForm());
                IMarker marker2 = resource.createMarker(IMarker.PROBLEM);
                marker2.setAttribute(XPath.class.getName(),
                        aPath1.getExternalForm());
                IMarker marker3 = resource.createMarker(IMarker.PROBLEM);
                marker3.setAttribute(XPath.class.getName(),
                        bPath2.getExternalForm());
View Full Code Here

                marker1.setAttribute(XPath.class.getName(),
                        aPath2.getExternalForm());
                IMarker marker2 = resource.createMarker(IMarker.PROBLEM);
                marker2.setAttribute(XPath.class.getName(),
                        aPath1.getExternalForm());
                IMarker marker3 = resource.createMarker(IMarker.PROBLEM);
                marker3.setAttribute(XPath.class.getName(),
                        bPath2.getExternalForm());
                IMarker marker4 = resource.createMarker(IMarker.MESSAGE);
                marker4.setAttribute(XPath.class.getName(),
                        bPath1.getExternalForm());
View Full Code Here

                marker2.setAttribute(XPath.class.getName(),
                        aPath1.getExternalForm());
                IMarker marker3 = resource.createMarker(IMarker.PROBLEM);
                marker3.setAttribute(XPath.class.getName(),
                        bPath2.getExternalForm());
                IMarker marker4 = resource.createMarker(IMarker.MESSAGE);
                marker4.setAttribute(XPath.class.getName(),
                        bPath1.getExternalForm());

                IMarker markers [];
View Full Code Here

      IResource resource = getResource(result.getSourceFile());
      if (resource == null)
        return;
     
      for (String error : result.getCollectedErrors()) {
        IMarker marker = resource.createMarker(IMarker.PROBLEM);
        marker.setAttribute(IMarker.MESSAGE, "compilation failed: " + error);
      }
     
      for (BadTokenException error : result.getParseErrors()) {
        IMarker marker = resource.createMarker(IMarker.PROBLEM);
View Full Code Here

        IMarker marker = resource.createMarker(IMarker.PROBLEM);
        marker.setAttribute(IMarker.MESSAGE, "compilation failed: " + error);
      }
     
      for (BadTokenException error : result.getParseErrors()) {
        IMarker marker = resource.createMarker(IMarker.PROBLEM);
        marker.setAttribute(IMarker.MESSAGE, "parsing failed: " + error.getLocalizedMessage());
      }
    } catch (CoreException e) {
    }
  }
View Full Code Here

            IMarker oldMarker = findSameBug(attributes, existingMarkers);
            if (oldMarker != null) {
                oldMarker.delete();
            }
        }
        IMarker newMarker = markerTarget.createMarker(mp.markerType);
        setAttributes(newMarker, attributes);
    }

    private @CheckForNull
    IMarker findSameBug(Map<String, Object> attributes, IMarker[] existingMarkers) throws CoreException {
View Full Code Here

    IResource resource = getProject().findMember(file);
    if(resource == null || !resource.exists()) {
      return;
    }
   
    IMarker dubMarker = resource.createMarker(DEE_PROBLEM_ID);
   
    dubMarker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR);
    dubMarker.setAttribute(IMarker.MESSAGE, errorMsg);
   
    try {
View Full Code Here

            }
            IResource r = conf.getJavaProject().getProject().getFile(conf.getIvyXmlPath());
            if (!r.exists()) {
                r = p;
            }
            IMarker marker = r.createMarker(IvyPlugin.MARKER_ID);
            marker.setAttribute(IMarker.MESSAGE, status.getMessage());
            switch (status.getSeverity()) {
                case IStatus.ERROR:
                    marker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR);
                    break;
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.