Memento memento = new JFileChooserMemento(jfc);
memento.restoreState(settings);
int result = jfc.showOpenDialog(getParentWindowControl());
if (JFileChooser.APPROVE_OPTION == result) {
memento.saveState(settings);
XsAnalyzerApplicationModel appmodel = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
appmodel.setSchemaFile(jfc.getSelectedFile());
appmodel.setSchemaModel(XsModelFactory.createXsModel(appmodel.getSchemaFile()));
Application.instance().getApplicationContext().publishEvent(new XsAnalyzerApplicationEvent(EventType.OPEN, this));
}