Skip to content

Commit

Permalink
Merge pull request #3814 from processing/revert-3804-gsoc-ExamplesWindow
Browse files Browse the repository at this point in the history
Revert "Examples frame does not flikers when contribution is changed"
  • Loading branch information
benfry committed Sep 17, 2015
2 parents e8dda21 + a9c0cae commit 0ff60fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 1 addition & 2 deletions app/src/processing/app/Base.java
Expand Up @@ -493,7 +493,6 @@ public void refreshContribs(ContributionType ct) {
if (ct == ContributionType.LIBRARY) {
for (Mode m : getModeList()) {
m.rebuildImportMenu();
m.refreshExampleFrame();
}

} else if (ct == ContributionType.MODE) {
Expand All @@ -511,7 +510,7 @@ public void refreshContribs(ContributionType ct) {
} else if (ct == ContributionType.EXAMPLES) {
rebuildContribExamples();
for (Mode m : getModeList()) {
m.refreshExampleFrame();
m.rebuildExamplesFrame();
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions app/src/processing/app/Mode.java
Expand Up @@ -589,12 +589,6 @@ public void rebuildExamplesFrame() {
}
}

public void refreshExampleFrame() {
if (examplesFrame != null) {
examplesFrame.refresh();
}
}


public void showExamplesFrame() {
if (examplesFrame == null) {
Expand Down
9 changes: 1 addition & 8 deletions app/src/processing/app/ui/ExamplesFrame.java
Expand Up @@ -92,11 +92,6 @@ public void actionPerformed(ActionEvent e) {
}
});

setTree();
}


private void setTree() {
JPanel examplesPanel = new JPanel();
examplesPanel.setLayout(new BorderLayout());
examplesPanel.setBackground(Color.WHITE);
Expand Down Expand Up @@ -409,8 +404,6 @@ protected DefaultMutableTreeNode buildContribTree() {
return contribExamplesNode;
}

public void refresh() {
setTree();
}


}

0 comments on commit 0ff60fd

Please sign in to comment.