Package org.iremake.common.model

Examples of org.iremake.common.model.ScenarioTitleProvider


            LOG.log(Level.SEVERE, null, ex);
            return;
        }

        int id = 0;
        ScenarioTitleProvider titleProvider = new ScenarioTitleProvider();
        for (Resource resource : files) {
            try {
                // load it completely
                // TODO instead of loading and parsing completely there might be a simpler function that only loads the title
                XMLHelper.read(resource, titleProvider);
                scenarios.put(id++, new Pair<>(resource, titleProvider.getTitle()));
            } catch (IOException | ParsingException ex) {
                LOG.log(Level.SEVERE, null, ex);
                // TODO a scenario cannot be loaded, delete it from the list later on
            }
        }
View Full Code Here

TOP

Related Classes of org.iremake.common.model.ScenarioTitleProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.