Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.resources.team
Class FileModificationValidationContext


java.lang.Object
  extended by 
org.eclipse.core.resources.team.FileModificationValidationContext

public class FileModificationValidationContext
extends Object

A context that is used in conjunction with the FileModificationValidator to 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
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.
 
Method Summary
  Object getShell ()
          Return 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 available (declared as an Object to avoid any direct references on the SWT component).
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATE_PROMPT

public static final 
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.

Method Detail

getShell

public 
Object getShell()
Return 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 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.

Returns:
the org.eclipse.swt.widgets.Shell that is to be used to parent any dialogs with the user, or null

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire