Package org.eclipse.core.resources.team
Class FileModificationValidationContext
- java.lang.Object
-
- org.eclipse.core.resources.team.FileModificationValidationContext
-
public class FileModificationValidationContext extends Object
A context that is used in conjunction with theFileModificationValidatorto indicate that UI-based validation is desired.This class is not intended to be instantiated or subclassed by clients.
- Since:
- 3.3
- See Also:
FileModificationValidator
-
-
Field Summary
Fields Modifier and Type Field Description static FileModificationValidationContextVALIDATE_PROMPTConstant that can be passed toIWorkspace.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetShell()Return theorg.eclipse.swt.widgets.Shellthat is to be used to parent any dialogs with the user, ornullif there is no UI context available (declared as anObjectto avoid any direct references on the SWT component).
-
-
-
Field Detail
-
VALIDATE_PROMPT
public static final FileModificationValidationContext VALIDATE_PROMPT
Constant that can be passed toIWorkspace.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.
-
-
Method Detail
-
getShell
public Object getShell()
Return theorg.eclipse.swt.widgets.Shellthat is to be used to parent any dialogs with the user, ornullif there is no UI context available (declared as anObjectto avoid any direct references on the SWT component). If there is no shell, theFileModificationValidatormay still perform UI-based validation if they can obtain a Shell from another source.- Returns:
- the
org.eclipse.swt.widgets.Shellthat is to be used to parent any dialogs with the user, ornull
-
-