Package org.eclipse.core.resources

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


              Thread.sleep(4);

              StringBuilder buf = new StringBuilder();

              List<IMarker> markers = new ArrayList<IMarker>(
                  Arrays.asList(file.findMarkers(
                      PEXProblemIdentifier.MARKER_TYPE, true,
                      IResource.DEPTH_ZERO)));
              Collections.sort(markers,
                  new Comparator<IMarker>() {
                    @Override
View Full Code Here


    protected void doAction(final ISelection sel, final ITextEditor textEditor) {
        System.out.println("TOGGLE TRACEPOINT ");

        final IFile file = ResourceUtil.getFile(textEditor.getEditorInput());
        try {
            final IMarker[] markers = file.findMarkers(
                    "org.erlide.test_support.tracingmarker", true, IResource.DEPTH_ONE);
            if (markers.length == 0) {
                System.out.println("create");
                final IMarker m = file
                        .createMarker("org.erlide.test_support.tracingmarker");
View Full Code Here

   
    //Check if file is free of Coco/R Errors
    if (checkATGErrors) {
      try {
        sourceFile.getProject().build(IncrementalProjectBuilder.INCREMENTAL_BUILD, pm);
        IMarker[] markers = sourceFile.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_ZERO);
       
        for (IMarker m : markers){
          if (m.getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_INFO) == IMarker.SEVERITY_ERROR) {
            result.addFatalError( CoreTexts.renameRefactor_errorsInFile );                     
          }
View Full Code Here

 
  private IMarker[] getMarker() {
    try {
      IFileEditorInput input = (IFileEditorInput)editor.getEditorInput();
      IFile file = input.getFile();
      return file.findMarkers(IMarker.MARKER, true, IFile.DEPTH_ZERO);
    } catch (CoreException e) {
      return new IMarker[0];
    }
  }
 
View Full Code Here

            public void run(final IProgressMonitor monitor) throws CoreException {
              for (EOModel model : editingModel.getModelGroup().getModels()) {
                try {
                  IFile indexFile = EclipseFileUtils.getEclipseIndexFile(model);
                  if (indexFile != null) {
                    IMarker[] oldMarkers = indexFile.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
                    for (int markerNum = 0; markerNum < oldMarkers.length; markerNum++) {
                      // System.out.println("EOModelEditor.handleModelErrors:
                      // deleting " + markers[markerNum]);
                      oldMarkers[markerNum].delete();
                    }
View Full Code Here

                    for (int markerNum = 0; markerNum < oldMarkers.length; markerNum++) {
                      // System.out.println("EOModelEditor.handleModelErrors:
                      // deleting " + markers[markerNum]);
                      oldMarkers[markerNum].delete();
                    }
                    IMarker[] newMarkers = indexFile.findMarkers(org.objectstyle.wolips.eomodeler.core.Activator.EOMODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE);
                    for (int markerNum = 0; markerNum < newMarkers.length; markerNum++) {
                      // System.out.println("EOModelEditor.handleModelErrors:
                      // deleting " + markers[markerNum]);
                      newMarkers[markerNum].delete();
                    }
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

            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

            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

            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) {
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.