Warning: session_start(): open(/var/lib/php/sessions/sess_luf5kjrv0d4lmvm3dshpm40nsf, 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
svoid dm_stefansAssistant_offerSFOnSnippetCreated() {
DynModule mod = dm_current_mandatory();
dm_onSnippetCreated(voidfunc(S snippetID) {
print("New snippet! " + snippetID);
if (!dm_hadUserActivityInLastNMinutes(1)) ret with print("No user activity, skipping popup dialog");
if (getSnippetType(snippetID) == snippetType_JavaXInclude()) {
S text = loadSnippet(snippetID);
S sfName = first(findFunctionDefsAtCurlyLevel(0, text));
if (sfName != null)
// call activateFrame to bring window to foreground reliably on Windows?
disposeWindowAfter(30.0, /*activateFrameAndReturnComponent*/(showPackedFrameInBottomRightCorner(
centerAndSouthWithMargins(jlabel("Add standard function: "
+ sfName + "?"),
hgridWithSpacing(
jThreadedButton("OK", r {
temp dm_enter(mod);
disposeWindow(heldInstance(JButton));
addStandardFunctionWithAnimation(snippetID);
}),
jCancelButton("No")
)
))));
}
});
}