if (describer.describe(modelFile.getContents(), null) != IContentDescriber.VALID)
return null;
ToolInterface inter = new ToolInterface();
inter.setFile(modelFile);
inter.setPlanName(plan);
IDocumentProvider provider = new TextFileDocumentProvider();
provider.connect(modelFile);
IDocument document = provider.getDocument(modelFile);
inter.parse(document);
getTypeCache(project).put((plan + "." + interfaceName).toUpperCase(), model);
model = inter;
} catch (CoreException e) {
ToolPlugin.log(IStatus.ERROR,"Error updating Interface Model.", e);