Skip to content

Commit a9c0cae

Browse files
committed
Revert "Examples frame does not flikers when contribution is changed"
1 parent e8dda21 commit a9c0cae

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ public void refreshContribs(ContributionType ct) {
493493
if (ct == ContributionType.LIBRARY) {
494494
for (Mode m : getModeList()) {
495495
m.rebuildImportMenu();
496-
m.refreshExampleFrame();
497496
}
498497

499498
} else if (ct == ContributionType.MODE) {
@@ -511,7 +510,7 @@ public void refreshContribs(ContributionType ct) {
511510
} else if (ct == ContributionType.EXAMPLES) {
512511
rebuildContribExamples();
513512
for (Mode m : getModeList()) {
514-
m.refreshExampleFrame();
513+
m.rebuildExamplesFrame();
515514
}
516515
}
517516
}

app/src/processing/app/Mode.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,6 @@ public void rebuildExamplesFrame() {
589589
}
590590
}
591591

592-
public void refreshExampleFrame() {
593-
if (examplesFrame != null) {
594-
examplesFrame.refresh();
595-
}
596-
}
597-
598592

599593
public void showExamplesFrame() {
600594
if (examplesFrame == null) {

app/src/processing/app/ui/ExamplesFrame.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ public void actionPerformed(ActionEvent e) {
9292
}
9393
});
9494

95-
setTree();
96-
}
97-
98-
99-
private void setTree() {
10095
JPanel examplesPanel = new JPanel();
10196
examplesPanel.setLayout(new BorderLayout());
10297
examplesPanel.setBackground(Color.WHITE);
@@ -409,8 +404,6 @@ protected DefaultMutableTreeNode buildContribTree() {
409404
return contribExamplesNode;
410405
}
411406

412-
public void refresh() {
413-
setTree();
414-
}
407+
415408

416409
}

0 commit comments

Comments
 (0)