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());
}
});
}
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());
}
});
}
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());
}
});
}
Aggregations