Get the default set of annotations. The set is created if it doesn't exist yet.
()
| 695 | * yet. |
| 696 | */ |
| 697 | @Override |
| 698 | public AnnotationSet getAnnotations() { |
| 699 | if(defaultAnnots == null) { |
| 700 | defaultAnnots = new AnnotationSetImpl(this,""); |
| 701 | fireAnnotationSetAdded(new DocumentEvent(this, |
| 702 | DocumentEvent.ANNOTATION_SET_ADDED, "")); |
| 703 | }// if |
| 704 | return defaultAnnots; |
| 705 | } // getAnnotations() |
| 706 | |
| 707 | /** |
| 708 | * Get a named set of annotations. Creates a new set if one with this name |
no test coverage detected