Skip to content

Commit 4091639

Browse files
committed
change menu items for Add Library/Mode/Tool to Manage
1 parent 9e3cea9 commit 4091639

File tree

6 files changed

+63
-38
lines changed

6 files changed

+63
-38
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This repository contains the source code for the <a href="https://processing.org
55
If you're interested in using Processing, get started at the <a href="https://processing.org/download">download</a> page, or read more about the project at the <a href="https://processing.org/">home</a> page. There are also several <a href="https://processing.org/tutorials">tutorials</a> to complement the hundreds of examples that are included with the software itself.
66

77

8-
## Processing 4.0
8+
## Processing 4.0
99

1010
Processing 4 makes important updates to the code to prepare the platform for its future. Most significantly, this includes the move to Java 17 and support for new Java language features. The changes should be transparent to most users, but because of the massive shift behind the scenes, this is 4.0.
1111

@@ -25,7 +25,22 @@ This software is currently in beta. We don't have a schedule for the final 4.0 r
2525

2626
As with all releases, we'll do [everything possible](https://twitter.com/ben_fry/status/1426282574683516928) to avoid breaking API. However, there will still be tweaks that have to be made. We'll try to keep them minor. Our goal is stability, and keeping everyone's code running.
2727

28-
The full list of changes can be seen in [the release notes for each version](https://github.com/processing/processing4/blob/master/build/shared/changes.md), this is only a list of things that may break existing projects (whether sketches, Libraries, Modes, etc.)
28+
The full list of changes can be seen in [the release notes for each version](https://github.com/processing/processing4/blob/master/build/shared/changes.md). The list below only covers internal changes that may have an impact on Libraries, Modes, or Tools.
29+
30+
31+
### Beta 8
32+
33+
* Renamed the Add Mode, Add Library, and Add Tool menu items to Manage Mmodes, Manage Libraries, and Manage Tools. This will require translation updates for the new text:
34+
* `toolbar.add_mode = Add Mode... ``toolbar.manage_modes = Manage Modes…`
35+
* `menu.library.add_library = Add Library...``menu.library.manage_libraries = Manage Libraries…`
36+
* `menu.tools.add_tool = Add Tool...``menu.tools.manage_tools = Manage Tools…`
37+
38+
39+
### Beta 6
40+
41+
* Major rewrite of `handleOpen()`, now possible to use something besides the folder name for the main sketch file (see `changes.md` for details).
42+
43+
* Now using Java 17.0.2+8 from [Adoptium](https://adoptium.net/).
2944

3045

3146
### Beta 3

app/src/processing/app/Base.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -851,9 +851,10 @@ public void populateToolsMenu(JMenu toolsMenu) {
851851
toolsMenu.addSeparator();
852852
}
853853

854-
JMenuItem item = new JMenuItem(Language.text("menu.tools.add_tool"));
855-
item.addActionListener(e -> ContributionManager.openTools());
856-
toolsMenu.add(item);
854+
JMenuItem manageTools =
855+
new JMenuItem(Language.text("menu.tools.manage_tools"));
856+
manageTools.addActionListener(e -> ContributionManager.openTools());
857+
toolsMenu.add(manageTools);
857858
}
858859

859860

app/src/processing/app/Mode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ public void rebuildImportMenu() { //JMenu importMenu) {
497497
importMenu.removeAll();
498498
}
499499

500-
JMenuItem addLib = new JMenuItem(Language.text("menu.library.add_library"));
501-
addLib.addActionListener(e -> ContributionManager.openLibraries());
502-
importMenu.add(addLib);
500+
JMenuItem manageLibs = new JMenuItem(Language.text("menu.library.manage_libraries"));
501+
manageLibs.addActionListener(e -> ContributionManager.openLibraries());
502+
importMenu.add(manageLibs);
503503
importMenu.addSeparator();
504504

505505
rebuildLibraryList();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ public void rebuildModePopup() {
480480
}
481481

482482
modePopup.addSeparator();
483-
JMenuItem addLib = new JMenuItem(Language.text("toolbar.add_mode"));
484-
addLib.addActionListener(e -> ContributionManager.openModes());
485-
modePopup.add(addLib);
483+
JMenuItem manageModes = new JMenuItem(Language.text("toolbar.manage_modes"));
484+
manageModes.addActionListener(e -> ContributionManager.openModes());
485+
modePopup.add(manageModes);
486486

487487
Toolkit.setMenuMnemsInside(modePopup);
488488
}

build/shared/lib/languages/PDE.properties

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ menu.sketch.tweak = Tweak
6767
menu.sketch.stop = Stop
6868
# ---
6969
menu.library = Import Library...
70-
menu.library.add_library = Add Library...
70+
# menu.library.add_library = Add Library...
71+
menu.library.manage_libraries = Manage Libraries…
7172
menu.library.contributed = Contributed
7273
menu.library.no_core_libraries = mode has no core libraries
7374
# ---
@@ -122,7 +123,8 @@ menu.tools.create_font = Create Font...
122123
menu.tools.archive_sketch = Archive Sketch
123124
menu.tools.fix_the_serial_lbrary = Fix the Serial Library
124125
menu.tools.install_processing_java = Install “processing-java”
125-
menu.tools.add_tool = Add Tool...
126+
# menu.tools.add_tool = Add Tool...
127+
menu.tools.manage_tools = Manage Tools…
126128

127129
# | File | Edit | Sketch | Debug | Tools | Help |
128130
# | Help |
@@ -316,7 +318,8 @@ toolbar.new = New
316318
toolbar.open = Open
317319
toolbar.save = Save
318320
# toolbar.export_application = Export Application
319-
toolbar.add_mode = Add Mode...
321+
# toolbar.add_mode = Add Mode...
322+
toolbar.manage_modes = Manage Modes…
320323

321324
# [Debug] [Continue] [Step] [Stop] [Toggle Breakpoints] [Variable Inspector]
322325
#toolbar.debug.continue = Continue

todo.txt

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ X NullPointerException when changing the theme
1313
X https://github.com/processing/processing4/issues/476
1414
X suppress java.lang.NoSuchMethodError: accessibilityHitTest error
1515
X https://github.com/processing/processing4/issues/368
16+
X change to "Modes..." or "Manage Modes..." and same for Libraries, etc
17+
X toolbar.add_mode = Add Mode... ->
18+
X toolbar.manage_modes = Manage Modes…
19+
X menu.library.add_library = Add Library... ->
20+
X menu.library.manage_libraries = Manage Libraries…
21+
X menu.tools.add_tool = Add Tool... ->
22+
X menu.tools.manage_tools = Manage Tools…
23+
24+
25+
_ open dialog extensions only work for the current Mode
26+
_ i.e. in Java Mode, won't list .js files as candidates
27+
28+
_ on release: submit to Microsoft
29+
_ https://www.microsoft.com/en-us/wdsi/filesubmission
30+
_ https://aka.ms/wdsi
31+
_ https://www.microsoft.com/security/blog/2018/08/16/partnering-with-the-industry-to-minimize-false-positives/
1632

1733
design
1834
X set minimum size for scroll bar thumb
@@ -53,18 +69,14 @@ X removing accents was trashing some input too
5369
X redo category tallying for contribs (Libraries only anyway?)
5470
X gets rid of maze of code that's storing libraries by their category
5571
X remove unnecessary code that tracks contribs by category
56-
X this was hiding the issue that was causing contribs to be added several times,
72+
X this was hiding the issue that was causing contribs to add several times
5773
X because the add() was inside the category loop of that code
5874
X remove unused 'restart' flagging code, setRestartFlag() never used
5975
X all that was left was maintenance of when that's been set, so...
6076
X allow update of the current Mode
6177
X if doing an update (not just delete), close sketches and re-open
6278
X if doing a delete, require sketches to be closed
6379
X change up StatusPanelDetail constructor to clean up accessors
64-
X disable hashCode() implementation in Contribution
65-
X was getting in the way of comparisons
66-
_ but need to compare the entries differently so there aren't dupes
67-
_ i.e. it was doing a name comparison, so need to swap by name
6880

6981
preproc
7082
X correctly handling sketch renderer with fullScreen()
@@ -88,6 +100,11 @@ X https://github.com/processing/processing4/issues/279
88100
X https://github.com/processing/processing4/pull/436
89101

90102

103+
manager
104+
X disable hashCode() implementation in Contribution
105+
X was getting in the way of comparisons
106+
_ but need to compare the entries differently so there aren't dupes
107+
_ i.e. it was doing a name comparison, so need to swap by name
91108
_ currently no indication that contrib download failed
92109
_ so the 'try again' won't show up; everything looks fine
93110
_ (was this for the contrib listing? or an actual contrib?)
@@ -101,11 +118,14 @@ _ this one shouldn't be in a single tab
101118
_ and it should include all contribs (method from Base to get in one swoop?)
102119
_ this is also likely the cause of per-Mode weirdness
103120
_ holy s*t ContributionTableModel is using all of the contribs
121+
_ after failed update of Mode, the button is no longer available
122+
_ have to click something else, then click back on the Mode line again
123+
_ remove updateInProgress from StatusPanelDetail
124+
_ when starting in p5jsMode, contrib manager shows no green checks for libs
125+
_ tricky because those aren't gonna show up in 'Add Library'
126+
_ which is another case for a separate 'contrib manager' thing
127+
_ maybe that's the update button? when no updates, it's still a button?
104128

105-
_ change to "Modes..." or "Manage Modes..." and same for Libraries, etc
106-
107-
_ open dialog extensions only work for the current Mode
108-
_ i.e. in Java Mode, won't list .js files as candidates
109129

110130
_ if a sketch is in the docs folder, try triggering macos access dialog
111131
_ do it once for the root, then see if it allows the folders inside as well
@@ -115,22 +135,8 @@ _ get rid of IgnorableException
115135

116136
_ contrib/mode/lib/example List objects in Base: which should be Set objects
117137

118-
_ after failed update of Mode, the button is no longer available
119-
_ have to click something else, then click back on the Mode line again
120-
121138
_ lots of rewriting to use SwingWorker
122139
_ https://docs.oracle.com/javase/tutorial/uiswing/concurrency/worker.html
123-
_ when starting in p5jsMode, going to the contrib manager shows no green checks for libs
124-
_ tricky because those aren't gonna show up in 'Add Library'
125-
_ which is another case for a separate 'contrib manager' thing
126-
_ maybe that's the update button? when no updates, it's still a button?
127-
128-
_ remove updateInProgress from StatusPanelDetail
129-
130-
_ on release: submit to Microsoft
131-
_ https://www.microsoft.com/en-us/wdsi/filesubmission
132-
_ https://aka.ms/wdsi
133-
_ https://www.microsoft.com/security/blog/2018/08/16/partnering-with-the-industry-to-minimize-false-positives/
134140

135141
_ remove checkbox for detaching sketch name
136142
_ just do this manually, and Save As will reset the name
@@ -161,7 +167,7 @@ _ otherwise impossible to know how to populate the Examples window
161167

162168
sketchbook
163169
_ fix up the code for sketchbook building
164-
_ is it time to make this into a tree object of some sort?
170+
_ is it time to make the internal representation into a tree object
165171
_ and then build the GUI versions separately (on the EDT)
166172
_ Base.checkSketchFolder() is used to identify sketches for the sketchbook frame
167173
_ but it assumes that it's folder name + default extension as the name for it

0 commit comments

Comments
 (0)