RSE
Release 1.0

org.eclipse.rse.files.ui.resources
Class SystemUniversalTempFileListener

java.lang.Object
  extended byorg.eclipse.rse.files.ui.resources.SystemTempFileListener
      extended byorg.eclipse.rse.files.ui.resources.SystemUniversalTempFileListener
All Implemented Interfaces:
EventListener, IResourceChangeListener

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.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.rse.files.ui.resources.SystemTempFileListener
SystemTempFileListener.RefreshResourcesJob, SystemTempFileListener.RefreshResourcesUIJob
 
Constructor Summary
SystemUniversalTempFileListener()
           
 
Method Summary
protected  boolean doesHandle(ISubSystem subsystem)
          Indicate whether this tempfile listener handles the specified
protected  void doResourceSynchronization(ISubSystem 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(IRemoteFileSubSystem fs, IRemoteFile remoteFile, IFile tempFile, SystemIFileProperties properties, long storedModifiedStamp, SystemEditableRemoteFile editable, IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.rse.files.ui.resources.SystemTempFileListener
addIgnoreFile, checkLocalChanges, getRunnableContext, isIgnorable, preScanForTempFiles, processDelta, refreshRemoteResource, removeIgnoreFile, resourceChanged, setEnabled, synchronizeTempWithRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(ISubSystem 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(ISubSystem 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(IRemoteFileSubSystem fs,
                   IRemoteFile remoteFile,
                   IFile tempFile,
                   SystemIFileProperties properties,
                   long storedModifiedStamp,
                   SystemEditableRemoteFile editable,
                   IProgressMonitor monitor)

RSE
Release 1.0

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