MCPcopy
hub / github.com/arduino/Arduino / resumeOrCloseSerialPlotter

Method resumeOrCloseSerialPlotter

app/src/processing/app/Editor.java:2140–2157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2138 }
2139
2140 private void resumeOrCloseSerialPlotter() {
2141 // Return the serial plotter window to its initial state
2142 if (serialPlotter != null) {
2143 BoardPort boardPort = BaseNoGui.getDiscoveryManager().find(PreferencesData.get("serial.port"));
2144 try {
2145 if (serialPlotter != null)
2146 serialPlotter.resume(boardPort);
2147 if (boardPort == null) {
2148 serialPlotter.close();
2149 handlePlotter();
2150 } else {
2151 serialPlotter.resume(boardPort);
2152 }
2153 } catch (Exception e) {
2154 statusError(e);
2155 }
2156 }
2157 }
2158
2159 class TimeoutUploadHandler implements Runnable {
2160

Callers 1

runMethod · 0.80

Calls 7

getDiscoveryManagerMethod · 0.95
getMethod · 0.95
handlePlotterMethod · 0.95
statusErrorMethod · 0.95
resumeMethod · 0.80
findMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected