Commit Graph

13199 Commits

Author SHA1 Message Date
Ben Fry
81fcbbf947 swapping out shortcut key calls 2019-10-08 15:01:02 -04:00
Ben Fry
aa224e78b9 almost had to change api, but then, no 2019-10-08 14:46:40 -04:00
Ben Fry
7003aaa148 fix deprecation issue 2019-10-08 14:46:28 -04:00
Ben Fry
df69ed6170 fix rounding api deprecation in BigDecimal 2019-10-08 14:41:03 -04:00
Ben Fry
fa799db974 use Java 11 parser since Java 8 is deprecated 2019-10-08 14:38:28 -04:00
Ben Fry
1998378cab comment-out unused portions 2019-10-08 14:38:02 -04:00
Ben Fry
cc12c605d4 Merge branch 'master' of github.com:processing/processing4 2019-10-08 14:34:49 -04:00
Ben Fry
4e51e47a3f removing the Eclipse JDI since we're using a JDK now 2019-10-08 14:34:43 -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 Samuel Pottinger
54bdd37c88 Merge pull request #12 from sampottinger/switch_build_target_to_11
Switch to 11 build target / source on javac.
2019-10-08 08:28:29 -07: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
0f447a0bb9 use methods instead of modifiers to deal w/ deprecation warnings 2019-10-07 20:21:37 -04:00
Ben Fry
9d9c7cc043 remove unused import 2019-10-07 20:12:01 -04:00
Ben Fry
2c562c69f7 trying to sort out build failures in Eclipse 2019-10-07 20:09:53 -04:00
Ben Fry
7cb69205f1 notes while working through issues 2019-10-07 19:40:30 -04:00
Ben Fry
fab6b59c1b use PApplet.createWriter(), update MACOSX to MACOS 2019-10-07 19:40:12 -04:00
Ben Fry
a97d13ac0f remove unused imports 2019-10-07 19:28:00 -04:00
Ben Fry
51145a8886 incorporate tweak mode fix https://github.com/processing/processing/pull/5909 2019-10-07 19:27:38 -04:00
Ben Fry
302767a9bf adding Java Mode project to Eclipse 2019-10-07 19:27:08 -04:00
Ben Fry
63b73df844 ignore test files 2019-10-07 19:19:19 -04:00
Ben Fry
a9b61747d2 bump revision to move away from 3.x 2019-10-07 19:19:03 -04:00
Ben Fry
e8c036434c fix outdated test for shift down 2019-10-07 19:08:23 -04:00
Ben Fry
a8095977a0 get app running inside Eclipse again 2019-10-07 19:08:05 -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
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
A Samuel Pottinger
404835f417 Merge pull request #8 from sampottinger/runtime_structural_refactor
Consolidate logic for runtime path generation into a single class.
2019-10-07 07:41:18 -07:00
A Samuel Pottinger
0dfa1253fc Merge pull request #9 from sampottinger/error_rewrite_restructure
Refactor ANTLR message simplification infrastructure.
2019-10-07 07:41:07 -07:00
Ben Fry
2593f56b8a todo items and an ignore for dated folders 2019-10-07 10:25:45 -04:00
A Samuel Pottinger
caa35802af Merge pull request #10 from sampottinger/fix_preprocessor_result_height
Minor fix in PreprocessorResult dimension reporting.
2019-10-06 23:11:13 -07:00
A Pottinger
e46a957f78 Minor fix in PreprocessorResult dimension reporting.
Fix issue reported by @codeanticode within PreprocessorResult.java where the height was not being returned correctly.
2019-10-06 23:05:35 -07:00
A Pottinger
f846c7e82c Refactor ANTLR message simplification infrastructure.
Refactor ANTLR message simplification infrastructure to reduce class count within preproc given @benfy feedback within https://github.com/processing/processing4/pull/1. Note that some supporting are left out but those can be further refactored behind classes as desired but strategies are all made anon or inner.
2019-10-06 22:55:41 -07:00
A Pottinger
ceb9fedaa2 Add back in RuntimePathBuilder* under new location. 2019-10-06 21:17:40 -07:00
A Pottinger
a265b1ed14 Consolidate logic for runtime path generation into a single class.
In response to @benfry feedback within https://github.com/processing/processing4/pull/1, consolidated all of the runtime path calculation into a single class while still maintaining all of the tests and caching logic. This reduces the class count but still adapts to jmod and javafx path calculation requirements for java 11.
2019-10-06 21:10:16 -07:00
A Samuel Pottinger
2b05da132a Refactored TabLineFactory into ProblemFactory. (#7)
* Refactored TabLineFactory into ProblemFactory.

As part of https://github.com/processing/processing4/pull/1, refactored TabLineFactory into ProblemFactory, merging tests in the process.

* Fix imports on https://github.com/sampottinger/processing4/pull/7.
2019-10-06 18:24:20 -07:00
A Pottinger
0febfce456 Fix LongDict @nowebref 2019-10-06 18:10:10 -07:00
A Samuel Pottinger
30133d8eba Merge pull request #6 from sampottinger/pr_1_simple_fixes
Simple fixes in response to #1 feedback on processing4 mainline
2019-10-06 18:03:53 -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 Pottinger
4d05baf662 Removed pdex build per @benfry comments. 2019-10-06 17:39:53 -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 Samuel Pottinger
00dd2803f0 Merge pull request #4 from sampottinger/license_text
Updated license text.
2019-10-05 21:24:49 -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 Samuel Pottinger
25a0853194 Add travis support for CI (not CD) (#3)
* Adding travis support (hopefully without osx).

Based off of processing 5753, demonstrates the use of Travis to build and test processing Requires use of OpenJDK (processing 5753). Will address processing 2747. Will redirect this to the original processing repo after processing 5753 is resolved.

Note that this supersedes sampottinger/processing's #7 and #70 - this does not include the deploy step.

* Attempt explicit lib addition for linux-based travis build.

* Ask travis for ant optional install.
2019-10-05 21:16:36 -07:00
A Samuel Pottinger
86a2cd9ea7 Merge pull request #2 from sampottinger/java11
Moves to Java11 and OpenJDK via AdoptOpenJDK
2019-10-05 21:00:26 -07:00