New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added examples-package as a new contribution type. #2795

merged 11 commits into from Aug 19, 2014


None yet
4 participants
Copy link

joelmoniz commented Aug 14, 2014

This fixes #2582 and resolves #2444.

In this branch, the following have been implemented:

  • Added a new examples-package type, and the accompanying contribution manager.
  • Added an "Add Examples" button to the Examples window, from where the Contribution Manager is to be accessed, as well as to the Open option of the Toolbar Menu
  • Gave the UI of the Examples JTree a new look:


  • Prevented old backup folders from getting displayed in the mode/tool/library/examples-package sub-menus in both the Open option of the Toolbar Menu.

Note that for this mode, a new field "compatibleModesList" is required in the contributions.txt (for only example entries) and the files. This will contain a list the fully quaififed classname of the mode that the examples-package is comaptible with (as can be seen from in the file).


To test this feature, replace this line with this link. Then, switch to Java (2.0) mode and go to file>examples>Add Examples... and install the contribution that displays there.

benfry added a commit that referenced this pull request Aug 19, 2014

Merge pull request #2795 from joelmoniz/addExamplesManagerRebased
Added examples-package as a new contribution type.

@benfry benfry merged commit 7cf8211 into processing:master Aug 19, 2014


This comment has been minimized.

Copy link

jdf commented Aug 19, 2014


openExamplesManagerPanel.setBorder(BorderFactory.createCompoundBorder(lineBorder, paddingBorder));
// openExamplesManagerLabel.set
openExamplesManagerPanel.setCursor(new Cursor(Cursor.HAND_CURSOR));

This comment has been minimized.


aengelke Aug 19, 2014


@joelmoniz Is this necessary? It looks ugly on Windows. Probably a JButton would be better here? I could open a PR to fix.

@joelmoniz joelmoniz deleted the joelmoniz:addExamplesManagerRebased branch Dec 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment