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;
14 //import org.eclipse.jface.text.Assert;
15 import org.eclipse.core.runtime.Assert;
17 public final class AnnotationType {
19 public static final AnnotationType ALL = new AnnotationType();
21 public static final AnnotationType UNKNOWN = new AnnotationType();
23 public static final AnnotationType BOOKMARK = new AnnotationType();
25 public static final AnnotationType TASK = new AnnotationType();
27 public static final AnnotationType ERROR = new AnnotationType();
29 public static final AnnotationType WARNING = new AnnotationType();
31 public static final AnnotationType SEARCH = new AnnotationType();
33 private AnnotationType() {
36 public String toString() {
38 return "AnnotationType.ALL"; //$NON-NLS-1$
41 return "AnnotationType.UNKNOWN"; //$NON-NLS-1$
44 return "AnnotationType.BOOKMARK"; //$NON-NLS-1$
47 return "AnnotationType.TASK"; //$NON-NLS-1$
50 return "AnnotationType.ERROR"; //$NON-NLS-1$
53 return "AnnotationType.WARNING"; //$NON-NLS-1$
56 return "AnnotationType.SEARCH"; //$NON-NLS-1$
58 Assert.isLegal(false);
59 return ""; //$NON-NLS-1$