Package com.alphacsp.cit.swing

Examples of com.alphacsp.cit.swing.SwingInterface


        if (selectedFile == null) {
            return;
        }

        SwingInterface swingInterface = new SwingInterface(selectedFile.getName(),Thread.currentThread());

        ExampleInterperterFactory interperterFactory =
                new ExampleInterperterFactory(selectedFile.getAbsolutePath(), UserInterfaceInterceptionUtils.createLogInterceptor(swingInterface));

        swingInterface.start();
        try {
            Interperter interperter = interperterFactory.createInterperter();
            swingInterface.addCompletion(new CommandCompletion(interperter));
            swingInterface.addCompletion(new FileCompletion(interperter));
            interperter.interpret();
        } catch (ValidationException e) {
            ErrorDialog errorDialog = new ErrorDialog(swingInterface.getFrame(), e);
            errorDialog.setVisible(true);
            swingInterface.stop();
        }

    }
View Full Code Here

TOP

Related Classes of com.alphacsp.cit.swing.SwingInterface

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.