RSE
Release 1.0

org.eclipse.rse.subsystems.files.dstore.subsystem
Class RemoteFilePropertyChangeListener

java.lang.Object
  extended byorg.eclipse.rse.subsystems.files.dstore.subsystem.RemoteFilePropertyChangeListener
All Implemented Interfaces:
ICommunicationsListener, org.eclipse.dstore.extra.internal.extra.IDomainListener

public class RemoteFilePropertyChangeListener
extends Object
implements org.eclipse.dstore.extra.internal.extra.IDomainListener, ICommunicationsListener


Nested Class Summary
 class RemoteFilePropertyChangeListener.DecorateJob
           
protected static class RemoteFilePropertyChangeListener.FindShell
           
 
Field Summary
protected  HashMap _decorateJobs
           
protected  FileServiceSubSystem _fileSubSystem
           
protected  boolean _networkDown
           
protected  SystemRegistry _registry
           
protected  org.eclipse.dstore.core.model.DataStore dataStore
           
protected  Shell shell
           
protected  IConnectorService system
           
 
Constructor Summary
RemoteFilePropertyChangeListener(Shell shell, IConnectorService system, org.eclipse.dstore.core.model.DataStore dataStore, FileServiceSubSystem fileSS)
           
 
Method Summary
 void communicationsStateChange(CommunicationsEvent e)
          This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes.
 void domainChanged(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
           
 void finish()
           
 org.eclipse.dstore.core.model.DataStore getDataStore()
           
protected  RemoteFilePropertyChangeListener.DecorateJob getDecorateJob(IRemoteFile file)
           
 Shell getShell()
           
 boolean isPassiveCommunicationsListener()
          This method determines if the communications listener is a passive or active listener.
 boolean listeningTo(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
           
protected  void putDecorateJob(IRemoteFile file, RemoteFilePropertyChangeListener.DecorateJob job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataStore

protected org.eclipse.dstore.core.model.DataStore dataStore

_fileSubSystem

protected FileServiceSubSystem _fileSubSystem

shell

protected Shell shell

_registry

protected SystemRegistry _registry

system

protected IConnectorService system

_networkDown

protected boolean _networkDown

_decorateJobs

protected HashMap _decorateJobs
Constructor Detail

RemoteFilePropertyChangeListener

public RemoteFilePropertyChangeListener(Shell shell,
                                        IConnectorService system,
                                        org.eclipse.dstore.core.model.DataStore dataStore,
                                        FileServiceSubSystem fileSS)
Method Detail

getDataStore

public org.eclipse.dstore.core.model.DataStore getDataStore()

listeningTo

public boolean listeningTo(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
Specified by:
listeningTo in interface org.eclipse.dstore.extra.internal.extra.IDomainListener
See Also:
IDomainListener.listeningTo(DomainEvent)

finish

public void finish()

domainChanged

public void domainChanged(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
Specified by:
domainChanged in interface org.eclipse.dstore.extra.internal.extra.IDomainListener
See Also:
IDomainListener.domainChanged(DomainEvent)

getDecorateJob

protected RemoteFilePropertyChangeListener.DecorateJob getDecorateJob(IRemoteFile file)

putDecorateJob

protected void putDecorateJob(IRemoteFile file,
                              RemoteFilePropertyChangeListener.DecorateJob job)

getShell

public Shell getShell()

communicationsStateChange

public void communicationsStateChange(CommunicationsEvent e)
Description copied from interface: ICommunicationsListener
This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes. The state field in CommunicationsEvent determines which state change is about to or has occured.

Specified by:
communicationsStateChange in interface ICommunicationsListener
See Also:
ICommunicationsListener.communicationsStateChange(CommunicationsEvent)

isPassiveCommunicationsListener

public boolean isPassiveCommunicationsListener()
Description copied from interface: ICommunicationsListener
This method determines if the communications listener is a passive or active listener. Typically a passive listener registers with the communications system and responds to events as they occur. An active listener typically registeres with the communications system only for the duration of the task (i.e. user editing a file, or outstanding communications request.) The user will be prompted on a disconnect if there are any active communication listeners registered.

Specified by:
isPassiveCommunicationsListener in interface ICommunicationsListener
Returns:
false if the communications listener is an active listener, true if the communications listener is a passive listener.
See Also:
ICommunicationsListener.isPassiveCommunicationsListener()

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.