|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.files.ui.resources.SystemTempFileListener
public abstract class 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.
Nested Class Summary | |
---|---|
class |
SystemTempFileListener.RefreshResourcesJob
|
class |
SystemTempFileListener.RefreshResourcesUIJob
Deprecated. don't use this class, it's only here because to remove it would be an API change, and we can't do that until 3.0. Instead of using this, SynchResourcesJob should be used. |
Constructor Summary | |
---|---|
SystemTempFileListener()
|
Method Summary | |
---|---|
void |
addIgnoreFile(IFile toIgnore)
|
protected void |
checkLocalChanges(IResourceDelta delta,
List changes)
|
protected abstract boolean |
doesHandle(ISubSystem subsystem)
Indicate whether this tempfile listener handles the specified |
protected abstract 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. |
protected IRunnableContext |
getRunnableContext(Shell shell)
|
boolean |
isIgnorable(IFile file)
|
protected boolean |
preScanForTempFiles(IResourceDelta delta)
Prescan for changes that correspond the temp files project |
protected void |
processDelta(IResourceDelta delta)
Check the delta for changed temporary files. |
protected void |
refreshRemoteResource(Object parent)
|
void |
removeIgnoreFile(IFile toNotIgnore)
|
void |
resourceChanged(IResourceChangeEvent event)
|
void |
setEnabled(boolean flag)
|
protected void |
synchronizeTempWithRemote(IFile file,
IProgressMonitor monitor)
Synchronize a temporary file with it's corresponding remote file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemTempFileListener()
Method Detail |
---|
public void setEnabled(boolean flag)
public void addIgnoreFile(IFile toIgnore)
public void removeIgnoreFile(IFile toNotIgnore)
public boolean isIgnorable(IFile file)
public void resourceChanged(IResourceChangeEvent event)
resourceChanged
in interface IResourceChangeListener
IResourceChangeListener.resourceChanged(IResourceChangeEvent)
protected void checkLocalChanges(IResourceDelta delta, List changes)
protected IRunnableContext getRunnableContext(Shell shell)
protected void processDelta(IResourceDelta delta)
delta
- the delta to compareprotected void synchronizeTempWithRemote(IFile file, IProgressMonitor monitor)
file
- the temporary file to synchronizeprotected void refreshRemoteResource(Object parent)
protected abstract void doResourceSynchronization(ISubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
subsystem
- the remote file subsystem of the remote filetempFile
- the temporary fileresourceId
- the remote filemonitor
- the progress monitorprotected abstract boolean doesHandle(ISubSystem subsystem)
subsystem
- the subsystem to check
protected boolean preScanForTempFiles(IResourceDelta delta)
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |