com.ibm.carma.ui.local
Class OpenFileModificationValidator
java.lang.Object
com.ibm.carma.ui.local.OpenFileModificationValidator
- All Implemented Interfaces:
- org.eclipse.core.resources.IFileModificationValidator
public class OpenFileModificationValidator
- extends java.lang.Object
- implements org.eclipse.core.resources.IFileModificationValidator
Listens to changes in temporary remote files and detects if changes have occurred on
the host between when the last temporary download occurred and the current save
operation. If changes have occurred between the local cache and the current host
contents then a warning is issued to the user asking for upload confirmation.
This feature is controlled by the Upload Check
preference.
- Since:
- 7.0
- See Also:
CarmaRemoteEditEnabler
|
Field Summary |
static java.lang.String |
COPYRIGHT
|
|
Method Summary |
org.eclipse.core.runtime.IStatus |
validateEdit(org.eclipse.core.resources.IFile[] files,
java.lang.Object context)
|
org.eclipse.core.runtime.IStatus |
validateSave(org.eclipse.core.resources.IFile file)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
OpenFileModificationValidator
public OpenFileModificationValidator()
validateEdit
public org.eclipse.core.runtime.IStatus validateEdit(org.eclipse.core.resources.IFile[] files,
java.lang.Object context)
- Specified by:
validateEdit in interface org.eclipse.core.resources.IFileModificationValidator
validateSave
public org.eclipse.core.runtime.IStatus validateSave(org.eclipse.core.resources.IFile file)
- Specified by:
validateSave in interface org.eclipse.core.resources.IFileModificationValidator