Skip to content

Commit fe6c11b

Browse files
committed
i hate this constructor.. bad design
1 parent d5f3dac commit fe6c11b

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

app/src/processing/app/ui/Editor.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ public void processKeyEvent(KeyEvent evt) {
433433

434434
public EditorFooter createFooter() {
435435
EditorFooter ef = new EditorFooter(this);
436-
addConsole(); // console is required
436+
console = new EditorConsole(this);
437+
ef.addPanel(console, Language.text("editor.footer.console"), "/lib/footer/console");
437438
return ef;
438439

439440
/*
@@ -456,13 +457,7 @@ public EditorFooter createFooter() {
456457
}
457458

458459

459-
public void addConsole() {
460-
console = new EditorConsole(this);
461-
footer.addPanel(console, Language.text("editor.footer.console"), "/lib/footer/console");
462-
}
463-
464-
465-
public void addErrorTable() {
460+
public void addErrorTable(EditorFooter footer) {
466461
JScrollPane errorTableScrollPane = new JScrollPane();
467462
errorTable = new ErrorTable(this);
468463
errorTableScrollPane.setBorder(BorderFactory.createEmptyBorder());

0 commit comments

Comments
 (0)