Examples of findMarkers()


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

            try {
                IMarker[] markers;

                markers = resource.findMarkers(BndtoolsConstants.MARKER_BND_CLASSPATH_PROBLEM, true, 0);
                loadMarkers(markers);
                markers = resource.findMarkers(BndtoolsConstants.MARKER_BND_PROBLEM, true, 0);
                loadMarkers(markers);
            } catch (CoreException e) {
                logger.logError("Error retrieving problem markers", e);
            }
        }
View Full Code Here

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

        if (resource != null) {
            try {
                IMarker[] markers;

                markers = resource.findMarkers(BndtoolsConstants.MARKER_BND_CLASSPATH_PROBLEM, true, 0);
                loadMarkers(markers);
                markers = resource.findMarkers(BndtoolsConstants.MARKER_BND_PROBLEM, true, 0);
                loadMarkers(markers);
            } catch (CoreException e) {
                logger.logError("Error retrieving problem markers", e);
View Full Code Here

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

            try {
                IMarker[] markers;

                markers = resource.findMarkers(BndtoolsConstants.MARKER_BND_CLASSPATH_PROBLEM, true, 0);
                loadMarkers(markers);
                markers = resource.findMarkers(BndtoolsConstants.MARKER_BND_PROBLEM, true, 0);
                loadMarkers(markers);
            } catch (CoreException e) {
                logger.logError("Error retrieving problem markers", e);
            }
        }
View Full Code Here

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

        if (resource == null)
            return;

        int severity = IMarker.SEVERITY_INFO;
        try {
            IMarker[] markers = resource.findMarkers(BndtoolsConstants.MARKER_BND_PROBLEM, true, 0);
            if (markers != null) {
                for (IMarker marker : markers)
                    severity = Math.max(severity, marker.getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_INFO));
            }
        } catch (CoreException e) {
View Full Code Here

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

      } else if (state == IMarker.SEVERITY_WARNING) {
        decoration.addOverlay(ICON_WARNING);
      }
    } else if (isPerlFile) {
      try {
        if (resource.findMarkers(Constants.PROBLEM_MARKER, true, 1).length > 0) {
          int state = PerlDecorator.getDecoratorMarker(resource);

          if (state == IMarker.SEVERITY_ERROR) {
            decoration.addOverlay(ICON_ERROR);
          } else if (state == IMarker.SEVERITY_WARNING) {
View Full Code Here

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

        PerlEditor editor = openEditor("EPICTest/test_Tasks.pl");
       
        try
        {
            IResource res = ((IFileEditorInput) editor.getEditorInput()).getFile();
            IMarker[] markers = res.findMarkers(
                IMarker.TASK,
                true,
                IResource.DEPTH_ONE);
           
            assertEquals(2, markers.length);
View Full Code Here

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

      return false;
    lastLine = nodeLine;
    IResource r = compUnit.getJavaElement().getResource();
    try {
      // TODO Increase efficiency by filtering markers inside analyzed method up-front
      for(IMarker m : r.findMarkers(IBreakpoint.BREAKPOINT_MARKER, true, IResource.DEPTH_INFINITE)) {
        // see if one of the breakpoint markers for the analyzed resource is on the node's line
        if(((Integer) m.getAttribute(IMarker.LINE_NUMBER, 0)) == nodeLine) {
          if(log.isLoggable(Level.FINEST))
            log.finest("Hit breakpoint in " + r.getName() + " line " + nodeLine);
          // If you want to be notified of breakpoints in the analyzed program (child eclipse),
View Full Code Here

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

    IDocument document= getDocument();
    AbstractMarkerAnnotationModel model= getAnnotationModel();

    if (resource != null && model != null && resource.exists()) {
      try {
        IMarker[] allMarkers= resource.findMarkers(fMarkerType, true, IResource.DEPTH_ZERO);
        if (allMarkers != null) {
          for (int i= 0; i < allMarkers.length; i++) {
            if (includesRulerLine(model.getMarkerPosition(allMarkers[i]), document)) {
              markers.add(allMarkers[i]);
            }
View Full Code Here

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

    if (model == null)
      return Collections.EMPTY_LIST;

    final IMarker[] allMarkers;
    try {
      allMarkers= resource.findMarkers(null, true, IResource.DEPTH_ZERO);
    } catch (CoreException x) {
      handleCoreException(x, TextEditorMessages.SelectMarkerRulerAction_getMarker);
      return Collections.EMPTY_LIST;
    }
View Full Code Here

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

    if (model == null)
      return false;

    final IMarker[] allMarkers;
    try {
      allMarkers= resource.findMarkers(null, true, IResource.DEPTH_ZERO);
    } catch (CoreException x) {
      handleCoreException(x, TextEditorMessages.SelectMarkerRulerAction_getMarker);
      return false;
    }
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.