Пример #1
0
  /**
   * Tells whether the given marker can be treated as a Java annotation which will later be update
   * by JDT Core problems.
   *
   * @param marker the marker
   * @return <code>true</code> if the marker can be treated as a Java annotation
   * @since 3.3.2
   */
  public static final boolean isJavaAnnotation(IMarker marker) {
    // Performance
    String markerType = MarkerUtilities.getMarkerType(marker);
    if (IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER.equals(markerType)
        || IJavaModelMarker.TASK_MARKER.equals(markerType)
        || IJavaModelMarker.TRANSIENT_PROBLEM.equals(markerType)
        || IJavaModelMarker.BUILDPATH_PROBLEM_MARKER.equals(markerType)) return true;

    return MarkerUtilities.isMarkerType(marker, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER);
  }
 /**
  * Returns if the given marker is of the type {@link IJavaScriptLineBreakpoint#MARKER_ID}
  *
  * @param marker
  * @return true if the marker is a {@link IJavaScriptLineBreakpoint} marker
  */
 boolean isLineBreakpoint(IMarker marker) {
   return MarkerUtilities.isMarkerType(marker, IJavaScriptLineBreakpoint.MARKER_ID);
 }