Package org.eclipse.wst.sse.ui.internal

Examples of org.eclipse.wst.sse.ui.internal.StructuredMarkerAnnotation


      return;
    // can be null when closing the editor
    if (getAnnotationModel() != null) {
      TemporaryAnnotation tempAnnotation = (TemporaryAnnotation) result;

      StructuredMarkerAnnotation sma = getCorrespondingMarkerAnnotation(tempAnnotation);
      if (sma != null) {
        // un-gray out the marker annotation
        sma.setGrayed(false);
      }

      getAnnotationModel().addAnnotation(tempAnnotation, tempAnnotation.getPosition());
    }
  }
View Full Code Here


        Object obj = i.next();

        // check if it's a validator marker annotation
        // if it is save it for comparision later (to "gray" icons)
        if (obj instanceof StructuredMarkerAnnotation) {
          StructuredMarkerAnnotation sma = (StructuredMarkerAnnotation) obj;

          if (sma.getAnnotationType() == TemporaryAnnotation.ANNOT_ERROR || sma.getAnnotationType() == TemporaryAnnotation.ANNOT_WARNING)
            fMarkerAnnotations.add(sma);
        }

        if (!(obj instanceof TemporaryAnnotation))
          continue;
View Full Code Here

        if (isCanceled()) {
          if (DEBUG)
            System.out.println("[trace reconciler] >** REMOVAL WAS CANCELLED **"); //$NON-NLS-1$
          return;
        }
        StructuredMarkerAnnotation sma = getCorrespondingMarkerAnnotation(annotationsToRemove[i]);
        if (sma != null) {
          // gray out the marker annotation
          sma.setGrayed(true);
        }
        // remove the temp one
        annotationModel.removeAnnotation(annotationsToRemove[i]);

      }
View Full Code Here

  private StructuredMarkerAnnotation getCorrespondingMarkerAnnotation(TemporaryAnnotation tempAnnotation) {

    Iterator it = getMarkerAnnotations().iterator();
    while (it.hasNext()) {
      StructuredMarkerAnnotation markerAnnotation = (StructuredMarkerAnnotation) it.next();
      String message = ""; //$NON-NLS-1$
      try {
        message = (String) markerAnnotation.getMarker().getAttribute(IMarker.MESSAGE);
      }
      catch (CoreException e) {
        if (DEBUG)
          Logger.logException(e);
      }
View Full Code Here

      while (iterator.hasNext()) {
        Object next = iterator.next();

        if (next instanceof StructuredMarkerAnnotation) {
          StructuredMarkerAnnotation annotation = (StructuredMarkerAnnotation) next;

          try {
            IMarker marker = annotation.getMarker();
            if (marker != null && SymfonyMarker.MISSING_SERVICE_CLASS.equals(marker.getType())) {
              int markerLine = MarkerUtilities.getLineNumber(marker);
              if (markerLine == line) {
                return new ICompletionProposal[] { new CreateClassCompletionProposal(marker) };
              }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.internal.StructuredMarkerAnnotation

Copyright © 2018 www.massapicom. 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.