Warning: session_start(): open(/var/lib/php/sessions/sess_k8l6inf3kd1ggnkcnj2umbsmkk, 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
scope iPanel_renderSafeFunction.
static Set #safeTags = lithashset("safe", "awt", "mech", "variable");
static JComponent iPanel_renderSafeFunction(S s, final Runnable refresh) {
if (!isStandardFunction(s)) null;
SS safetyMap = mechHashMap("JavaX Identifier Safety");
S safety = safetyMap.get(s);
print("Safety for " + s + ": " + safety);
fS fname = s;
if (empty(safety) || !setContainsSet(safeTags, tokSplitAtComma(safety)))
ret jfullcenter(jbutton("Check " + s + " for safety" + (empty(safety) ? "" : ": " + safety), rThread(r { checkStandardFunctionForSafety(fname); callF(refresh) })));
Component c;
try {
O o = callAndMake(s);
if (o instanceof JComponent)
c = o/JComponent;
else
c = jCenteredMultiLineLabel(str(o));
} catch e {
c = exceptionInTextArea(e);
}
ret withCenteredTitle(s + " [" + safety + "]", c);
}
end scope