fix some navigation action labels
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / AnnotationType.java
1 /**********************************************************************
2 Copyright (c) 2000, 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v10.html
7
8 Contributors:
9     IBM Corporation - Initial implementation
10 **********************************************************************/
11 package net.sourceforge.phpeclipse.phpeditor;
12
13 import org.eclipse.jface.text.Assert;
14
15 public final class AnnotationType {
16         
17         public static final AnnotationType ALL= new AnnotationType();
18         public static final AnnotationType UNKNOWN= new AnnotationType();
19         public static final AnnotationType BOOKMARK= new AnnotationType();
20         public static final AnnotationType TASK= new AnnotationType();
21         public static final AnnotationType ERROR= new AnnotationType();
22         public static final AnnotationType WARNING= new AnnotationType();
23         public static final AnnotationType SEARCH= new AnnotationType();
24         
25         private AnnotationType() {
26         }
27
28         public String toString() {
29                 if (this == ALL)
30                         return "AnnotationType.ALL"; //$NON-NLS-1$
31                 
32                 if (this == UNKNOWN)
33                         return "AnnotationType.UNKNOWN"; //$NON-NLS-1$
34
35                 if (this == BOOKMARK)
36                         return "AnnotationType.BOOKMARK"; //$NON-NLS-1$
37
38                 if (this == TASK)
39                         return "AnnotationType.TASK"; //$NON-NLS-1$
40                 
41                 if (this == ERROR)
42                         return "AnnotationType.ERROR"; //$NON-NLS-1$
43
44                 if (this == WARNING)
45                         return "AnnotationType.WARNING"; //$NON-NLS-1$
46
47                 if (this == SEARCH)
48                         return "AnnotationType.SEARCH"; //$NON-NLS-1$
49
50                 Assert.isLegal(false);
51                 return ""; //$NON-NLS-1$
52         }
53 }