Java 类org.eclipse.core.resources.team.FileModificationValidationContext 实例源码

项目:mondo-collab-framework    文件:FileModTest.java   
@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;
}
项目:team-explorer-everywhere    文件:TFSFileModificationValidator2.java   
@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);
}