KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > progress > IJobProgressManagerListener


1 /*******************************************************************************
2  * Copyright (c) 2003, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.progress;
12
13 /**
14  * The IJobProgressManagerListener is a class that listeners to the JobProgressManager.
15  */

16 interface IJobProgressManagerListener {
17
18     /**
19      * Refresh the viewer as a result of an addition of info.
20      * @param info
21      */

22     void addJob(final JobInfo info);
23
24     /**
25      * Refresh the viewer as a result of an addition of group.
26      * @param info
27      */

28     void addGroup(final GroupInfo info);
29
30     /**
31      * Refresh the IJobProgressManagerListeners as a result of a change in info.
32      * @param info
33      */

34     public void refreshJobInfo(JobInfo info);
35
36     /**
37      * Refresh the IJobProgressManagerListeners as a result of a change in groups.
38      * @param info
39      */

40     public void refreshGroup(GroupInfo info);
41
42     /**
43      * Refresh the viewer for all jobs.
44      * @param info
45      */

46     void refreshAll();
47
48     /**
49      * Refresh the viewer as a result of a removal of info.
50      * @param info
51      */

52     void removeJob(final JobInfo info);
53
54     /**
55      * Refresh the viewer as a result of a removal of group.
56      * @param info
57      */

58     void removeGroup(final GroupInfo group);
59
60     /**
61      * Return whether or not this listener shows debug information.
62      * @return boolean
63      */

64     boolean showsDebug();
65 }
66
Popular Tags