Remote Systems
v6.4.1

com.ibm.etools.systems.core
Class SystemUniversalTempFileListener

java.lang.Object
  extended bycom.ibm.etools.systems.core.SystemTempFileListener
      extended bycom.ibm.etools.systems.core.SystemUniversalTempFileListener
All Implemented Interfaces:
Runnable

public class SystemUniversalTempFileListener
extends SystemTempFileListener

This class manages listening for resource changes within our temp file project It is used for listening to saves made in the editor so that we can upload changes to the remote files. This class specifically handles universal files and doesn't do anything for iSeries. For iSeries members we need to subclass this.


Field Summary
static String copyright
           
 
Constructor Summary
SystemUniversalTempFileListener()
           
 
Method Summary
protected  boolean doesHandle(SubSystem subsystem)
          Indicate whether this tempfile listener handles the specified
protected  void doResourceSynchronization(SubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
          Synchronize the specified remote file with the temporary local file using the specified remote file subsystem.
 SystemEditableRemoteFile getEditedFile(IRemoteFile file)
           
static SystemUniversalTempFileListener getListener()
          Return singleton
 void registerEditedFile(SystemEditableRemoteFile editMember)
           
 void unregisterEditedFile(SystemEditableRemoteFile editMember)
           
 void upload(RemoteFileSubSystem fs, IRemoteFile remoteFile, IFile tempFile, SystemIFileProperties properties, long storedModifiedStamp, SystemEditableRemoteFile editable, IProgressMonitor monitor)
           
 
Methods inherited from class com.ibm.etools.systems.core.SystemTempFileListener
addIgnoreFile, getRunnableContext, isIgnorable, preScanForTempFiles, processDelta, removeIgnoreFile, resourceChanged, run, run, setEnabled, synchronizeTempWithRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemUniversalTempFileListener

public SystemUniversalTempFileListener()
Method Detail

getListener

public static SystemUniversalTempFileListener getListener()
Return singleton


registerEditedFile

public void registerEditedFile(SystemEditableRemoteFile editMember)

unregisterEditedFile

public void unregisterEditedFile(SystemEditableRemoteFile editMember)

getEditedFile

public SystemEditableRemoteFile getEditedFile(IRemoteFile file)

doesHandle

protected boolean doesHandle(SubSystem subsystem)
Indicate whether this tempfile listener handles the specified

Specified by:
doesHandle in class SystemTempFileListener
Parameters:
subsystem - the subsystem to check
Returns:
whether it handles this or not

doResourceSynchronization

protected void doResourceSynchronization(SubSystem subsystem,
                                         IFile tempFile,
                                         String resourceId,
                                         IProgressMonitor monitor)
Synchronize the specified remote file with the temporary local file using the specified remote file subsystem.

Specified by:
doResourceSynchronization in class SystemTempFileListener
Parameters:
tempFile - the temporary file
monitor - the progress monitor

upload

public void upload(RemoteFileSubSystem fs,
                   IRemoteFile remoteFile,
                   IFile tempFile,
                   SystemIFileProperties properties,
                   long storedModifiedStamp,
                   SystemEditableRemoteFile editable,
                   IProgressMonitor monitor)

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.