|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.services.dstore.util.StatusChangeListener
| Nested Class Summary | |
|---|---|
protected static class |
StatusChangeListener.FindShell
|
| Field Summary | |
|---|---|
protected boolean |
_networkDown
|
protected boolean |
cancelled
|
protected boolean |
done
|
protected Vector |
historyOfTargets
|
protected IProgressMonitor |
monitor
|
protected Shell |
shell
|
protected org.eclipse.dstore.core.model.DataElement |
target
|
| Constructor Summary | |
|---|---|
StatusChangeListener(Shell shell,
IProgressMonitor monitor)
|
|
StatusChangeListener(Shell shell,
IProgressMonitor monitor,
org.eclipse.dstore.core.model.DataElement target)
Construct a StatusChangeListener |
|
| Method Summary | |
|---|---|
protected boolean |
determineStatusDone()
Determines whether the status is done. |
void |
domainChanged(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
|
Shell |
getShell()
|
org.eclipse.dstore.core.model.DataElement |
getStatus()
|
boolean |
isNetworkDown()
Test if the StatusChangeListener returned because the network connection to the remote system was broken. |
boolean |
isPassiveCommunicationsListener()
|
boolean |
listeningTo(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
|
void |
setDone(boolean done)
setDone(boolean) |
void |
setStatus(org.eclipse.dstore.core.model.DataElement p_target)
|
org.eclipse.dstore.core.model.DataElement |
waitForUpdate()
Wait for the the status DataElement to be refreshed |
org.eclipse.dstore.core.model.DataElement |
waitForUpdate(int wait)
|
boolean |
wasCancelled()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.eclipse.dstore.core.model.DataElement target
protected Shell shell
protected IProgressMonitor monitor
protected boolean _networkDown
protected boolean done
protected boolean cancelled
protected Vector historyOfTargets
| Constructor Detail |
public StatusChangeListener(Shell shell,
IProgressMonitor monitor,
org.eclipse.dstore.core.model.DataElement target)
shell - A valid Shell objectmonitor - A progress monitor if you want this object to check if
the user presses cancel while waiting for the status object
to be updatedtarget - The status DataElement for which you wish to wait for an update
public StatusChangeListener(Shell shell,
IProgressMonitor monitor)
| Method Detail |
public void setStatus(org.eclipse.dstore.core.model.DataElement p_target)
public org.eclipse.dstore.core.model.DataElement getStatus()
public boolean listeningTo(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
listeningTo in interface org.eclipse.dstore.extra.internal.extra.IDomainListenerIDomainListener.listeningTo(DomainEvent)public void domainChanged(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
domainChanged in interface org.eclipse.dstore.extra.internal.extra.IDomainListenerIDomainListener.domainChanged(DomainEvent)public void setDone(boolean done)
public Shell getShell()
public boolean wasCancelled()
public org.eclipse.dstore.core.model.DataElement waitForUpdate()
throws InterruptedException
InterruptedException - if the thread was interrupted.
public org.eclipse.dstore.core.model.DataElement waitForUpdate(int wait)
throws InterruptedException
InterruptedExceptionprotected boolean determineStatusDone()
true if status done, false otherwise.public boolean isPassiveCommunicationsListener()
ICommunicationsListener.isPassiveCommunicationsListener()public boolean isNetworkDown()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||