Package ca.nengo.ui.actions

Examples of ca.nengo.ui.actions.GeneratePythonScriptAction


        WorldObject selectedNode = SelectionHandler.getActiveObject();

        UINetwork selectedNetwork = UINetwork.getClosestNetwork(selectedNode);
        if (selectedNetwork != null) {

            GeneratePythonScriptAction generatePythonScriptAction = new GeneratePythonScriptAction(selectedNetwork);
            generatePythonScriptAction.doAction();

        } else {
            throw new ActionException("No parent network to save, please select a node");
        }
    }
View Full Code Here

TOP

Related Classes of ca.nengo.ui.actions.GeneratePythonScriptAction

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.