File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
java/src/processing/mode/java Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -840,7 +840,6 @@ public boolean save() throws IOException {
840
840
* Also removes the previously-generated .class and .jar files,
841
841
* because they can cause trouble.
842
842
*/
843
- @ SuppressWarnings ("BooleanMethodIsAlwaysInverted" )
844
843
public boolean saveAs () throws IOException {
845
844
String newParentDir = null ;
846
845
String newSketchName = null ;
Original file line number Diff line number Diff line change @@ -2171,20 +2171,20 @@ protected void handleSaveImpl() {
2171
2171
public boolean handleSaveAs () {
2172
2172
statusNotice (Language .text ("editor.status.saving" ));
2173
2173
try {
2174
- //noinspection StatementWithEmptyBody
2175
- if (!sketch .saveAs ()) {
2174
+ if (sketch .saveAs ()) {
2176
2175
// No longer showing "Done" message except in cases where a
2177
2176
// progress bar is necessary. Message will come from Sketch.
2178
2177
//statusNotice(Language.text("editor.status.saving.done"));
2178
+ return true ;
2179
+
2179
2180
} else {
2180
2181
statusNotice (Language .text ("editor.status.saving.canceled" ));
2181
- return false ;
2182
2182
}
2183
2183
} catch (Exception e ) {
2184
2184
// show the error as a message in the window
2185
2185
statusError (e );
2186
2186
}
2187
- return true ;
2187
+ return false ;
2188
2188
}
2189
2189
2190
2190
Original file line number Diff line number Diff line change @@ -659,7 +659,6 @@ public void toggleBreakpoint(int lineIndex) {
659
659
}
660
660
661
661
662
-
663
662
public boolean handleSaveAs () {
664
663
//System.out.println("handleSaveAs");
665
664
String oldName = getSketch ().getCode (0 ).getFileName ();
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ X https://github.com/processing/processing4/issues/608
4
4
X set all build.xml files to use Java 17
5
5
X also fix several that still had tabs instead of spaces
6
6
X update to JDK 17.0.6+10 from https://adoptium.net/
7
+ X fix inversion of handleSaveAs() introduced in:
8
+ X https://github.com/processing/processing4/commit/aef561a8eb8fa894c5a22c611279a5092e2dbb28
7
9
8
10
manager
9
11
X add 'exports' to the library parameters
@@ -21,6 +23,8 @@ _ https://github.com/processing/processing4/issues/647
21
23
_ lots of folders remaining in 'old' for Modes
22
24
_ were these shut off during debug? need to be moving these to trash (maybe only on startup)
23
25
26
+ _ opening p5jsMode sketch with no local.properties throws an NPE
27
+
24
28
design
25
29
X tool tips for errors/warnings not picking up correct colors
26
30
X also fix the margins and border
You can’t perform that action at this time.
0 commit comments