org.eclipse.rse.files.ui.resources
Class SystemUniversalTempFileListener
java.lang.Object
org.eclipse.rse.files.ui.resources.SystemTempFileListener
org.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.
| 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 |
SystemUniversalTempFileListener
public SystemUniversalTempFileListener()
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:
subsystem - the remote file subsystem of the remote filetempFile - the temporary fileresourceId - the remote filemonitor - progress monitor
upload
public void upload(IRemoteFileSubSystem fs,
IRemoteFile remoteFile,
IFile tempFile,
SystemIFileProperties properties,
long storedModifiedStamp,
SystemEditableRemoteFile editable,
IProgressMonitor monitor)
Copyright (c) IBM Corporation and others 2000, 2007. All Rights Reserved.