01: /*******************************************************************************
02: * Copyright (c) 2004, 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 IProgressUpdateCollector is the interface that content providers
14: * conform to in order that the ProgressViewUpdater can talk to various
15: * types of content provider.
16: */
17: public interface IProgressUpdateCollector {
18:
19: /**
20: * Refresh the viewer.
21: */
22: void refresh();
23:
24: /**
25: * Refresh the elements.
26: * @param elements
27: */
28: void refresh(Object[] elements);
29:
30: /**
31: * Add the elements.
32: * @param elements Array of JobTreeElement
33: */
34: void add(Object[] elements);
35:
36: /**
37: * Remove the elements.
38: * @param elements Array of JobTreeElement
39: */
40: void remove(Object[] elements);
41:
42: }
|