KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > editor > outline > IProblem


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation 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 API and implementation
10  *******************************************************************************/

11 package org.eclipse.ant.internal.ui.editor.outline;
12
13 import org.eclipse.jface.text.IRegion;
14
15
16 public interface IProblem extends IRegion {
17
18     /**
19      * Answer a localized, human-readable message string which describes the problem.
20      * The message has been "escaped" to handle special characters.
21      *
22      * @return a localized, human-readable message string which describes the problem
23      */

24     String JavaDoc getMessage();
25     
26     /**
27      * Answer a localized, human-readable message string which describes the problem.
28      * The message is in its original form; special characters have not been escaped.
29      *
30      * @return localized, human-readable message string which describes the problem
31      */

32     String JavaDoc getUnmodifiedMessage();
33
34     /**
35      * Checks the severity to see if the Error bit is set.
36      *
37      * @return true if the Error bit is set for the severity, false otherwise
38      */

39     boolean isError();
40
41     /**
42      * Checks the severity to see if the Error bit is not set.
43      *
44      * @return true if the Error bit is not set for the severity, false otherwise
45      */

46     boolean isWarning();
47     
48     /**
49      * Returns the line number of this problem.
50      *
51      * @return the line number of this problem
52      */

53     int getLineNumber();
54 }
Popular Tags