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

Examples of org.eclipse.wst.sse.ui.internal.reconcile.ReconcileAnnotationKey


      // length
      int length = validationMessage.getLength();
      if (length >= 0) {

        Position p = new Position(offset, length);
        ReconcileAnnotationKey key = createKey(getPartitionType(getDocument(), offset), getScope());

        // create an annotation w/ problem ID and fix info
        TemporaryAnnotation annotation = new TemporaryAnnotation(p, type, messageText, key);
        Object extraInfo = info.getAdditionalFixInfo();
        // https://bugs.eclipse.org/bugs/show_bug.cgi?id=170988
View Full Code Here


    fContentTypeId = contentTypeId;

    fSpellingContext = new SpellingContext();
    IContentType contentType = Platform.getContentTypeManager().getContentType(fContentTypeId);
    fSpellingContext.setContentType(contentType);
    fReconcileAnnotationKey = new ReconcileAnnotationKey(fSpellingStep, KEY_CONTENT_TYPE, ReconcileAnnotationKey.PARTIAL);

    /**
     * Inherit spelling region rules
     */
    List contexts = new ArrayList();
View Full Code Here

        Object obj = i.next();
        if (!(obj instanceof TemporaryAnnotation))
          continue;

        TemporaryAnnotation annotation = (TemporaryAnnotation) obj;
        ReconcileAnnotationKey key = (ReconcileAnnotationKey) annotation.getKey();

        // then if this strategy knows how to add/remove this
        // partition type
        if (key != null && key.equals(fReconcileAnnotationKey)) {
          if (key.getScope() == ReconcileAnnotationKey.PARTIAL && (annotationOverlaps || annotation.getPosition().overlapsWith(region.getOffset(), region.getLength()))) {
            toRemove.add(annotation);
          }
          else if (key.getScope() == ReconcileAnnotationKey.TOTAL) {
            toRemove.add(annotation);
          }
        }
      }
    }
View Full Code Here

    fContentTypeId = contentTypeId;

    fSpellingContext = new SpellingContext();
    IContentType contentType = Platform.getContentTypeManager().getContentType(fContentTypeId);
    fSpellingContext.setContentType(contentType);
    fReconcileAnnotationKey = new ReconcileAnnotationKey(fSpellingStep, KEY_CONTENT_TYPE, ReconcileAnnotationKey.PARTIAL);

    /**
     * Inherit spelling region rules
     */
    List contexts = new ArrayList();
View Full Code Here

        Object obj = i.next();
        if (!(obj instanceof TemporaryAnnotation))
          continue;

        TemporaryAnnotation annotation = (TemporaryAnnotation) obj;
        ReconcileAnnotationKey key = (ReconcileAnnotationKey) annotation.getKey();

        // then if this strategy knows how to add/remove this
        // partition type
        if (key != null && key.equals(fReconcileAnnotationKey)) {
          if (key.getScope() == ReconcileAnnotationKey.PARTIAL && (annotationOverlaps || annotation.getPosition().overlapsWith(region.getOffset(), region.getLength()))) {
            toRemove.add(annotation);
          }
          else if (key.getScope() == ReconcileAnnotationKey.TOTAL) {
            toRemove.add(annotation);
          }
        }
      }
    }
View Full Code Here

      // length
      int length = validationMessage.getLength();
      if (length >= 0) {

        Position p = new Position(offset, length);
        ReconcileAnnotationKey key = createKey(getPartitionType(getDocument(), offset), getScope());

        // create an annotation w/ problem ID and fix info
        TemporaryAnnotation annotation = new TemporaryAnnotation(p, type, messageText, key);
        Object extraInfo = info.getAdditionalFixInfo();
        // https://bugs.eclipse.org/bugs/show_bug.cgi?id=170988
View Full Code Here

        String description = location.getDescription();
        String annotationType = (location.getFlags() == IOccurrencesFinder.F_WRITE_OCCURRENCE) ? "org.eclipse.php.ui.occurrences.write" : "org.eclipse.php.ui.occurrences"; //$NON-NLS-1$ //$NON-NLS-2$

        // create an annotation to mark the occurrence
        ReconcileAnnotationKey reconcileAnnotationKey = new ReconcileAnnotationKey(
            null, PHPPartitionTypes.PHP_DEFAULT,
            ReconcileAnnotationKey.TOTAL);
        TemporaryAnnotation annotation = new TemporaryAnnotation(
            position, annotationType, description,
            reconcileAnnotationKey) {
View Full Code Here

                String description = location.getDescription();
                String annotationType = (location.getFlags() == IOccurrencesFinder.F_WRITE_OCCURRENCE) ? "org.eclipse.php.ui.occurrences.write" : "org.eclipse.php.ui.occurrences"; //$NON-NLS-1$ //$NON-NLS-2$

                // create an annotation to mark the occurrence
                ReconcileAnnotationKey reconcileAnnotationKey = new ReconcileAnnotationKey(
                        null, PHPPartitionTypes.PHP_DEFAULT,
                        ReconcileAnnotationKey.TOTAL);
                TemporaryAnnotation annotation = new TemporaryAnnotation(
                        position, annotationType, description,
                        reconcileAnnotationKey) {
View Full Code Here

                String description = location.getDescription();
                String annotationType = (location.getFlags() == IOccurrencesFinder.F_WRITE_OCCURRENCE)
                        ? "org.eclipse.php.ui.occurrences.write" : "org.eclipse.php.ui.occurrences"; //$NON-NLS-1$ //$NON-NLS-2$

                // create an annotation to mark the occurrence
                ReconcileAnnotationKey reconcileAnnotationKey = new ReconcileAnnotationKey(
                        null, PHPPartitionTypes.PHP_DEFAULT,
                        ReconcileAnnotationKey.TOTAL);
                TemporaryAnnotation annotation = new TemporaryAnnotation(
                        position, annotationType, description,
                        reconcileAnnotationKey)
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.internal.reconcile.ReconcileAnnotationKey

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.