Commit Graph

274 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
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
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
REAS
bf87c81ccf Reference update for XML getChild() 2019-07-25 14:08:47 -07:00
REAS
25d126f056 Hide 'items' param for StringList 2019-07-25 11:46:35 -07:00
Ben Fry
76eeaccedc normalize the behavior of remove() in the Dict classes 2019-01-20 09:52:29 -08:00
Ben Fry
86e2d0f6bb make the quote() methods public in JSONObject 2018-08-17 06:50:01 -07:00
Ben Fry
70db057aef construct a DoubleDict from a Map 2018-05-07 18:33:52 -04:00
Ben Fry
eb8f0edd4d prevent Table.sort() from throwing NPE with empty cells 2018-05-02 11:03:12 -04:00
lqdev
81ddbec416 added javadoc comment for XML#trim() 2018-04-28 18:45:22 +02:00
Ben Fry
15e67c206e add save() methods and implement write() consistently in the List and Dict classes 2018-04-24 18:25:35 -04:00
Ben Fry
36607cf2d2 change Sort to use int for comparisons for accuracy, add DoubleDict and DoubleList 2018-04-24 17:48:25 -04:00
Ben Fry
664f1dd33e adding LongDict and LongList 2018-04-24 17:19:32 -04:00
Ben Fry
5438127cbf reorg a bit, also note fix for #5406 2018-03-13 20:24:52 -04:00
Ben Fry
636c309bb5 fix ArrayIndexOutOfBoundsException in Table.insertRow() (fixes #5406) 2018-03-13 20:15:29 -04:00
Ben Fry
34f9caa137 deal with a handful of Java 9 changes and deprecations 2017-10-18 22:42:13 -04:00
Ben Fry
09de1fad83 fix entries() Iterator in IntDict, FloatDict, StringDict 2017-10-11 16:25:16 -04:00
Ben Fry
2dde225eae erase unnecessary types 2017-10-10 21:00:32 -04:00
Ben Fry
65b138de31 added resize() to IntDict, FloatDict, StringDict 2017-10-10 20:57:27 -04:00
Ben Fry
2327009d88 add setIndex() method 2017-10-10 20:34:40 -04:00
Ben Fry
c611de43ae thinking about adding getTally() to IntDict 2017-04-17 13:23:46 -04:00
Ben Fry
f967150430 improve sum() functions in processing.data 2017-02-18 13:24:23 -05:00
Ben Fry
d006c3a6a9 change some null handling with JSON 2017-01-31 20:46:52 -05:00
Ben Fry
7384e91df6 remove rows/cols from beginning in trim() 2017-01-31 04:58:33 -05:00
Ben Fry
c90176cf8a fixing up StringDict(TableRow) and Table.trim() now removes extra rows and columns 2017-01-31 04:55:03 -05:00
Ben Fry
ea65d7f034 consume Unicode BOM (0xFEFF) in createReader() and Table parser 2017-01-30 19:23:02 -05:00
Ben Fry
da04e3682f make trim(String[]) handle arrays, Table.trim() handles columns 2017-01-30 18:54:38 -05:00
Ben Fry
6f2297681c add StringDict constructor, another double quote case 2017-01-30 18:50:16 -05:00
REAS
30ea717b7b Remove CATEGORY as a parameter for Table.addColumn() pointed out in processing/processing-docs#501 2016-11-22 20:03:35 -08:00
Ben Fry
29d56d1ed3 several XML fixes and adding print() 2016-11-16 17:12:42 -05:00
Ben Fry
09950036c0 add suport for iterating over dictionary entries, cleaning up todo list 2016-11-14 21:27:21 -05:00
Ben Fry
84273784a2 add increment() method that takes IntDict to merge another dictionary 2016-11-14 20:37:16 -05:00
REAS
1808568f15 Add reference info for sort() method for Table class 2016-11-10 21:55:37 -08:00
REAS
f0b6f49068 Remove periods (.) from @brief descriptions in TableRow.java 2016-11-10 13:40:00 -08:00
REAS
72c28b2643 Removing TableRow methods from Web Reference, but keeping the data for the JavaDoc 2016-11-10 10:39:47 -08:00
Ben Fry
4eaf7b2fa8 Merge pull request #4333 from suheb/fix-issue4332
Adding missing docs and keywords for TableRow.
2016-11-10 11:55:05 -05:00
Ben Fry
67e9d13148 clean up toString() and implement toJSON() consistently 2016-10-30 16:12:40 -04:00
Ben Fry
b2f7fddaa5 more notes and get()/put() stuff with JSON 2016-10-29 11:07:59 -04:00
Ben Fry
e847d62813 Merge pull request #4336 from Akarshit/bugifx-accessModifier
Changed the access modifier of get()
2016-10-29 11:06:12 -04:00
Ben Fry
1da78654e3 add notes about getRowMap() 2016-10-29 10:38:04 -04:00
Ben Fry
4b6f16fac0 fix quoting problem in IntDict.toJSON() 2016-08-30 09:29:47 -04:00
Ben Fry
7a80b16237 testing out a lookup function 2016-08-27 11:01:16 -04:00
Ben Fry
6cf8e399fe properly put escapes on strings 2016-08-09 18:35:21 -04:00
Ben Fry
c1e130925f trying out a toJSON() method 2016-08-03 18:30:25 -04:00
Ben Fry
acafc7464a that ain't supposed to be in there 2016-07-31 20:05:56 -04:00
Ben Fry
b65249d532 minor edits pulled in from ftsv project 2016-07-31 16:42:52 -04:00
Ben Fry
db2bcb4f44 rewrite csv handling, fix parsing bugs, remove newlines option, improve performance 2016-07-25 21:52:08 -04:00