use of de.carne.certmgr.jfx.store.StoreController in project certmgr by hdecarne.
the class CertMgrApplication method start.
@Override
public void start(@Nullable Stage primaryStage) throws Exception {
// Evaluate command line as soon as possible to apply logging options as
// soon as possible
File defaultStoreHome = evalCmdLine();
LOG.info("JavaFX GUI starting...");
LogViewImages.LEVEL_IMAGES.registerImage(LogLevel.LEVEL_TRACE, Images.TRACE16);
LogViewImages.LEVEL_IMAGES.registerImage(LogLevel.LEVEL_DEBUG, Images.DEBUG16);
LogViewImages.LEVEL_IMAGES.registerImage(LogLevel.LEVEL_INFO, Images.INFO16);
LogViewImages.LEVEL_IMAGES.registerImage(LogLevel.LEVEL_WARNING, Images.WARNING16);
LogViewImages.LEVEL_IMAGES.registerImage(LogLevel.LEVEL_ERROR, Images.ERROR16);
LogViewImages.LEVEL_IMAGES.registerImage(LogLevel.LEVEL_NOTICE, Images.NOTICE16);
StoreController store = StageController.loadPrimaryStage(Check.notNull(primaryStage), StoreController.class);
store.show();
if (defaultStoreHome != null) {
store.openStore(defaultStoreHome);
}
}
Aggregations