1
2
3
4
5
6
7
8
9
10
11
12 package sk.uniba.euromath.plugin.views.outline.items;
13
14 import org.w3c.dom.Comment;
15
16 import sk.uniba.euromath.plugin.views.outline.OutlineConsts;
17
18 /***
19 * @author TV Created on 21.5.2004
20 *
21 */
22 public class CommentOutlineItem extends LeafOutlineItem {
23
24 /***
25 * Constructor.
26 *
27 * @param comment
28 */
29 public CommentOutlineItem(Comment comment) {
30 super(comment);
31 }
32
33 /***
34 * @return representing comment
35 */
36 public Comment getComment() {
37 return (Comment) getModel();
38 }
39
40 @Override
41 public String getImageKey() {
42 return OutlineConsts.COMM_KEY;
43 }
44
45 @Override
46 public String toString() {
47 return "<!-- " + getComment().getData() + " -->";
48 }
49
50 }