9131a02950bd78290f13f417198fb9549c1b6f03
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.bulkeditor
;
12 import org
.eclipse
.core
.runtime
.Assert
;
13 import org
.eclipse
.jface
.text
.source
.Annotation
;
16 * An <code>Annotation</code> which spans an entire line and holds an object associated
17 * with the line in an <code>IEntityContainer</code>.
23 public class LineAnnotation
extends Annotation
{
25 public static final String TYPE_GENERIC
= Annotation
.TYPE_UNKNOWN
;
27 private IEntityContainer
<?
> container
;
29 public LineAnnotation(IEntityContainer
<?
> container
) {
30 Assert
.isNotNull(container
);
31 this.container
= container
;
32 setType(TYPE_GENERIC
);
35 public IEntityContainer
<?
> getEntityContainer() {
40 public String
getText() {
41 return container
.getEditableText();
45 public void markDeleted(boolean deleted
) {
46 super.markDeleted(deleted
);
47 container
.markAsDeleted();
51 public void setText(String text
) {
53 container
.setText(text
);
57 public String
toString() {