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
9 IBM Corporation - Initial implementation
10 **********************************************************************/
11 package net.sourceforge.phpeclipse.phpeditor;
13 import org.eclipse.jface.text.Assert;
15 public final class AnnotationType {
17 public static final AnnotationType ALL = new AnnotationType();
19 public static final AnnotationType UNKNOWN = new AnnotationType();
21 public static final AnnotationType BOOKMARK = new AnnotationType();
23 public static final AnnotationType TASK = new AnnotationType();
25 public static final AnnotationType ERROR = new AnnotationType();
27 public static final AnnotationType WARNING = new AnnotationType();
29 public static final AnnotationType SEARCH = new AnnotationType();
31 private AnnotationType() {
34 public String toString() {
36 return "AnnotationType.ALL"; //$NON-NLS-1$
39 return "AnnotationType.UNKNOWN"; //$NON-NLS-1$
42 return "AnnotationType.BOOKMARK"; //$NON-NLS-1$
45 return "AnnotationType.TASK"; //$NON-NLS-1$
48 return "AnnotationType.ERROR"; //$NON-NLS-1$
51 return "AnnotationType.WARNING"; //$NON-NLS-1$
54 return "AnnotationType.SEARCH"; //$NON-NLS-1$
56 Assert.isLegal(false);
57 return ""; //$NON-NLS-1$