mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Revert "Examples frame does not flikers when contribution is changed"
This commit is contained in:
@@ -493,7 +493,6 @@ public class Base {
|
||||
if (ct == ContributionType.LIBRARY) {
|
||||
for (Mode m : getModeList()) {
|
||||
m.rebuildImportMenu();
|
||||
m.refreshExampleFrame();
|
||||
}
|
||||
|
||||
} else if (ct == ContributionType.MODE) {
|
||||
@@ -511,7 +510,7 @@ public class Base {
|
||||
} else if (ct == ContributionType.EXAMPLES) {
|
||||
rebuildContribExamples();
|
||||
for (Mode m : getModeList()) {
|
||||
m.refreshExampleFrame();
|
||||
m.rebuildExamplesFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -589,12 +589,6 @@ public abstract class Mode {
|
||||
}
|
||||
}
|
||||
|
||||
public void refreshExampleFrame() {
|
||||
if (examplesFrame != null) {
|
||||
examplesFrame.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void showExamplesFrame() {
|
||||
if (examplesFrame == null) {
|
||||
|
||||
@@ -92,11 +92,6 @@ public class ExamplesFrame extends JFrame {
|
||||
}
|
||||
});
|
||||
|
||||
setTree();
|
||||
}
|
||||
|
||||
|
||||
private void setTree() {
|
||||
JPanel examplesPanel = new JPanel();
|
||||
examplesPanel.setLayout(new BorderLayout());
|
||||
examplesPanel.setBackground(Color.WHITE);
|
||||
@@ -409,8 +404,6 @@ public class ExamplesFrame extends JFrame {
|
||||
return contribExamplesNode;
|
||||
}
|
||||
|
||||
public void refresh() {
|
||||
setTree();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user