|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.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.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
SystemTempFileListener()
|
Method Summary | |
---|---|
void |
addIgnoreFile(IFile toIgnore)
|
protected abstract boolean |
doesHandle(SubSystem subsystem)
Indicate whether this tempfile listener handles the specified |
protected abstract 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. |
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. |
void |
removeIgnoreFile(IFile toNotIgnore)
|
void |
resourceChanged(IResourceChangeEvent event)
|
void |
run()
|
void |
run(IProgressMonitor monitor)
Synchronize the list of temp files |
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 |
Field Detail |
public static final String copyright
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)
IResourceChangeListener#resourceChanged(IResourceChangeEvent)
public void run()
run
in interface Runnable
Runnable.run()
protected IRunnableContext getRunnableContext(Shell shell)
protected void processDelta(IResourceDelta delta)
delta
- the delta to comparepublic void run(IProgressMonitor monitor)
protected void synchronizeTempWithRemote(IFile file, IProgressMonitor monitor)
file
- the temporary file to synchronizeprotected abstract void doResourceSynchronization(SubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
tempFile
- the temporary filemonitor
- the progress monitorprotected abstract boolean doesHandle(SubSystem subsystem)
subsystem
- the subsystem to check
protected boolean preScanForTempFiles(IResourceDelta delta)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |