Package ca.nengo.ui.actions

Examples of ca.nengo.ui.actions.SaveNodeAction


        WorldObject selectedNode = SelectionHandler.getActiveObject();

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

            SaveNodeAction saveNodeAction = new SaveNodeAction(selectedNetwork);
            saveNodeAction.doAction();

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


    protected boolean promptToSaveModels() {
        boolean saveSuccessful = true;

        for (WorldObject wo : getWorld().getGround().getChildren()) {
            if (wo instanceof UINeoNode) {
                SaveNodeAction saveAction = new SaveNodeAction((UINeoNode) wo, true);
                saveAction.doAction();
                saveSuccessful = saveSuccessful && saveAction.getSaveSuccessful();
            }
        }

        return saveSuccessful;
    }
View Full Code Here

TOP

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

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.