/** * This constructors creates an {@link AnalysisController} instance, using the given file to load an analysis model and the given classloader to initialize the * objects. The given file should therefore be an instance of the analysis meta model. * * @param file * The configuration file for the analysis. * @param classLoader * The classloader used to initialize the plugins etc. * * @throws IOException * If the given file could not be loaded or is not a valid kax-configuration file. * @throws AnalysisConfigurationException * If one or more plugins or repositories could not be created, one or * more properties of the plugins are invalid or if a connection between two filters is not allowed. */ public AnalysisController(final File file, final ClassLoader classLoader) throws IOException, AnalysisConfigurationException { this(AnalysisController.loadFromFile(file), classLoader); }
/** * This constructors creates an {@link AnalysisController} instance, using the given file to load an analysis model and the given classloader to initialize the * objects. The given file should therefore be an instance of the analysis meta model. * * @param file * The configuration file for the analysis. * @param classLoader * The classloader used to initialize the plugins etc. * * @throws IOException * If the given file could not be loaded or is not a valid kax-configuration file. * @throws AnalysisConfigurationException * If one or more plugins or repositories could not be created, one or * more properties of the plugins are invalid or if a connection between two filters is not allowed. */ public AnalysisController(final File file, final ClassLoader classLoader) throws IOException, AnalysisConfigurationException { this(AnalysisController.loadFromFile(file), classLoader); }
@Override protected boolean performTask() { try { final KaxVizFrame frame = new KaxVizFrame(this.kaxFilename, AnalysisController.loadFromFile(new File(this.kaxFilename)), this.svgFilename); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setExtendedState(Frame.MAXIMIZED_BOTH); frame.setSize(800, 600); frame.setVisible(true); } catch (final IOException ex) { LOGGER.error("The given file could not be loaded", ex); return false; } catch (final Exception ex) { // NOPMD NOCS (log all errors) LOGGER.error("Error", ex); return false; } return true; }
@Override protected boolean performTask() { try { final KaxVizFrame frame = new KaxVizFrame(this.kaxFilename, AnalysisController.loadFromFile(new File(this.kaxFilename)), this.svgFilename); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setExtendedState(Frame.MAXIMIZED_BOTH); frame.setSize(800, 600); frame.setVisible(true); } catch (final IOException ex) { LOG.error("The given file could not be loaded", ex); return false; } catch (final Exception ex) { // NOPMD NOCS (log all errors) LOG.error("Error", ex); return false; } return true; }