Package FileBugManager

Examples of FileBugManager.BugUpdater


                // Avvio thread
                SwingWorker worker = new SwingWorker() {

                    @Override
                    protected String doInBackground() throws InterruptedException {
                        BugUpdater bugUpdater = new BugUpdater();
                        bugUpdater.update(true);
                        return null;
                    }

                    @Override
                    protected void done() {
                        layout.enableAll();
                        layout.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
                    }
                };
                worker.execute();
                break;
            }
            case 2: {
                // Inizio l'analisi
                if (layout != null) {
                    layout.disableAll();
                    layout.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
                }
                SwingWorker worker = new SwingWorker() {

                    @Override
                    protected String doInBackground() throws InterruptedException {
                        StartAnalyze analyzer = new StartAnalyze();
                        analyzer.start(false);
                        return null;
                    }

                    @Override
                    protected void done() {
                        layout.enableAll();
                        layout.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
                    }
                };
                worker.execute();
                break;
            }
            case 3: {
                // Creo la query sql per creare il database
                if (layout != null) {
                    layout.disableAll();
                    layout.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
                }
                SwingWorker worker = new SwingWorker() {

                    @Override
                    protected String doInBackground() throws InterruptedException {
                        // Verifico l'esisteza di almeno un file da indicizzare
                        File f = new File(Indexer.path_for_data);
                        if ((!f.exists()) || (f.listFiles().length == 0)) {
                            Layout.log("Cartella da indicizzare " + f.getPath() + " vuota, aggiorno i file!!");
                            // Aggiorno i file di bug
                            BugUpdater bugUpdater = new BugUpdater();
                            bugUpdater.update(false);
                        }

                        // Se non avevo clacolato le priorità statiche lo faccio ora
                        if (StartAnalyze.finalPriority == null) {
                            StartAnalyze s = new StartAnalyze();
View Full Code Here


     */
    public static Object doActionTest(int Action, Object params) {
        switch (Action) {
            case 1: {
                // Aggiono i file dei bug
                BugUpdater bugUpdater = new BugUpdater();
                bugUpdater.updateTest();
                break;
            }
            case 2: {
                // Analizzo i file
                StartAnalyze analyzer = new StartAnalyze();
View Full Code Here

                // Avvio thread
                SwingWorker worker = new SwingWorker() {

                    @Override
                    protected String doInBackground() throws InterruptedException {
                        BugUpdater bugUpdater = new BugUpdater();
                        bugUpdater.update(true);
                        return null;
                    }

                    @Override
                    protected void done() {
                        layout.enableAll();
                        layout.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
                    }
                };
                worker.execute();
                break;
            }
            case 2: {
                // Inizio l'analisi
                if (layout != null) {
                    layout.disableAll();
                    layout.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
                }
                SwingWorker worker = new SwingWorker() {

                    @Override
                    protected String doInBackground() throws InterruptedException {
                        StartAnalyze analyzer = new StartAnalyze();
                        analyzer.start();
                        return null;
                    }

                    @Override
                    protected void done() {
                        layout.enableAll();
                        layout.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
                    }
                };
                worker.execute();
                break;
            }
            case 3: {
                // Creo la query sql per creare il database
                if (layout != null) {
                    layout.disableAll();
                    layout.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
                }
                SwingWorker worker = new SwingWorker() {

                    @Override
                    protected String doInBackground() throws InterruptedException {
                        // Verifico l'esisteza di almeno un file da indicizzare
                        File f = new File(Indexer.path_for_data);
                        if ((!f.exists())||(f .listFiles().length == 0)) {
                            Layout.log("Cartella da indicizzare " + f.getPath() + " vuota, aggiorno i file!!");
                            // Aggiorno i file di bug
                            BugUpdater bugUpdater = new BugUpdater();
                            bugUpdater.update(false);
                        }
                       
                        // Se non avevo clacolato le priorità statiche lo faccio ora
                        if (StartAnalyze.finalPriority == null) {
                            StartAnalyze s = new StartAnalyze();
View Full Code Here

TOP

Related Classes of FileBugManager.BugUpdater

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.