MCPcopy Index your code
hub / github.com/processing/processing / reselectMode

Method reselectMode

app/src/processing/app/ui/Editor.java:576–585  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

574 // updated by Java, even though the Mode could not be changed.
575 // https://github.com/processing/processing/issues/2615
576 private void reselectMode() {
577 for (Component c : getModePopup().getComponents()) {
578 if (c instanceof JRadioButtonMenuItem) {
579 if (((JRadioButtonMenuItem)c).getText() == mode.getTitle()) {
580 ((JRadioButtonMenuItem)c).setSelected(true);
581 break;
582 }
583 }
584 }
585 }
586
587 public JPopupMenu getModePopup() {
588 return modePopup.getPopupMenu();

Callers 1

actionPerformedMethod · 0.95

Calls 4

getModePopupMethod · 0.95
getTextMethod · 0.45
getTitleMethod · 0.45
setSelectedMethod · 0.45

Tested by

no test coverage detected