Commit Graph

4448 Commits

Author SHA1 Message Date
Ben Fry
340febdc6e Replace C/C++ style array declarations with Java style array decl… (#49)
Replace C/C++ style array declarations with Java style array declarations
2020-01-18 19:49:36 -05:00
Ben Fry
47b1ccca07 adding a separate target so that jogl binaries are not killed by accident 2020-01-18 19:45:38 -05:00
Ben Fry
ff3fe5918d remove JOGL from the repo, switch it to auto-download 2020-01-18 19:42:39 -05:00
Ben Fry
0447889151 removing jogl from the repo... may need to bring this back 2020-01-18 19:40:33 -05:00
Liam James
f80f1ed0e2 Migrate array declaration fixes from #5981 2020-01-19 10:18:08 +10:00
Ben Fry
96b4e841b9 further simplifying the jdk downloader 2020-01-18 13:54:33 -05:00
Ben Fry
b8c6331e81 notes about bugs fixed 2020-01-17 15:00:16 -05:00
Ben Fry
bf3f728bce update with bugs fixed by the big merge 2020-01-17 14:12:13 -05:00
Ben Fry
c5b9f9ba67 update Eclipse classpaths for 11.0.6 2020-01-17 13:50:42 -05:00
Ben Fry
875b1ab719 rotateZ() fixed elsewhere 2020-01-07 13:48:17 -05:00
Ben Fry
8c082293af recent updates and contribs 2019-12-03 12:07:25 -05:00
Stan le Punk
1ba2a25180 Fix RotateZ bug 2019-12-01 21:58:05 +01: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
Ben Fry
da7fc5f366 Merge pull request #33 from processing/fix_can_access
Fixed Table's use of deprecated isAccessible
2019-11-26 05:42:10 -05:00
Sam Pottinger
9735fb26c4 Added missing methods-build requirement for core build.
If not running tests but building, methods-build may be left off. This restores that requirement.
2019-11-25 18:23:53 -08:00
Sam Pottinger
de21d68098 Add methods-build as a requirement for testingin core. 2019-11-25 18:19:03 -08: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
Sam Pottinger
2eea68a096 Updated display density detection to use GraphicsConfiguration.
Reflexive access is no longer allowed so we need to transition displayDensity and isRetina to GraphicsConfiguration. As part of this, it's worth noting that other displays outside of OS X may have a retina-like display.
2019-11-25 16:19:24 -08:00
Sam Pottinger
01d508afce Minor formatting fixes on PR #33. 2019-11-25 14:53:36 -08:00
Sam Pottinger
2dd098eb4b Fixed Table's use of deprecated isAccessible, finishing parseInto.
Fixed the Table's use of the deprected isAccessible, finishing the parseInto method in the process in order to test taht the new implementation is "correct". Note that there is not a published API for this method on processing.org so it is unclear if the interface's intended behavior was maintained. See https://processing.github.io/processing-javadocs/core/processing/data/Table.html#parseInto-java.lang.Object-java.lang.String-.
2019-11-25 14:47:12 -08:00
Ben Fry
e8fd52f76e Add support for static imports through pdex's ImportStatement (#18)
Add support for static imports through pdex's ImportStatement
2019-11-15 20:55:15 -05:00
Ben Fry
f0125fea0e making note of recent updates and merges 2019-11-15 14:04:04 -05:00
Sam Pottinger
abe2684ee9 Fixed export issue with webkit export inside javafx. 2019-11-04 17:14:21 -08:00
Ben Fry
bfcc228d82 notes about recent changes 2019-10-20 15:58:13 -04:00
A Samuel Pottinger
3340630c1b Merge branch 'master' into fix_jdk_naming 2019-10-10 22:54:38 -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
878e909004 finish removing apple.jar, roll ThinkDifferent into MacPlatform 2019-10-08 18:01:01 -04:00
Ben Fry
e78f0a0226 removing apple.jar, modify ThinkDifferent to use Java 9+ Desktop APIs 2019-10-08 17:51:30 -04:00
Ben Fry
2a8ed1ee8a formatting cleanups and notes 2019-10-08 15:34:55 -04:00
Ben Fry
ff80f4d552 replacing MACOSX with MACOS 2019-10-08 15:01:17 -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
269f626f98 incorporate https://github.com/processing/processing/pull/5881 for FBO fix on Intel HD Graphics 3000 devices 2019-10-07 18:27:24 -04:00
Ben Fry
8f994389c4 introduce MACOS constant, deprecate MACOSX 2019-10-07 18:23:34 -04:00
Ben Fry
ad27795c0e change target platform to 11 2019-10-07 18:23:19 -04:00
Ben Fry
1b53846fb4 remove unnecessary lines that were triggering warnings 2019-10-07 17:39:30 -04:00
Ben Fry
c51d6fb156 get JavaFX working in Eclipse 2019-10-07 17:39:14 -04:00
Ben Fry
2c14d72b7d notes from todo items 2019-10-07 17:38:44 -04:00
Ben Fry
06bf5566e8 Merge pull request #1 from sampottinger/master
Java 11, OpenJDK, ANTLR 4, and Travis
2019-10-07 16:53:54 -04:00
Ben Fry
2593f56b8a todo items and an ignore for dated folders 2019-10-07 10:25:45 -04:00
A Pottinger
0febfce456 Fix LongDict @nowebref 2019-10-06 18:10:10 -07:00
A Pottinger
7cad017623 Recover lost changes in cut over to sampottinger/processing4.
Fix some recent changes that got lost in the cut over from processing/processing4 for sampottinger forks. Addresses issues raised in https://github.com/processing/processing4/pull/1.
2019-10-06 17:58:19 -07:00
A Pottinger
d02ad8ff3f Fix formatting issue in PImage.
Fix minor formattting issue in PImage related to https://github.com/processing/processing4/pull/1.
2019-10-06 17:53:00 -07:00
A Pottinger
554ace347c Revert changes in comments inside PApplet and PGraphics.
Related to feedback recieved on https://github.com/processing/processing4/pull/1, revert changes in docstrings possibly caused by reference mismatch.
2019-10-06 17:49:23 -07: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
88c7478471 avoid NPE when the matrix is null 2019-10-04 07:12:23 -04:00
REAS
9ec706889f Removing DoubleDict DoubleList LongDict LongList from Reference 2019-07-26 15:47:21 -07:00
REAS
5d7d4cf9a0 Changes for pixel reference for density 2019-07-26 14:54:20 -07:00
REAS
305d4ea762 Add 'gray' parameter info to reference 2019-07-25 16:43:59 -07:00