{
final IStatus st = ResourcesPlugin.getWorkspace().validateEdit( new IFile[] { file }, IWorkspace.VALIDATE_PROMPT );
if( st.getSeverity() == IStatus.ERROR )
{
throw new ValidateEditException();
}
try
{
file.create( new ByteArrayInputStream( new byte[ 0 ] ), true, new NullProgressMonitor() );
}
catch( CoreException e )
{
throw new ValidateEditException( e );
}
}
}
if( this.sourceEditor.validateEditorInputState() == false )
{
throw new ValidateEditException();
}
}