Package ca.nengo.ui.actions

Examples of ca.nengo.ui.actions.CutAction


    Collection<UINeoNode> arrayOfMe = new ArrayList<UINeoNode>();
    arrayOfMe.add(this);
   
    menu.addAction(new CopyAction("Copy", arrayOfMe));
    menu.addAction(new CutAction("Cut", arrayOfMe));

    SimulationMode mode = ((UINeoNode) arrayOfMe.toArray()[0]).getModel().getMode();

    int selected = -1;
    if (mode == SimulationMode.DEFAULT) {
View Full Code Here


                if (obj instanceof ModelObject) {
                    selectedModelObjects.add((ModelObject)obj);
                }
            }

            cutAction = new CutAction("Cut", selectedArray);
            copyAction = new CopyAction("Copy", selectedArray);
            removeAction = new RemoveModelAction("Remove", selectedModelObjects);
        } else {
            cutAction = new DisabledAction("Cut", "No object selected");
            copyAction = new DisabledAction("Copy", "No object selected");
View Full Code Here

TOP

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

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.