Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IFile.findMarkers()


            protected void runTest() throws Throwable {
              IFile file = filesMap.get(pdttFile);

              StringBuilder buf = new StringBuilder();

              IMarker[] markers = file.findMarkers(
                  DefaultProblem.MARKER_TYPE_PROBLEM, true,
                  IResource.DEPTH_ZERO);
              Arrays.sort(markers, new MarkerComparator());
              for (IMarker marker : markers) {
                buf.append("\n[line=");
View Full Code Here


                return false; // can't compute
            }

            if (caretLine > 0) {
                try {
                    IMarker[] problems = resource.findMarkers(
                            DefaultProblem.MARKER_TYPE_PROBLEM, false,
                            IResource.DEPTH_INFINITE);
                    for (int i = 0; i < problems.length; i++) {
                        final IMarker marker = problems[i];
                        final boolean isInCaret = isCaretLine(caretLine,
View Full Code Here

    String tagString = pStore.getString(MarkdownPreferencePage.PREF_TASK_TAGS_DEFINED);
    List<String> tags = Arrays.asList(tagString.split(","));
    // Get resource for editor
    IFile docFile = getResource(this);
    // Get existing tasks
    IMarker[] taskMarkers = docFile.findMarkers(IMarker.TASK, true, IResource.DEPTH_INFINITE);
    List<IMarker> markers = new ArrayList<IMarker>(Arrays.asList(taskMarkers));
//    Collections.sort(markers, c) sort for efficiency
    // Find tags in doc
    List<String> text = getMarkdownPage().getText();
    for(int i=1; i<=text.size(); i++) {
View Full Code Here

    String targetFile = reviewIssue.getTargetFile();
    String issueId = reviewIssue.getIssueId();
    if (project != null && !targetFile.equals("")) {
      IFile targetIFile = project.getFile(targetFile);
      try {
        IMarker[] markers = targetIFile.findMarkers(REVIEW_MARKER, true, IResource.DEPTH_ZERO);
        for (int i = 0; i < markers.length; i++) {
          IMarker marker = markers[i];
          String reviewIssueKey = ReviewMarker.ATTRIBUTE_REVIEW_ISSUE;
          String reviewIssueId = (String) marker.getAttribute(reviewIssueKey);
          if (reviewIssueId != null && reviewIssueId.equals(issueId)) {
View Full Code Here

      IProject project = reviewModel.getProjectManager().getProject();
      String targetFile = reviewIssue.getTargetFile();
      if (project != null && !targetFile.equals("")) {
        IFile targetIFile = project.getFile(targetFile);
        try {
          IMarker[] markers = targetIFile.findMarkers(REVIEW_MARKER, true, IResource.DEPTH_ZERO);
          for (int i = 0; i < markers.length; i++) {
            IMarker marker = markers[i];
            String reviewIssueKey = ATTRIBUTE_REVIEW_ISSUE;
            String reviewIssueId = (String) marker.getAttribute(reviewIssueKey);
            if (reviewIssueId != null && reviewIssueId.equals(reviewIssue.getIssueId())) {
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.