public class FileModificationValidationContext extends Object
FileModificationValidator
to indicate that UI-based validation is desired.
This class is not intended to be instantiated or subclassed by clients.
FileModificationValidator
Modifier and Type | Field and Description |
---|---|
static FileModificationValidationContext |
VALIDATE_PROMPT
Constant that can be passed to
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], Object)
to indicate that the caller does not have access to a UI context but would still
like to have UI-based validation if possible. |
public static final FileModificationValidationContext VALIDATE_PROMPT
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], Object)
to indicate that the caller does not have access to a UI context but would still
like to have UI-based validation if possible.public Object getShell()
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
available (declared as an Object
to avoid any direct references on the SWT component).
If there is no shell, the FileModificationValidator
may still perform
UI-based validation if they can obtain a Shell from another source.org.eclipse.swt.widgets.Shell
that is to be used to
parent any dialogs with the user, or null
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.