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

Method clearDefaultXML

src/davidson/gr/ClassicalWRApp.java:86–93  ·  view source on GitHub ↗

Clears the current XML default.

()

Source from the content-addressed store, hash-verified

84 * Clears the current XML default.
85 */
86 @Override
87public void clearDefaultXML() {
88 if(xmlDefault==null || model==null) return;
89 xmlDefault = null;
90 clearItem.setEnabled(false);
91 resetSimulation();
92 GUIUtils.repaintOSPFrames();
93 }
94
95 public void resetSimulation() {
96 model.stopSimulation();

Callers

nothing calls this directly

Calls 3

resetSimulationMethod · 0.95
repaintOSPFramesMethod · 0.95
setEnabledMethod · 0.65

Tested by

no test coverage detected