Package net.cakenet.jsaton.script

Examples of net.cakenet.jsaton.script.Script


        }

        public void actionPerformed(ActionEvent e) {
            ScriptPropertiesDialog n = new ScriptPropertiesDialog(MainWindow.this);
            n.setVisible(true);
            Script s = n.getResult();
            if(s != null)
                newScriptWindow(s);
        }
View Full Code Here


    }

    public Script getResult() {
        if(!selected)
            return null;
        Script s = source == null? Script.create((ScriptLanguage) language.getSelectedItem()): source;
        s.setName(name.getText());
        s.setAuthor(author.getText());
        s.setGame(game.getText());
        s.setDescription(description.getText());
        return s;
    }
View Full Code Here

    public void propertyChange(PropertyChangeEvent pce) {
        if (scriptPane == null)
            return;
        if (pce.getPropertyName().equals("state")) {
            try {
                Script source = (Script) pce.getSource();
                if (source.getState() == ScriptState.RUNNING && originalCaret == -1) {
                    scriptPane.setEditable(false);
                    scriptPane.setHighlightCurrentLine(false);
                    originalCaret = scriptPane.getCaretPosition();
                    scriptPane.getCaret().setVisible(false);
                    scriptPane.getCaret().setSelectionVisible(false);
                } else if (source.getState() == ScriptState.STOPPED) {
                    scriptPane.setHighlightCurrentLine(true);
                    unhighlightLastHighlightedBreakpoint();
                    scriptPane.setCaretPosition(originalCaret);
                    originalCaret = -1;
                    scriptPane.setEditable(true);
View Full Code Here

    }

    private void updateComponents() {
        if (editor != null) {
            setTitle("Debug - " + editor.script.getName());
            Script s = editor.script;
            if (!s.isDebug()) {
                updateWithMessage("Not currently debugging", true);
            } else {
                switch (s.getState()) {
                    case INITIALISING:
                    case STOPPED:
                        updateWithMessage("Not running", true);
                        break;
                    case RUNNING:
                        updateWithMessage("Running", true);
                        break;
                    case SUSPENDED:
                        if (s.getBreakInfo() == null)
                            updateWithMessage("Not available during suspend", true);
                        break;
                }
            }
        } else {
View Full Code Here

TOP

Related Classes of net.cakenet.jsaton.script.Script

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.