Java Code Examples for org.eclipse.core.resources.team.FileModificationValidationContext

The following are top voted examples for showing how to use org.eclipse.core.resources.team.FileModificationValidationContext. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: mondo-collab-framework   File: FileModTest.java   Source Code and License 6 votes vote down vote up
@Override
public IStatus validateEdit(IFile[] files,
		FileModificationValidationContext context) {
	// TODO Auto-generated method stub
	System.out.println("EDIT HOOK");
	
	for(IFile item : files)
	{
		System.out.println(item.getName());
	}
	return null;
	
	//new s
	
	//return Status.OK;
//	return IStatus.OK;
	//return null;
}
 
Example 2
Project: team-explorer-everywhere   File: TFSFileModificationValidator2.java   Source Code and License 5 votes vote down vote up
@Override
public IStatus validateEdit(final IFile[] files, final FileModificationValidationContext context) {
    boolean attemptUi;
    Object shell;

    if (context == null) {
        attemptUi = false;
        shell = null;
    } else {
        attemptUi = true;
        shell = context.getShell();
    }

    return validator.validateEdit(files, attemptUi, shell);
}