Warning: session_start(): open(/var/lib/php/sessions/sess_vuhcag2ke3650lfrl8klifvu12, 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
sclass SFAutoComplete > DynObjectTable {
transient WeakReference tc;
start {
doEveryAndNow(2000, r {
if (!isVisible()) ret;
JTextComponent c = optCast(JTextComponent, getFocusOwner());
if (c == null) ret;
tc = weakRef(c);
int i = getCaretPosition(c);
S word = lastWord(takeFirst(getText(c), i));
setData(takeFirst(10, prefixSubSet(standardFunctionNames_sorted(), word));
});
}
void onDoubleClick(S s) {
JTextComponent c = getWeakRef(tc);
if (c != null) {
int i = getCaretPosition(c);
Document doc = c.getDocument();
S word = lastWord(takeFirst(getText(c), i));
doc.insertString(i, dropPrefix(word, s), null);
}
}
}