Commit Graph

2992 Commits

Author SHA1 Message Date
Ben Fry
3925fb7f5f Merge pull request #132 from designsystemsinternational/master 2020-09-17 12:26:35 -04:00
Anadroid
fc6dccb6f0 Added <h3>Advanced</h3> in the comments where it was missing 2020-09-16 14:30:44 +02:00
Ben Fry
9f07d5f897 add clarification for bg color issue 2020-09-15 17:30:22 -04:00
Ben Fry
5c85264b09 implement a terrible hack for #104 so we can ship 2020-09-15 16:18:58 -04:00
Anadroid
51d2de2dd0 Fixed indentation, and removed unnecessary templates from the doclet 2020-09-15 14:57:37 +02:00
Ben Fry
c5dcfd2edc readability tweaks 2020-09-15 07:38:54 -04:00
Anadroid
296f94d956 Updated comments for PShader.java 2020-09-15 10:36:57 +02:00
Anadroid
8a7c9571fa Updated descriptions in comments for processing core and libraries 2020-09-15 10:17:15 +02:00
Anadroid
f767f61c4f Clean up and switch to java 11 2020-09-11 13:27:21 +02:00
Anadroid
db91449e33 Changed comments for all the web references in core 2020-09-10 13:51:11 +02:00
Anadroid
2e8a2b7ffd Added doclet and changed comments in PApplet.java 2020-09-09 17:31:33 +02:00
Ben Fry
b8de4b85a8 reworking saveImpl() and how AWT code is invoked for images (resolves #80) 2020-08-16 09:34:02 -04:00
Ben Fry
cc39c94d1d fix for #50, alternate solution but based on #75 2020-04-27 14:34:57 -04:00
Ben Fry
7962204af8 remove some warnings 2020-04-25 16:48:49 -04:00
Ben Fry
5bd8a8fb6f clean up several intellij complaints 2020-04-20 07:07:54 -04:00
Ben Fry
53c1278f0c remove the last usages of AWT in PApplet (fixes #55) 2020-01-20 08:45:10 -05:00
Ben Fry
273bdb4c74 clarify error message for displayDensity() 2020-01-20 07:58:09 -05:00
Ben Fry
26d04aed77 swap getModifiers() for getModifiersEx() to deal with deprecation (fixes #4) 2020-01-20 07:51:23 -05:00
Ben Fry
4a6cdf5252 remove redundant boxing and casting (#51)
remove redundant boxing and casting
2020-01-20 07:29:44 -05:00
Ben Fry
d259373553 moving more things through PImageAWT 2020-01-19 21:40:20 -05:00
Ben Fry
e46eceab96 a little scarier: moving java.awt and javax.imageio out of PImage 2020-01-19 21:24:35 -05:00
Ben Fry
753c5996a7 move loadImage() into PSurface 2020-01-19 21:04:15 -05:00
Ben Fry
05f3cb0b2d move link() calls that use Desktop into PSurface 2020-01-19 20:50:04 -05:00
Ben Fry
b27d971aca move loadImage() and parts of getDesktopFile() into ShimAWT 2020-01-19 17:51:01 -05:00
Ben Fry
164bba9d6f remove "frame" field from PApplet 2020-01-19 16:32:43 -05:00
Ben Fry
8535a462f0 move runSketch() init code into ShimAWT 2020-01-19 16:28:37 -05:00
Ben Fry
d3feb64237 introduce ShimAWT, moving selectInput/OutputFolder to PSurface, being AWT purge 2020-01-19 16:24:16 -05:00
Ben Fry
540287f20f implement better handling of "displays have separate spaces" 2020-01-19 11:18:02 -05:00
Ben Fry
f9afef1c7e remove unused code 2020-01-19 10:55:00 -05:00
Ben Fry
f1bced8d5f implement displayDensity(int), it's been returning the main display's value 2020-01-19 10:53:49 -05:00
Ben Fry
1f877eaf15 minor edits for IntelliJ complaints 2020-01-19 10:21:13 -05:00
Ben Fry
779dd9aa1f add initial --disable-awt option, plus notes about implementation 2020-01-19 08:50:34 -05:00
Liam James
108f9b6a6b remove redundant boxing and casting 2020-01-19 11:50:54 +10:00
Liam James
f80f1ed0e2 Migrate array declaration fixes from #5981 2020-01-19 10:18:08 +10:00
Stan le Punk
1ba2a25180 Fix RotateZ bug 2019-12-01 21:58:05 +01: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
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
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