Commit Graph

2955 Commits

Author SHA1 Message Date
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
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
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
1b53846fb4 remove unnecessary lines that were triggering warnings 2019-10-07 17:39:30 -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
REAS
0fdfe4c711 Reference, add more related functions to size() 2019-07-25 14:56:54 -07:00
REAS
22ba745cec Reference documentation for the 'str' parameter for text() 2019-07-25 14:52:53 -07:00
REAS
bf87c81ccf Reference update for XML getChild() 2019-07-25 14:08:47 -07:00
REAS
144027d5e6 Reference change to PApplet 2019-07-25 12:42:01 -07:00
REAS
09b964aa99 curvePoint() reference update 2019-07-25 12:23:02 -07:00
REAS
25d126f056 Hide 'items' param for StringList 2019-07-25 11:46:35 -07:00
Ben Fry
f13952f711 space removal 2019-02-03 16:40:30 -05:00
Ben Fry
137d718907 fix "could not parse -1 for --display" message 2019-02-03 16:22:17 -05:00
Ben Fry
e898c6d7a3 fixing more resource leaks in loadJSONObject() and loadJSONArray() 2019-01-31 18:57:21 -05:00
Ben Fry
f1f1b8b12b couple notes and trying to fix resource leaks 2019-01-31 17:53:36 -05:00
REAS
f444288ad6 Update for pop() and push() reference, correction 2019-01-23 10:16:06 -08:00
REAS
0a9cad7057 Update for pop() and push() reference, re-genererated PApplet 2019-01-23 10:12:35 -08:00
REAS
6f1b231057 Update for pop() and push() reference 2019-01-23 10:10:06 -08:00
REAS
1fb6300235 Update for circle() and square() reference 2019-01-23 09:23:42 -08:00
Ben Fry
1cef69f5b0 cleaning up from PRs, other todo items 2019-01-23 11:30:14 -05:00
Ben Fry
148697da70 Merge pull request #5686 from monkstone/patch-1
Update missing @Deprecated tags in PApplet.java
2019-01-23 11:00:17 -05:00
Ben Fry
82a56ed36f circle() and square() reference 2019-01-23 08:09:46 -05:00
REAS
cfb5936bbb Changes to documentation for circle() and square() 2019-01-22 22:26:40 -08:00
Mark Slee
fe3990355c Fix bug with control-click for RIGHT on Mac OS, addresses #5765
When a control-click occurs, the macosxLeftButtonWithCtrlPressed flag
was set, but was never being unset due to accidental comparison with
the button variable instead of action variable. All future mouse
operations reported as right-click on Mac OS. This fixes the comparison
so that only the operations from a mouse press with the control button
down are reported as RIGHT. The flag is cleared after mouse release.
2019-01-22 15:35:02 -08:00
Ben Fry
76eeaccedc normalize the behavior of remove() in the Dict classes 2019-01-20 09:52:29 -08:00
Ben Fry
de20fffba7 more notes about font issues and performance 2019-01-18 15:59:15 -08:00
Ben Fry
9e14f98ec3 adding circle, square, push, pop 2019-01-18 15:59:05 -08:00
Ben Fry
eb60ee2d05 add push() and pop() 2019-01-18 15:17:51 -08:00
Ben Fry
ed165727a3 add circle() and square() 2019-01-18 15:16:21 -08:00
Ben Fry
75efd1a212 greatly improve startup slowness on systems that have a lot of fonts installed 2019-01-18 14:32:22 -08:00
Ben Fry
fca49356b3 cleanups for default font warning (#5606 and #5481) 2019-01-18 12:02:56 -08:00
Ben Fry
642f9a4495 Merge pull request #5605 from FlorisVO/master
Shows a warning when createFont can't find a named font (#5481)
2019-01-18 11:50:24 -08:00
Ben Fry
ab6cd9f922 additional cleanup to SVG code after incorporating #4168 2019-01-18 11:44:12 -08:00
Ben Fry
f82e7039d7 Merge pull request #4168 from poqudrof/master-origin
Extended support of SVG format
2019-01-18 11:35:32 -08:00
Ben Fry
69bee72578 remove unnecessary cast 2019-01-18 09:55:51 -08:00
codeanticode
6739c2c862 create attribute in setAttrib() functions if does not exist, and also fix indexing bug 2019-01-15 13:33:04 -05:00
codeanticode
5d05885774 set tessGeo when collecting custom vertex attributes 2019-01-15 13:30:24 -05:00
Ben Fry
a23efc8c9c Merge pull request #5699 from JakubValtar/fix-pgraphicsopengl-setsize
Recreate FBOs when offscreen PGraphicsOpenGL is resized
2019-01-11 19:42:36 -05:00