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
Ben Fry
c3d6269115
Merge pull request #37 from processing/new_fullscreen
...
Replace mac specific fullscreen option for setResizable.
2019-11-26 05:40:49 -05:00
Ben Fry
0d151fd171
Merge pull request #34 from processing/display_density
...
Fix display density detection and use GraphicsConfiguration.
2019-11-26 05:35:39 -05:00
Ben Fry
e45b9a33d7
Turn off swing automatic UI scaling for windows. ( #30 )
...
Turn off swing automatic UI scaling for windows.
2019-11-26 05:33:51 -05:00
Sam Pottinger
6af511ed4a
Remove the mac specific fullscreen option for setResizable.
...
Swing now enables the fullscreen option on Mac when a JFrame has setResizable(true). This removes the deprected com.apple.eawt.FullScreenUtilities.setWindowCanFullScreen call for setResizable instead. Resolves #36 .
2019-11-25 17:29:02 -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
A Samuel Pottinger
003d33f951
Turn off UI scaling for windows.
...
Frustratingly, use of prior Processing WindowsPlatform code for detecting DPI causes UI scaling to turn off and yields a DPI of 96 regardless of windows display scaling. However, in the current WindowsPlatform, UI scaling is enabled but text size calculation within custom rendering swing elements is incorrect, possibly because there is scaling happening underneath transparently. This causes x positions to be inflated at 125% scaling, for example. On a whole, Windows itself does not recommend scaling other than 100% inside the settings UI and that UI scaling within Java itself makes the custom UI elements look bad. So, this suggests disabling the ui scaling in Java for the editor, leaving the opportunity for Processing to find a new way to detect system scaling in the future and handling it internally. At this time, sketches still seem to be calculating positions correctly though they do appear pixelated with display scaling. Therefore, they are left alone.
2019-11-22 16:53:48 -08:00
Ben Fry
9361bfc2da
note about import static
2019-11-21 16:10:16 -05: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
db7fcd097c
Merge branch 'master' of github.com:processing/processing4
2019-11-15 14:08:16 -05:00
Ben Fry
f0125fea0e
making note of recent updates and merges
2019-11-15 14:04:04 -05:00
Ben Fry
f41ed83a8d
add Ukranian translation update from https://github.com/processing/processing/pull/5944
2019-11-15 14:03:23 -05:00
Ben Fry
2a590c3ae1
Fix console rounding. ( #20 )
...
Fix console rounding.
2019-11-15 12:38:43 -05:00
Ben Fry
8ae2e3e6a1
Merge pull request #15 from sampottinger/jna_interface_fix
...
Migrate to JNA 5 compatiable Native.load.
2019-11-15 12:30:24 -05:00
Sam Pottinger
1dafe16897
Added comment about LEFT_GUTTER.
...
Correcting an earlier comment in the git log, 45 seems to work for LEFT_GUTTER but not 44.
2019-11-07 11:16:04 -08:00
Sam Pottinger
b3051b2503
Fix font size calculation issue in the editor console.
...
Responding to https://github.com/processing/processing4/issues/19 , there appears to be an issue with calculating the bounds of text inside JTextPane within EditorConsole for specific font family and size combinations. This may be related to https://bugs.openjdk.java.net/browse/JDK-8158370 or https://bugs.openjdk.java.net/browse/JDK-8156217 but resolves when changing Editor.LEFT_GUTTER from 45 to basically anything else.
2019-11-07 11:09:35 -08:00
Sam Pottinger
2c85b89173
Added tests for ImportStatement and some minor style clean up.
2019-11-04 18:17:24 -08:00
Sam Pottinger
2aaaeb7253
Cleaned up documentation for sttaic import handeling.
2019-11-04 17:34:33 -08:00
Sam Pottinger
abe2684ee9
Fixed export issue with webkit export inside javafx.
2019-11-04 17:14:21 -08:00
Sam Pottinger
434b722a77
Fix loose git merge issue sitting in comments for PdeParseTreeLi..
2019-11-04 17:08:15 -08:00
Sam Pottinger
9fd00981b3
Merge branch 'master' into static_imports
2019-11-04 17:06:32 -08:00
Sam Pottinger
c458863dd7
Allow support for static imports through pdex's ImportStatement.
...
Discontinued use of string import statement generation and migrated to pdex's ImportStatement class which can keep track of if the import is static or not. This allows static imports to be handled correctly in PDEX, JavaBuild library resoluation, and actual Java compilation step. Resolves https://github.com/processing/processing/issues/5577 and https://github.com/processing/processing4/issues/16 but only in the Processing4 branch.
2019-11-04 16:54:22 -08:00
A Pottinger
54d72f8284
Migrate to JNA 5 compatiable Native.load.
...
Related to https://github.com/processing/processing4/issues/7 , move from loadLibrary to interface compatible load per https://github.com/java-native-access/jna/blob/master/www/GettingStarted.md (see https://github.com/java-native-access/jna/commit/00d6b1387c198a785e05c0a94dc7cdb4e4df0bb1 ).
2019-10-20 17:00:05 -07:00
A Samuel Pottinger
ddb82246bb
Merge pull request #16 from processing/master
...
Sync to master
2019-10-20 16:18:30 -07:00
A Samuel Pottinger
4d45aafbd0
Merge pull request #13 from sampottinger/tree_listener_parameter
...
[Fork] Refactor within PdePreprocessor to allow for override of edits.
2019-10-20 16:13:47 -07:00
A Samuel Pottinger
039cb67173
Merge pull request #14 from sampottinger/fix_jdk_naming
...
[Fork] Fix JDK naming and cleanup in ant build
2019-10-20 16:13:37 -07:00
Ben Fry
bfcc228d82
notes about recent changes
2019-10-20 15:58:13 -04:00
Ben Fry
2527740d0a
Merge pull request #12 from sampottinger/fix_jdk_naming
...
Fix JDK naming and cleanup in ant build
2019-10-20 15:51:19 -04:00
Ben Fry
85f300c4d2
Merge pull request #13 from sampottinger/tree_listener_parameter
...
Parameterize preprocessor behavior to allow mode overrides.
2019-10-20 15:50:12 -04:00
A Pottinger
97c26f7ef4
Added packageTest.pde for package test overrride.
2019-10-13 14:55:10 -07:00
A Pottinger
1fc326383e
Add tests and fix for package name override.
2019-10-13 14:37:15 -07:00
A Pottinger
d57b4ac61b
Removed RewriteParams.
...
Per @benfry goal of reducing class count, rolled RewriteParams into PdeParseTreeListener now that the code rewrite utils are also rolled into PdeParseTreeListener.
2019-10-13 13:41:26 -07:00
A Pottinger
6741079b3a
Merge branch 'tree_listener_parameter' of github.com:sampottinger/processing4 into tree_listener_parameter
2019-10-13 11:48:49 -07:00
A Pottinger
fdcaf7d932
Cleaned up RewriterCodeGen and added setDestinationPackage.
...
Allow client code to provide a destination package for generated code and removed some (now dead) code for RewriterCodeGenerator.
2019-10-13 11:47:35 -07:00
A Samuel Pottinger
8657f40ab0
Merge branch 'master' into tree_listener_parameter
2019-10-11 08:41:19 -07:00
A Pottinger
96e4f0a203
Merged supporting classes into PdeParseTreeListener.
...
An explicit goal of @benfry is to reduce class count and this PR cleans up edits made within preproc to merge supporting classes and utility functions of PdeParseTreeListener into PdeParseTreeListener itself. This includes removal of ImportUtil per https://github.com/processing/processing4/issues/10 .
2019-10-11 08:38:38 -07:00
A Pottinger
d08048eca9
Allow override of core and default imports for PdeParseTreeListener.
...
In support of modes, allow client code override of core and default imports for PdeParseTreeListener.
2019-10-11 07:56:24 -07:00
A Pottinger
48786a88d0
Remove comment on gitignore for build.
2019-10-10 23:25:06 -07:00
A Pottinger
9725e79f81
Merge branch 'fix_jdk_naming' of github.com:sampottinger/processing4 into fix_jdk_naming
2019-10-10 23:22:13 -07:00
A Pottinger
cfd61a074a
Fix windows javafx temp folder cleanup.
...
Remove the javafx expansion of the zip archive on windows after build completes.
2019-10-10 23:21:58 -07:00
A Samuel Pottinger
3340630c1b
Merge branch 'master' into fix_jdk_naming
2019-10-10 22:54:38 -07:00
A Samuel Pottinger
28d18da018
Merge pull request #15 from processing/master
...
Sync to master
2019-10-10 22:54:05 -07:00
A Pottinger
27836ac1a7
Started temp directory cleanup for JDK working files.
2019-10-10 22:38:12 -07:00
A Pottinger
c1077d993f
Update naming convention for JDK downloads.
...
In response to https://github.com/processing/processing4/issues/6 , fix up naming for JDK downloads and some leftover .gitignore edits.
2019-10-10 21:34:35 -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
A Pottinger
9055e44e0c
Allow for public instantiation of PdeParseTreeListener.
...
To support modes, allow for public instantiation of PdeParseTreeListener and for its public extension.
2019-10-10 21:07:53 -07:00
A Pottinger
b4042f7264
Merge branch 'tree_listener_parameter' of github.com:sampottinger/processing4 into tree_listener_parameter
2019-10-10 21:06:21 -07:00
A Pottinger
f47a0a26c2
Allow subclassing of RewriterCodeGenerator.
...
Some difficult to generate code is managed by the RewriterCodeGenerator and some modes may need to modify that logic. This commit makes it easier to extend parts of RewriterCodeGenerator without requiring client code to duplicate too much effort.
2019-10-10 21:05:07 -07:00