Warning: session_start(): open(/var/lib/php/sessions/sess_u4r1ilc538jipf0gffgf2rkje3, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
concept Distinction {
S concept, cases;
}
module Distinctions > DynCRUD {
*() { super(Distinction); }
afterVisualize {
replaceComponent(crud.tableSearcher.tfInput, func(JComponent c) -> JComponent {
centerAndEastWithMargin(c, jbutton("Add distinction...", rThread {
define(searchTerm())
}))
});
onEnter(crud.tableSearcher.tfInput, rThread { define(searchTerm()) });
}
void define(fS term) enter {
final JTextField tfConcept = jtextfield(or2(term, dm_topInput())), tfCases = jtextfield();
showFormTitled("Add Rule",
"Concept:", tfConcept,
"Cases (use slashes):", tfOut,
rThread {
S in = gtt(tfConcept), out = gtt(tfCases);
uniq_sync(Distinction, +concept, +cases);
});
focus(nempty(term) ? tfCases : tfConcept);
}
}