Commit Graph

330 Commits

Author SHA1 Message Date
Ben Fry 89629a19bb ignore the work folder on windows 2022-01-24 08:17:52 -05:00
Ben Fry d6fe5cac33 renaming macosx to macos in build.xml and the build folder 2022-01-22 17:34:08 -05:00
Ben Fry f2755d597e set minimum Java version for Windows launcher to 17.0.1 2022-01-16 15:13:58 -05:00
Ben Fry aae80172ec remove JavaFX from startup (no longer available for Tools/Modes) 2022-01-16 15:06:43 -05:00
Ben Fry e42c28d578 this setting is the default, remove it 2022-01-14 19:02:24 -05:00
Ben Fry 2e8f074ee9 update ignore for the JDK zip archive 2022-01-14 10:26:38 -05:00
Ben Fry 445605f09e new icon, just using the Big Sur template across platforms 2022-01-14 07:13:03 -05:00
Ben Fry caacf0653c add console encoding to address https://github.com/jdf/Processing.py-Bugs/issues/322 2021-10-04 18:29:42 -04:00
Ben Fry 3effcae548 update with a new round of icons and about screen 2021-08-08 19:54:42 -04:00
Ben Fry 383b4b8eab roll back interface scaling change (fixes #226) 2021-08-01 11:02:05 -04:00
Ben Fry 350e940129 remove old splash screen code and the fugly 1x bmp file 2021-07-10 17:23:46 -04:00
Ben Fry 1a29a8fcb3 switching to the new splash screen class 2021-07-10 17:17:51 -04:00
Ben Fry 7b71581f59 maybe we do the built-in splash screen instead 2021-07-10 12:16:04 -04:00
Ben Fry 1e4ae0e8a2 make the "4" a little smaller 2021-07-10 11:48:35 -04:00
Ben Fry 8f0b9a4551 update icons with temporary "4" logo 2021-07-10 11:39:05 -04:00
Ben Fry bbc1ece756 replace about screen images 2021-07-10 10:23:18 -04:00
Ben Fry add4854478 turn webkit back on again for javafx 2021-07-08 19:58:09 -04:00
Ben Fry ee1e49f5ad fix Windows modules path for JavaFX 2021-06-22 16:01:58 -04:00
Ben Fry b489c11536 properly adding the module path for windows64 2021-06-20 23:17:14 -04:00
Ben Fry e76b2ca32c JavaFX args were backwards 2021-06-20 21:39:21 -04:00
Ben Fry a605ff53ba major change: move JavaFX to its own library 2021-06-20 13:37:04 -04:00
Ben Fry 02b98d1b2e whitespace fixes 2021-06-19 09:13:16 -04:00
Ben Fry 72defaed62 use system display scaling (fixes tiny splash screen) resolves #145 2021-06-19 09:07:56 -04:00
Ben Fry 27a6c5883f make it possible to use JavaFX in Tools/Modes, other minor cleanups 2021-06-19 09:06:22 -04:00
Ben Fry 5b5f6eb952 replace splash screen that was causing Windows crash on startup (fixes #156) 2021-01-18 17:39:40 -05:00
Ben Fry d546447943 update the splash screen to 2021 before the pedants can get to me 2021-01-17 20:24:48 -05:00
Ben Fry 78414c91b7 add temporary about/splash screens 2020-01-18 21:27:13 -05:00
A Samuel Pottinger 003d33f951 Turn off UI scaling for windows.
Frustratingly, use of prior Processing WindowsPlatform code for detecting DPI causes UI scaling to turn off and yields a DPI of 96 regardless of windows display scaling. However, in the current WindowsPlatform, UI scaling is enabled but text size calculation within custom rendering swing elements is incorrect, possibly because there is scaling happening underneath transparently. This causes x positions to be inflated at 125% scaling, for example. On a whole, Windows itself does not recommend scaling other than 100% inside the settings UI and that UI scaling within Java itself makes the custom UI elements look bad. So, this suggests disabling the ui scaling in Java for the editor, leaving the opportunity for Processing to find a new way to detect system scaling in the future and handling it internally. At this time, sketches still seem to be calculating positions correctly though they do appear pixelated with display scaling. Therefore, they are left alone.
2019-11-22 16:53:48 -08:00
A Samuel Pottinger ee299ef935 Move to ANTLR 4 with Java 11 lang features and localization. (#5)
* Move to ANTLR 4 with Java 11 lang features and localization.

Introduces ANTLR4 and Java 8 language feature support within IDE while also adding additional hooks for localization of syntax error messages, addressing https://github.com/processing/processing/issues/3054 and https://github.com/processing/processing/issues/3055.

The PR is broadly a continuation of https://github.com/processing/processing/issues/3055, bringing it up to speed with the latest Processing master plus the changes introduced at https://github.com/processing/processing/pull/5753. **Requires https://github.com/processing/processing/pull/5753 as pre-requisite.** This introduces a number of edits beyond https://github.com/processing/processing/issues/3055 beyond compatibility with current Processing master and https://github.com/processing/processing/pull/5753 including:

 - Update to the grammar itself
 - Change ANTLR listeners to emit `TextTransform.Edit` to unify JDT-based `PreprocessingService` and `JavaBuild`, removing code with duplicate purpose.
 - Introduction of syntax error rewriting with support for localization.
 - Addition of complete localized strings set for English and Spanish.
 - Addition of partial localized strings set for other languages.
 - Refactor of ANTLR-related code for testability and readability
 - Expansion of tests including full parse tests for new Java features (type inference, lambdas).

* Ask travis for ant upgrade prior to run.

* Ask Travis for java11 update.

* Add openjdk ppa

* Travis no confirmation on add ppa.

* Force newer ant on travis.

* Swtich ant download to www-us mirror.

* Switch ant to 1.10.7

* Start x for unit tests in travis.

* More complete start x in travis.

* Revert x in travis.

* Try x in services.
2019-10-05 23:34:38 -07:00
A Pottinger c14695476e Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train.
Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train using a squash of sampottinger processing fork's java11 branch.

**Primary required changes:**
Some changes directly support OpenJFX / OpenJDK 11:

 - Response to image loading changes caused by [JEP 320](https://openjdk.java.net/jeps/320)
 - Use of jmodules as necessitated by [JEP 261](https://openjdk.java.net/jeps/261)
 - Reponse to largely changed file paths caused by [JEP 220](https://openjdk.java.net/jeps/220).
 - Modifications in build system related to AdoptOpenJDK and Java 11 which have a different naming structure for downloads.
 - Allowing use of non-Oracle Java within internal Processing checks.

**Secondary required changes:**
There were some secondary required changes that impacted the usability of Processing after having moved to OpenJFX / OpenJDK 11:

 - Removal of com.apple.eawt calls related to [JEP 272](http://openjdk.java.net/jeps/272)
 - Response to HiDPI support on Windows and Linux in [JEP 263](https://openjdk.java.net/jeps/263)
- Removal of `java.ext.dirs`. Would be forced by [JEP 220](http://openjdk.java.net/jeps/220).
 - Due to bugs on Windows, updated the JNA jars.
 - Changes in downloader build tasks to support AdoptOpenJDK and OpenJFX.
 - Updated org.eclipse.* / equinox jars.
 - Some optimization around size of distribution.
 - Update of AppBundler.
 - Some changes in formulation of classpath and modifications in PreprocessingService given [JEP 261](https://openjdk.java.net/jeps/261).

**Incidental changes:**
This was (ahem) a bit of a larger PR with the above modifications. So, I wanted to introduce automated tests when possible and convenient along with a few changes for platform sustainability in order to support development:

 - Addition of cross-building capability (!) made possible by AdoptOpenJDK.
 - Addition of mockito for testing.
 - Upgrade of junit.
 - Addition of ant-contrib.
 - Standardized nomenclature around JRE / JDK in `build/build.xml`
 - Deduplication of code in `jre/build.xml`.
 - Addition of JavaDoc in a few places.
 - Some refactoring of PImage / Shape to support increased testing and readability in image manipulation code.
2019-10-05 20:49:33 -07:00
Ben Fry fe932b8c7e add 2019 to the About/splash screen 2019-01-18 16:09:18 -08:00
Ben Fry 4e13ae5404 add 2018 to the about/splash screen 2018-03-18 20:07:26 -04:00
Ben Fry e5ed6ae7f1 possible fix for visual artifacts seen in #4700 2017-02-12 10:02:10 -05:00
Ben Fry 8b74491e69 fix direction of slashes 2016-12-23 03:40:25 -05:00
Ben Fry cd35a0a04b better error message when running from the .zip file 2016-12-04 16:47:19 -05:00
Ben Fry 534ca5d86f fixes for java.ext.dirs on Windows (more for #4623) 2016-08-19 15:39:02 -04:00
Ben Fry bcd7f9daf2 work on quoting of java.ext.dirs (#4623) 2016-08-19 14:07:04 -04:00
Ben Fry 574cfd0442 updated splash screen for Windows 2016-08-16 18:13:49 -04:00
Ben Fry ef7c4525f3 tweaks and testing for ext.dirs handling 2016-08-12 15:27:18 -04:00
Ben Fry dbdb5416af remove java.ext.dirs on startup (fixes #4608) 2016-08-06 16:49:55 -04:00
gohai f75fc3762a Update to JNA 4.2.0
The name of the subfolder containing jnidispatch.dll for 64-bit Windows changed as well.
2016-05-07 13:31:27 +02:00
Ben Fry 80fe29e4a5 Merge pull request #4387 from JakubValtar/update-jdt
Update JDT to 4.5.2
2016-04-06 21:25:42 -07:00
Jakub Valtar d50a571879 Update min version
...so we can get rid of the workaround for JDK bug
2016-04-04 20:58:21 +02:00
Jakub Valtar 8cae611554 Update JDT to 4.5.2 2016-04-04 20:12:38 +02:00
Jakub Valtar c3222348e1 Styling 2015-10-30 03:30:37 +01:00
Jakub Valtar 1345f77f93 Workaround for JRE bug freezing the PDE
Because of a JRE bug, code completion will occasionally freeze the PDE.
Never seen this one before, however, it happened to me three times in a
row while I was giving a lecture today and I had to kill the PDE and
write all the code again. I can reproduce it back to beta 7. It is
caused by JIT compiler, workaround is to disable it for this particular
method. See https://bugs.openjdk.java.net/browse/JDK-8060036 and
http://kingsfleet.blogspot.com.br/2014/11/but-thats-impossible-or-finding-out.html
2015-10-30 03:03:58 +01:00
Ben Fry c182cecd3d add new splash screen 2015-09-29 21:09:19 -04:00
Ben Fry c4ffdfe68c debugging and forcing use of the local version of jna for #3800 and #3624 2015-09-20 11:07:56 -04:00
Ben Fry 4c192a5cda looking into Windows launcher issues #3543 2015-08-06 14:16:17 -04:00
Ben Fry 26999290c5 new icons and build script additions to cover them 2015-06-03 15:43:04 -05:00