MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / showLog

Method showLog

src/org/opensourcephysics/controls/OSPLog.java:311–325  ·  view source on GitHub ↗

Shows the log when it is invoked from the event queue.

()

Source from the content-addressed store, hash-verified

309 * Shows the log when it is invoked from the event queue.
310 */
311 public static JFrame showLog() {
312 if (useMessageFrame()) {
313 return org.opensourcephysics.controls.MessageFrame.showLog(true);
314 }
315 getOSPLog().setVisible(true);
316 Logger logger = OSPLOG.getLogger();
317 for(int i = 0, n = messageStorage.length; i<n; i++) {
318 LogRecord record = messageStorage[(i+messageIndex)%n];
319 if(record!=null) {
320 logger.log(record);
321 }
322 }
323 messageIndex = 0;
324 return getOSPLog().frame;
325 }
326
327 /**
328 * Shows the log.

Callers 10

actionPerformedMethod · 0.95
launchMethod · 0.95
actionPerformedMethod · 0.95
actionPerformedMethod · 0.95
createMenuBarMethod · 0.95
actionPerformedMethod · 0.95
runMethod · 0.95
initMethod · 0.95
initMethod · 0.95
setVisibleMethod · 0.45

Calls 5

useMessageFrameMethod · 0.95
getOSPLogMethod · 0.95
getLoggerMethod · 0.80
setVisibleMethod · 0.65
logMethod · 0.45

Tested by

no test coverage detected