Warning: session_start(): open(/var/lib/php/sessions/sess_f0oks3hl4khsgpvvt1qsdra1ag, 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
abstract sclass DynPrintLog extends DynModule {
transient JFastLogView_noWrap printLogView;
transient Lock updatePrintLog_lock = lock();
transient StringBuffer actualPrintLog;
visualize {
JComponent section = jSection("Log",
jscroll_copyBackground(printLogView = jFastLogView_noWrap(getPrintLog())));
componentPopupMenuItem(section, "Clear", rEnter dm_clearModulePrintLog);
ret awtEvery(section, 500, r updatePrintLog);
}
void updatePrintLog {
// TODO: optimize
lock updatePrintLog_lock;
JFastLogView_noWrap _view = printLogView;
if (_view == null) ret;
if (_view.setText(getPrintLog())) {
// Still trying to reliably scroll down
scrollAllTheWayDown(_view);
awtLater(100, r { scrollAllTheWayDown(_view) });
}
}
JFastLogView_noWrap myPrintLogComponent() { ret printLogView; }
void enableWordWrap { // TODO
}
S getPrintLog() {
if (actualPrintLog == null) {
if (printToModule())
actualPrintLog = _printLog;
else
actualPrintLog = liveLocalPrintLog_realMC(this);
}
ret str(actualPrintLog);
}
}