public class ComponentUpdatePart
extends java.lang.Object
Constructor and Description |
---|
ComponentUpdatePart(WorkspaceComponent parent,
java.lang.Runnable runnable,
java.lang.String description)
Creates a new instance with the given parent, runnable, description using
this object as the lock.
|
ComponentUpdatePart(WorkspaceComponent parent,
java.lang.Runnable runnable,
java.lang.String description,
java.lang.Object lock)
Creates a new instance with the given parent, runnable, description and
lock.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns the description for this part.
|
(package private) java.lang.Object |
getLock()
Returns the lock for this object.
|
WorkspaceComponent |
getParent()
Returns the parent of this component.
|
(package private) java.lang.Runnable |
getUpdate(CompletionSignal signal)
Get's a runnable that counts down the latch after completion.
|
public ComponentUpdatePart(WorkspaceComponent parent, java.lang.Runnable runnable, java.lang.String description, java.lang.Object lock)
parent
- The parent component.runnable
- The task to execute.description
- The description of the part.lock
- The lock to use.public ComponentUpdatePart(WorkspaceComponent parent, java.lang.Runnable runnable, java.lang.String description)
parent
- The parent component.runnable
- The task to execute.description
- The description of the part.public WorkspaceComponent getParent()
java.lang.Object getLock()
public java.lang.String getDescription()
java.lang.Runnable getUpdate(CompletionSignal signal)
signal
- the latch to count down on.