Class ValidateEditChecker

  • All Implemented Interfaces:

    public class ValidateEditChecker
    extends Object
    implements IConditionChecker
    A validate edit checker is a shared checker to collect files to be validated all at once. A validate edit checker checks if the files are in sync with the underlying files system. Additionally IWorkspace#validateEdit is called for all read-only resources.

    Note: Since 3.2, a ResourceChangeChecker exists. If clients add their changed files to the ResourceChangeChecker there is no need to add them to a validate edit checker as well. Files marked as changed in the resource operation checker will be automatically added to a validate edit checker (if one exists).

    Note: this class is not intended to be extended by clients.

    See Also:
    IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • ValidateEditChecker

        public ValidateEditChecker​(Object context)
        The context passed to the validate edit call.
        context - the org.eclipse.swt.widgets.Shell that is to be used to parent any dialogs with the user, or null if there is no UI context (declared as an Object to avoid any direct references on the SWT component)
        See Also:
        IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)
    • Method Detail

      • addFile

        public void addFile​(IFile file)
        Adds the given file to this checker.
        file - the file to add
      • addFiles

        public void addFiles​(IFile[] files)
        Adds the given array of files.
        files - the array of files to add