blob: 1b4b1518a12689aef8997c35d0dfff0b91097647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/*******************************************************************************
* Copyright (c) 2004, 2015 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;
import org.eclipse.core.runtime.jobs.Job;
/**
* The IAnimationProcessor is the class that handles the animation of
* the animation item.
*/
interface IAnimationProcessor {
/**
* Add an item to the list of the items we are updating.
* @param item
*/
void addItem(AnimationItem item);
/**
* Remove an item from the list of the items we are updating.
* @param item
*/
void removeItem(AnimationItem item);
/**
* Return whether or not the receiver has any items.
*
* @return true if there are items
*/
boolean hasItems();
/**
* Animation has begun. Inform any listeners. This is called
* from the UI Thread.
*/
void animationStarted();
/**
* Animation has finished. Inform any listeners. This is called
* from the UI Thread.
*/
void animationFinished();
/**
* Get the preferred width of the types of items this processor manages.
*
* @return preferred width
*/
int getPreferredWidth();
/**
* Return whether or not this is a job used by the processor.
*
* @param job
* @return true if this job is used by the processor
*/
boolean isProcessorJob(Job job);
}
|