Search in sources :

Example 1 with TestContextMenu

use of fvarrui.sysadmin.editor.components.TestContextMenu in project Challenger4SysAdmins by fvarrui.

the class TreeEditorController method addTest.

private void addTest(NotTest parent) {
    TestContextMenu menu = new TestContextMenu();
    menu.show(addButton, Side.BOTTOM, 0, 0);
    menu.setOnHidden(e -> {
        Test childTest = menu.getTest();
        if (childTest != null) {
            parent.setTest(childTest);
            System.out.println("test " + childTest.getName() + " a�adido al test de negaci�n " + parent.getName());
        }
    });
}
Also used : TestContextMenu(fvarrui.sysadmin.editor.components.TestContextMenu) Test(fvarrui.sysadmin.challenger.test.Test) NotTest(fvarrui.sysadmin.challenger.test.NotTest) CommandTest(fvarrui.sysadmin.challenger.test.CommandTest)

Example 2 with TestContextMenu

use of fvarrui.sysadmin.editor.components.TestContextMenu in project Challenger4SysAdmins by fvarrui.

the class TreeEditorController method addTest.

private void addTest(Goal goal) {
    TestContextMenu menu = new TestContextMenu();
    menu.show(addButton, Side.BOTTOM, 0, 0);
    menu.setOnHidden(e -> {
        Test test = menu.getTest();
        if (test != null) {
            goal.setTest(test);
            System.out.println("test " + test.getName() + " a�adido al objetivo " + goal.getName());
        }
    });
}
Also used : TestContextMenu(fvarrui.sysadmin.editor.components.TestContextMenu) Test(fvarrui.sysadmin.challenger.test.Test) NotTest(fvarrui.sysadmin.challenger.test.NotTest) CommandTest(fvarrui.sysadmin.challenger.test.CommandTest)

Example 3 with TestContextMenu

use of fvarrui.sysadmin.editor.components.TestContextMenu in project Challenger4SysAdmins by fvarrui.

the class TreeEditorController method addTest.

private void addTest(TestGroup test) {
    TestContextMenu menu = new TestContextMenu();
    menu.show(addButton, Side.BOTTOM, 0, 0);
    menu.setOnHidden(e -> {
        Test childTest = menu.getTest();
        if (childTest != null) {
            test.getTests().add(childTest);
            System.out.println("test " + childTest.getName() + " a�adido al test compuesto " + test.getName());
        }
    });
}
Also used : TestContextMenu(fvarrui.sysadmin.editor.components.TestContextMenu) Test(fvarrui.sysadmin.challenger.test.Test) NotTest(fvarrui.sysadmin.challenger.test.NotTest) CommandTest(fvarrui.sysadmin.challenger.test.CommandTest)

Aggregations

CommandTest (fvarrui.sysadmin.challenger.test.CommandTest)3 NotTest (fvarrui.sysadmin.challenger.test.NotTest)3 Test (fvarrui.sysadmin.challenger.test.Test)3 TestContextMenu (fvarrui.sysadmin.editor.components.TestContextMenu)3