Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.source.projection
Class AnnotationBag

java.lang.Object
  extended by 

org.eclipse.jface.text.source.Annotation
      extended by 
org.eclipse.jface.text.source.projection.AnnotationBag

public class AnnotationBag
extends Annotation

A bag of annotations.

This class is not intended to be subclassed.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
 
Fields inherited from class org.eclipse.jface.text.source. Annotation
TYPE_UNKNOWN
 
Constructor Summary
AnnotationBag ( String type)
          Creates a new annotation bag.
 
Method Summary
 void add ( Annotation annotation)
          Adds the given annotation to the annotation bag.
 boolean isEmpty ()
          Returns whether the annotation bag is empty.
  Iterator iterator ()
          Returns an iterator for all annotation inside this annotation bag or null if the bag is empty.
 void remove ( Annotation annotation)
          Removes the given annotation from the annotation bag.
 
Methods inherited from class org.eclipse.jface.text.source. Annotation
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationBag

public AnnotationBag(
String type)
Creates a new annotation bag.

Parameters:
type - the annotation type
Method Detail

add

public void add(
Annotation annotation)
Adds the given annotation to the annotation bag.

Parameters:
annotation - the annotation to add

remove

public void remove(
Annotation annotation)
Removes the given annotation from the annotation bag.

Parameters:
annotation - the annotation to remove

isEmpty

public boolean isEmpty()
Returns whether the annotation bag is empty.

Returns:
true if the annotation bag is empty, false otherwise

iterator

public 
Iterator iterator()
Returns an iterator for all annotation inside this annotation bag or null if the bag is empty.

Returns:
an iterator for all annotations in the bag or null
Since:
3.1

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire