Java Code Examples for

The following are top voted examples for showing how to use 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:   Source Code and License 6 votes vote down vote up
public IStatus validateEdit(IFile[] files,
		FileModificationValidationContext context) {
	// TODO Auto-generated method stub
	System.out.println("EDIT HOOK");
	for(IFile item : files)
	return null;
	//new s
	//return Status.OK;
//	return IStatus.OK;
	//return null;
Example 2
Project: team-explorer-everywhere   File:   Source Code and License 5 votes vote down vote up
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);