throws Exception
{
IEditorInput input = new FileEditorInput(file);
ISourceModule module = PHPUiPlugin.getEditorInputTypeRoot(input);
if (module != null){
module.makeConsistent(new NullProgressMonitor());
// alternate to makeConsistent where moduleDecl can be obtained using
// PHPSourceParserFactory.parse, like in SrcUpdateCommmand.
//ISourceModuleInfoCache sourceModuleInfoCache = ModelManager
// .getModelManager().getSourceModuleInfoCache();
//ISourceModuleInfo mifo = sourceModuleInfoCache.get(module);