IVdmProject project = (IVdmProject) getProject().getAdapter(IVdmProject.class);
if (project != null)
{
Properties props = new Properties();
IVdmModel model = project.getModel();
if (!model.isTypeChecked())
{
if(!project.typeCheck(new NullProgressMonitor()))
{
props.put("TYPE_CHECK_STATUS", "false");
storeProperties(monitor, props);
return null;
}
}
props.put("TYPE_CHECK_STATUS", "true");
for (IAstNode node : model.getRootElementList())
{
if (node instanceof SystemDefinition)
{
SystemDefinition sd = (SystemDefinition) node;
expandAndSave(props, "", sd, model);