MCPcopy Create free account
hub / github.com/benfry/processing4 / rebuild

Method rebuild

app/src/processing/app/ui/EditorToolbar.java:77–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76
77 public void rebuild() {
78 removeAll(); // remove previous components, if any
79 List<EditorButton> buttons = createButtons();
80
81 box = Box.createHorizontalBox();
82 box.add(Box.createHorizontalStrut(Editor.LEFT_GUTTER));
83
84 rolloverLabel = new JLabel();
85
86 for (EditorButton button : buttons) {
87 box.add(button);
88 box.add(Box.createHorizontalStrut(GAP));
89 }
90
91 box.add(rolloverLabel);
92
93 box.add(Box.createHorizontalGlue());
94 addModeButtons(box, rolloverLabel);
95
96 box.add(modeSelector = new ModeSelector(editor));
97 box.add(Box.createHorizontalStrut(Editor.RIGHT_GUTTER));
98
99 setLayout(new BorderLayout());
100 add(box, BorderLayout.CENTER);
101
102 updateTheme();
103 }
104
105
106 public void updateTheme() {

Callers 1

EditorToolbarMethod · 0.95

Calls 4

createButtonsMethod · 0.95
addModeButtonsMethod · 0.95
updateThemeMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected