Package br.com.gmartins.simbler.compiler.analyzers

Examples of br.com.gmartins.simbler.compiler.analyzers.LexAnalyzerWorker


                getMainPanel().resetValues();
            }
            // Precisa adicionar o Swingworker em uma nova thread para que ele execute!!
            // Vai entender.
            // Duas instâncias de Swingworker diferentes não estavam rodando ao mesmo mesmo. O código abaixo solucionou o problema.
            new Thread(new LexAnalyzerWorker(this.getMainPanel(), true)).start();
        }
    }
View Full Code Here


                getMainPanel().resetValues();
            }
            this.getMainPanel().setPause(false);
            this.getMainPanel().setStepByStepMode(true);
            try {
                new Thread(new LexAnalyzerWorker(this.getMainPanel(), true)).start();
            } catch (Exception ex) {
                Logger.getLogger(MenuHandler.class.getName()).log(Level.SEVERE, null, ex);
            }

        }
View Full Code Here

    public List<Instruction> getCommandList() {
        try {

            // Existe algum problema aquiii! Está travando
            LexAnalyzerWorker worker = new LexAnalyzerWorker(panel, false);
            worker.execute();
            while (worker.isDone() == false) {
                if (worker.isAcceptable()) {

                    return worker.get();

                }
            }
        } catch (InterruptedException ex) {
            Logger.getLogger(Builder.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

                // nova se iniciará, fazendo com que o código seja analisado apenas quando o usuário parar de digitar por mais de 1000s.
                Thread.sleep(1000);

                updateTitleOnCodeChange();

                LexAnalyzerWorker worker = new LexAnalyzerWorker(Principal.getInstance().getMainPanel(), false);
                worker.setProgressVisible(true, getLineCount());
                worker.setSilentMode(true);
                worker.execute();

                return null;
            } catch (InterruptedException ex) {
                // Ok. Exceção esperada... Ignorando
            }
View Full Code Here

TOP

Related Classes of br.com.gmartins.simbler.compiler.analyzers.LexAnalyzerWorker

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.