Commit Graph

1922 Commits

Author SHA1 Message Date
Ben Fry 78414c91b7 add temporary about/splash screens 2020-01-18 21:27:13 -05:00
Ben Fry 5d2bc3cbbc formatting fixes and minor edits 2020-01-18 20:53:09 -05:00
Ben Fry ee35cf2ad4 write revision notes, replace revisions.txt with changes.md 2020-01-18 20:49:53 -05:00
Ben Fry c183c683c8 switching to changes.md instead of revisions.txt 2020-01-18 20:17:36 -05:00
Ben Fry dcf0d386a1 tweak welcome screen text 2020-01-18 17:18:38 -05:00
Ben Fry 2f0da33ffc disable tests 2020-01-18 17:16:56 -05:00
Ben Fry 880e5c71b6 maybe it wasn't cookies 2020-01-18 17:03:04 -05:00
Ben Fry 272457bb6b turn cookies back on 2020-01-18 17:00:52 -05:00
Ben Fry cae266744b remove the hash stuff and pre-11 versions of jdk.dir 2020-01-18 16:56:44 -05:00
Ben Fry 0ca766cb95 couple notes about downloader 2020-01-18 15:13:41 -05:00
Ben Fry 9d79ff63fc simplify further; trade three distinct classes for two url creation methods 2020-01-18 15:06:26 -05:00
Ben Fry 22a8e14904 local filename is never overridden, move into main class 2020-01-18 14:50:27 -05:00
Ben Fry 4fa07698f8 simplifying the downloader further 2020-01-18 14:47:46 -05:00
Ben Fry 2e97a52f2d remove jre alias, support jdk or jfx, always lowercase 2020-01-18 14:11:35 -05:00
Ben Fry 47dec86327 remove HASH variable since unused 2020-01-18 14:00:10 -05:00
Ben Fry 48c3a0ba59 remove Oracle test 2020-01-18 14:00:00 -05:00
Ben Fry 36bb9ab958 remove hash entry from the test 2020-01-18 13:57:05 -05:00
Ben Fry 96b4e841b9 further simplifying the jdk downloader 2020-01-18 13:54:33 -05:00
Ben Fry 51db7f8085 remove unused Welcome2 class, update the welcome screen, remove version num from Help menu 2020-01-17 14:59:22 -05:00
Ben Fry 1ff826b843 removing downloader bits (i.e. Oracle) that will not be used 2020-01-17 14:29:25 -05:00
Ben Fry 806b1b9f3b bump the build to use 11.0.6 2020-01-16 22:23:00 -05:00
A Pottinger 6ed36f7abb Responded to feedback on #42.
Responded to @benfry feedback on #42 (https://github.com/processing/processing4/pull/42), breaking the README into two files with a new README in the build directory.
2019-12-26 10:11:24 -08:00
Sam Pottinger d0a092f27d Move to Java 11.0.5.
It looks like the LTS train is on 11.0.5 but we are currently on 11.0.2.
2019-11-27 10:39:59 -08:00
Ben Fry b05c46214b Merge pull request #38 from processing/ant_test_refactor
Removed test from the build / run targets but left in for dist.
2019-11-26 05:43:32 -05:00
Sam Pottinger 7efe9b0c85 Removed test from the build / run targets but left in for dist.
Refactored ant build chain to allow building / running without execution of tests but ensure tests are run during dist. Note that tests are still runnable under the test target itself. Resolves #8.
2019-11-25 18:09:01 -08: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
Ben Fry f41ed83a8d add Ukranian translation update from https://github.com/processing/processing/pull/5944 2019-11-15 14:03:23 -05:00
A Pottinger 48786a88d0 Remove comment on gitignore for build. 2019-10-10 23:25:06 -07:00
A Pottinger 9725e79f81 Merge branch 'fix_jdk_naming' of github.com:sampottinger/processing4 into fix_jdk_naming 2019-10-10 23:22:13 -07:00
A Pottinger cfd61a074a Fix windows javafx temp folder cleanup.
Remove the javafx expansion of the zip archive on windows after build completes.
2019-10-10 23:21:58 -07:00
A Samuel Pottinger 3340630c1b Merge branch 'master' into fix_jdk_naming 2019-10-10 22:54:38 -07:00
A Pottinger 27836ac1a7 Started temp directory cleanup for JDK working files. 2019-10-10 22:38:12 -07:00
A Pottinger c1077d993f Update naming convention for JDK downloads.
In response to https://github.com/processing/processing4/issues/6, fix up naming for JDK downloads and some leftover .gitignore edits.
2019-10-10 21:34:35 -07:00
A Pottinger d87032d278 Updated gitignores for bin-test and JDKs.
In response to https://github.com/processing/processing4/issues/6, update gitignores so that JDKs and bin-test are excluded.
2019-10-10 21:27:08 -07:00
Ben Fry dc637f39a7 ignoring jdk bits until #6 can be resolved 2019-10-08 18:02:23 -04:00
Ben Fry dfb4542dc7 Merge pull request #5 from sampottinger/master
Update ant / javac language targets
2019-10-08 14:24:14 -04:00
A Pottinger 7463042501 Switch to 11 build target / source on javac.
Minor bit of cleanup in the ant scripts around the build src and target on javac, enabling use of Java 11 language features within processing itself. Note that the build is sustained on either 1.8 or 11 in terms of lanugage features but the code is no longer compatible with the Java 8 runtime due to backwards-incompatable changes made starting in Java 9.
2019-10-08 08:22:28 -07:00
Ben Fry 63b73df844 ignore test files 2019-10-07 19:19:19 -04: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 2b853b83ab Updated license text.
License links in top level license file to include third party information. Specifically, in follow up to processing 5753, some updates to the license.txt file, reformatting to make it easier to find third party license information and to navigate the processing license itself.
2019-10-05 21:20:24 -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
REAS 9ec706889f Removing DoubleDict DoubleList LongDict LongList from Reference 2019-07-26 15:47:21 -07:00
Ben Fry 4ab47d28f2 attempt to use 8u212, but Oracle has broken the download 2019-04-22 20:30:32 -04:00
Ben Fry 983d962a64 update AppBundler, use newer macOS SDK, preserve attributes where possible 2019-04-21 08:30:47 -04:00
Ben Fry 80eac720c7 preserve file attributes so things don't appear modified; fix some indents lost in tab conversion 2019-04-21 08:12:20 -04:00
Ben Fry 5b0b8fdba1 use ctrl-page up/down for tabs on Windows (fixes #5794) 2019-02-15 14:59:39 -05:00
Ben Fry 137d718907 fix "could not parse -1 for --display" message 2019-02-03 16:22:17 -05:00
Ben Fry c14ac5260c updating date for release 2019-02-03 16:04:45 -05:00
Ben Fry 386739f0bb write release notes 2019-02-01 16:57:22 -05:00
Ben Fry cf2fb37ad7 fix the key shortcut for Redo on Windows (fixes #5773) 2019-01-26 13:03:28 -05:00