KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > ajde > TaskListManager


1
2 /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3  *
4  * This file is part of the IDE support for the AspectJ(tm)
5  * programming language; see http://aspectj.org
6  *
7  * The contents of this file are subject to the Mozilla Public License
8  * Version 1.1 (the "License"); you may not use this file except in
9  * compliance with the License. You may obtain a copy of the License at
10  * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/.
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is AspectJ.
18  *
19  * The Initial Developer of the Original Code is Xerox Corporation. Portions
20  * created by Xerox Corporation are Copyright (C) 1999-2002 Xerox Corporation.
21  * All Rights Reserved.
22  *
23  * Contributor(s):
24  */

25
26 package org.aspectj.ajde;
27
28 import org.aspectj.asm.*;
29
30 /**
31  * Used for displaying tasks, such as compiler messages, to the user.
32  *
33  * @author Mik Kersten
34  */

35 public interface TaskListManager {
36
37 // public static int ERROR_MESSAGE = 0;
38
//
39
// public static int WARNING_MESSAGE = 1;
40
//
41
// public static int INFO_MESSAGE = 2;
42

43     /**
44      * Add a task associated with a particular line in a source file.
45      *
46      * @param message description of compiler message
47      * @param sourceLocation can be null
48      * @param kind one of <code>ERROR_MESSAGE, WARNING_MESSAGE, INFO_MESSAGE</code>
49      */

50     public void addSourcelineTask(String JavaDoc message, SourceLocation sourceLocation, StructureMessage.Kind kind);
51
52     /**
53      * Add a task associated with the current project.
54      *
55      * @param message description of compiler message
56      * @param kind one of <code>ERROR_MESSAGE, WARNING_MESSAGE, INFO_MESSAGE</code>
57      */

58     public void addProjectTask(String JavaDoc message, StructureMessage.Kind kind);
59     
60     /**
61      * Delete all of the currently active tasks.
62      */

63     public void clearTasks();
64 }
65
66
Popular Tags