Package gov.nasa.arc.mct.gui.actions.SaveAction

Examples of gov.nasa.arc.mct.gui.actions.SaveAction.ThisSaveAction


    public Object[][] generateSavesComponentCases() {
        Object[][] cases = new Object[4][];
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                cases[i*2+j] = new Object[] {
                        i == 0 ? new ThisSaveAction() : new ObjectsSaveAction(),
                        j == 0 // isDirty
                };
            }
        }
        return cases;
View Full Code Here


                for (boolean validChild : truths) {
                    for (boolean isDirty : truths) {    
                        for (boolean isObjectManager : truths) {
                            for (boolean hasChild : truths) {                           
                                Object[] testCase = {
                                    action ? new ThisSaveAction() : new ObjectsSaveAction(),
                                    generateComponent(validParent, isDirty, isObjectManager,
                                            hasChild ? generateComponent(validChild, isDirty, isObjectManager, null) : null),
                                    true,
                                    (isDirty && validParent) || (isObjectManager && hasChild && validChild)                           
                                };
View Full Code Here

                        if (goodComponents.contains(c)) {
                            expect.add(c);
                        }
                    }
                    cases.add(new Object[] {
                            action ? new ThisSaveAction() : new ObjectsSaveAction(),
                            ac,
                            confirm,
                            partial, // prompt
                            expect                           
                    });
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.gui.actions.SaveAction.ThisSaveAction

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.