protected Main(String[] args) {
this.args = args;
}
protected void launch() {
final Injector injector = DIBootstrap
.createInjector(appendModules(new ArrayList<Module>()));
logger.info("Starting CayenneModeler.");
logger.info("JRE v."
+ System.getProperty("java.version")
+ " at "
+ System.getProperty("java.home"));
// init look and feel before starting any Swing classes...
injector.getInstance(PlatformInitializer.class).initLookAndFeel();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Application application = injector.getInstance(Application.class);
Application.setInstance(application);
application.startup();
// start initial project AFTER the app startup, as we need Application
// preferences to be bootstrapped.