Examples of removeAnnotation()


Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

        }
        if (doRemove) {
          if (supportsBatchReplace)
            toBeRemovedAnnotations.add(annotation);
          else
            model.removeAnnotation(annotation);
        }
      }
    }

    if (supportsBatchReplace && !toBeRemovedAnnotations.isEmpty()) {
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

    if(!isAnnotationDisplayed) {
      return;
    }
    final IAnnotationModel model = viewer.getAnnotationModel();
    if(model != null) {
      model.removeAnnotation(annotation);
      isAnnotationDisplayed = false;
    }
  }
 
  void displayHighlight(SourceViewer viewer) {
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.removeAnnotation()

                    pModel.expand(annotation);
                    Position newPos = new Position(pos.offset-selectionOffset,pos.length);
                    annotationList.add(new AnnotationPosition(annotation,newPos,collapsed));
                   
                    // Remove the annotation for now.
                    pModel.removeAnnotation(annotation);
                }
                // The annotation starts in the selection, but doesn't end in it.
                else if(pos.offset >= selectionOffset
                        && pos.offset <= selectionOffset + length
                        && pos.offset + pos.length >= selectionOffset + length) {
View Full Code Here

Examples of org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader.removeAnnotation()

   public <T extends Annotation> T removeAnnotation(Class<T> annotationType)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return null;
      return delegate.removeAnnotation(annotationType);
   }

   public MetaDatasItem retrieveMetaData()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
View Full Code Here

Examples of org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader.removeAnnotation()

   public <T extends Annotation> T removeAnnotation(Class<T> annotationType)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return null;
      return delegate.removeAnnotation(annotationType);
   }

   public MetaDatasItem retrieveMetaData()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
View Full Code Here

Examples of org.jboss.metadata.plugins.loader.thread.ThreadLocalMetaDataLoader.removeAnnotation()

      for(MetaDataRetrieval rdr : retrievals)
         assertFalse(rdr.toString(), rdr.isEmpty());

      mmdl.removeMetaData(TestAnnotation.class);
      assertTrue(mmdl.toString(), mmdl.isEmpty());
      tlmdl.removeAnnotation(TestAnnotation.class);
      assertTrue(tlmdl.toString(), tlmdl.isEmpty());     

      MetaDataRetrieval emptyRetrieval = new MemoryMetaDataLoader();
      MetaDataContext emptyContext = new AbstractMetaDataContext(emptyRetrieval);
View Full Code Here

Examples of org.jboss.metadata.spi.MutableMetaData.removeAnnotation()

   }

   public <T extends Annotation> T removeAnnotation(Signature signature, Class<T> annotationType)
   {
      MutableMetaData component = initRetrieval(signature);
      return component.removeAnnotation(annotationType);
   }

   public <T> T removeMetaData(Signature signature, Class<T> type)
   {
      MutableMetaData component = initRetrieval(signature);
View Full Code Here

Examples of org.jboss.metadata.spi.loader.MutableMetaDataLoader.removeAnnotation()

      expectedItems = new AnnotationItem[] { annotationItem1Child, annotationItem2Child };
      assertUnorderedArrayEquals(expectedItems, item.getAnnotations());
      expected = new Annotation[] { annotation1Child, annotation2 };
      assertUnorderedArrayEquals(expected, item.getValue());
     
      childLoader.removeAnnotation(TestAnnotation1.class);

      expectedItems = new AnnotationItem[] { annotationItem1Parent, annotationItem2Child };
      assertUnorderedArrayEquals(expectedItems, item.getAnnotations());
      expected = new Annotation[] { annotation1, annotation2 };
      assertUnorderedArrayEquals(expected, item.getValue());
View Full Code Here

Examples of org.jboss.metadata.spi.loader.MutableMetaDataLoader.removeAnnotation()

      expectedItems = new AnnotationItem[] { annotationItem2Child };
      assertUnorderedArrayEquals(expectedItems, item.getAnnotations());
      expected = new Annotation[] { annotation2 };
      assertUnorderedArrayEquals(expected, item.getValue());
     
      childLoader.removeAnnotation(TestAnnotation2.class);

      assertTrue(item.getAnnotations().length == 0);
      assertTrue(item.getValue().length == 0);
   }
View Full Code Here

Examples of org.jfree.chart.plot.XYPlot.removeAnnotation()

        XYTextAnnotation a2 = new XYTextAnnotation("X", 3.0, 4.0);
        XYTextAnnotation a3 = new XYTextAnnotation("X", 1.0, 2.0);
        plot.addAnnotation(a1);
        plot.addAnnotation(a2);
        plot.addAnnotation(a3);
        plot.removeAnnotation(a2);
        XYTextAnnotation x = (XYTextAnnotation) plot.getAnnotations().get(0);
        assertEquals(x, a1);

        // now remove a3, but since a3.equals(a1), this will in fact remove
        // a1...
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.