Esempio n. 1
0
  public void analyseApplication() {
    IControlService controlService = ServiceProvider.getInstance().getControlService();
    ILocaleService localeService = ServiceProvider.getInstance().getLocaleService();
    ApplicationDTO applicationDTO =
        ServiceProvider.getInstance().getDefineService().getApplicationDetails();

    ThreadWithLoader analyseThread =
        controlService.getThreadWithLoader(
            localeService.getTranslatedString("AnalysingApplication"),
            new AnalyseTask(mainController, applicationDTO));
    currentLoader = analyseThread.getLoader();
    currentThread = analyseThread.getThread();
    currentLoader.addWindowListener(
        new WindowAdapter() {
          @Override
          public void windowClosing(WindowEvent e) {
            mainController.getStateController().setAnalysing(false);

            logger.debug("Stopping Thread");
          }
        });
    analyseThread.run();
  }