01: /*******************************************************************************
02: * Copyright (c) 2003, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.progress;
11:
12: /**
13: * The IJobProgressManagerListener is a class that listeners to the JobProgressManager.
14: */
15: interface IJobProgressManagerListener {
16:
17: /**
18: * Refresh the viewer as a result of an addition of info.
19: * @param info
20: */
21: void addJob(final JobInfo info);
22:
23: /**
24: * Refresh the viewer as a result of an addition of group.
25: * @param info
26: */
27: void addGroup(final GroupInfo info);
28:
29: /**
30: * Refresh the IJobProgressManagerListeners as a result of a change in info.
31: * @param info
32: */
33: public void refreshJobInfo(JobInfo info);
34:
35: /**
36: * Refresh the IJobProgressManagerListeners as a result of a change in groups.
37: * @param info
38: */
39: public void refreshGroup(GroupInfo info);
40:
41: /**
42: * Refresh the viewer for all jobs.
43: * @param info
44: */
45: void refreshAll();
46:
47: /**
48: * Refresh the viewer as a result of a removal of info.
49: * @param info
50: */
51: void removeJob(final JobInfo info);
52:
53: /**
54: * Refresh the viewer as a result of a removal of group.
55: * @param info
56: */
57: void removeGroup(final GroupInfo group);
58:
59: /**
60: * Return whether or not this listener shows debug information.
61: * @return boolean
62: */
63: boolean showsDebug();
64: }
|