replace deprecated org.eclipse.jface.text.Assert with org.eclipse.core.runtime.Assert
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / 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 //incastrix
14 //import org.eclipse.jface.text.Assert;
15 import org.eclipse.core.runtime.Assert;
16
17 public final class AnnotationType {
18
19         public static final AnnotationType ALL = new AnnotationType();
20
21         public static final AnnotationType UNKNOWN = new AnnotationType();
22
23         public static final AnnotationType BOOKMARK = new AnnotationType();
24
25         public static final AnnotationType TASK = new AnnotationType();
26
27         public static final AnnotationType ERROR = new AnnotationType();
28
29         public static final AnnotationType WARNING = new AnnotationType();
30
31         public static final AnnotationType SEARCH = new AnnotationType();
32
33         private AnnotationType() {
34         }
35
36         public String toString() {
37                 if (this == ALL)
38                         return "AnnotationType.ALL"; //$NON-NLS-1$
39
40                 if (this == UNKNOWN)
41                         return "AnnotationType.UNKNOWN"; //$NON-NLS-1$
42
43                 if (this == BOOKMARK)
44                         return "AnnotationType.BOOKMARK"; //$NON-NLS-1$
45
46                 if (this == TASK)
47                         return "AnnotationType.TASK"; //$NON-NLS-1$
48
49                 if (this == ERROR)
50                         return "AnnotationType.ERROR"; //$NON-NLS-1$
51
52                 if (this == WARNING)
53                         return "AnnotationType.WARNING"; //$NON-NLS-1$
54
55                 if (this == SEARCH)
56                         return "AnnotationType.SEARCH"; //$NON-NLS-1$
57
58                 Assert.isLegal(false);
59                 return ""; //$NON-NLS-1$
60         }
61 }