com.ibm.etools.systems.core
Class SystemUniversalTempFileListener
java.lang.Object
com.ibm.etools.systems.core.SystemTempFileListener
com.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.
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 |
copyright
public static final String copyright
- See Also:
- Constant Field Values
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(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 filemonitor
- the progress monitor
upload
public void upload(RemoteFileSubSystem fs,
IRemoteFile remoteFile,
IFile tempFile,
SystemIFileProperties properties,
long storedModifiedStamp,
SystemEditableRemoteFile editable,
IProgressMonitor monitor)
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.