blob: f39e70e6efefee585ae94207e9fadeccf66c5944 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2006 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal.progress;
/**
* The IJobProgressManagerListener is a class that listeners to the
* JobProgressManager.
*/
interface IJobProgressManagerListener {
/**
* Refresh the viewer as a result of an addition of info.
*
* @param info
*/
void addJob(final JobInfo info);
/**
* Refresh the viewer as a result of an addition of group.
*
* @param info
*/
void addGroup(final GroupInfo info);
/**
* Refresh the IJobProgressManagerListeners as a result of a change in info.
*
* @param info
*/
void refreshJobInfo(JobInfo info);
/**
* Refresh the IJobProgressManagerListeners as a result of a change in groups.
*
* @param info
*/
void refreshGroup(GroupInfo info);
/**
* Refresh the viewer for all jobs.
*
* @param info
*/
void refreshAll();
/**
* Refresh the viewer as a result of a removal of info.
*
* @param info
*/
void removeJob(final JobInfo info);
/**
* Refresh the viewer as a result of a removal of group.
*
* @param group
*/
void removeGroup(final GroupInfo group);
/**
* Return whether or not this listener shows debug information.
*
* @return boolean
*/
boolean showsDebug();
}