* @see org.springframework.richclient.command.ActionCommand#doExecuteCommand()
*/
@Override
protected void doExecuteCommand() {
logger.debug("Reload command called!");
XsAnalyzerApplicationModel appmodel = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
final File schemaFile = appmodel.getSchemaFile();
if (null != schemaFile) {
logger.debug("Reloading [" + schemaFile + "]");
appmodel.setSchemaModel(XsModelFactory.createXsModel(schemaFile));
Application.instance().getApplicationContext().publishEvent(new XsAnalyzerApplicationEvent(EventType.OPEN, this));
}
else logger.info("Reloading impossible - no file loaded...");
}