Commit Graph

2117 Commits

Author SHA1 Message Date
A Pottinger
926c4587d5 Made preprocService and debugger visibility consistent in JavaEditor. 2020-03-08 10:44:14 -07:00
A Pottinger
18653e2d93 Made JavaEditor debugger private. 2020-03-08 10:21:39 -07:00
A Pottinger
86b92bcc03 Require JavaEditor subclass use getDebugger(). 2020-03-08 10:06:28 -07:00
A Pottinger
507e7fae54 Fix uninitalized debugger in JavaEditor.
Looks like constructor in Editor called from from JavaEditor is calling an overloaded method back in JavaEditor that expects debugger to have been initialized which is not possible since the parent constructor has not returned. This switches to loading debugger on demand (upon calling getDebugger) which allows for the Editor to use overloaded methods that expect debugger to be initialized.
2020-03-07 17:28:00 -08:00
Ben Fry
3d026fb046 replace return with if 2020-01-28 20:08:51 -05:00
Ben Fry
39e90bb930 remove methods not doing any transformations, and only doubling the number of lines of code 2020-01-28 20:05:58 -05:00
Ben Fry
432c3f2387 get rid of util class only used by one caller 2020-01-28 19:55:43 -05:00
Ben Fry
11a9164fc9 move Debugger and VariableInspector into the debug package 2020-01-28 19:49:52 -05:00
Ben Fry
ef06746e57 move the one function from SyntaxUtil into SourceUtils, drop its "s" 2020-01-28 19:35:15 -05:00
Ben Fry
27e6ee6c41 a little cleaner 2020-01-28 19:27:10 -05:00
Ben Fry
167010fe74 two new methods is a ton of overhead for three lines of code 2020-01-28 19:26:31 -05:00
Ben Fry
707419ae36 cleaning up weirdo syntax 2020-01-28 19:23:41 -05:00
Ben Fry
0b4f80c656 move more of debugger logic out of JavaEditor and into Debugger class 2020-01-28 19:08:07 -05:00
Ben Fry
b13ae99b34 shorten names a little, move Interval out b/c used elsewhere 2020-01-28 14:31:44 -05:00
Ben Fry
b612d578f3 finish merging PDEX into Editor and untangling refs 2020-01-28 14:17:22 -05:00
Ben Fry
117e3f9516 more untying of PDEX 2020-01-28 10:48:34 -05:00
Ben Fry
69718c6f29 rename DebugTree for clarity, move out of PDEX 2020-01-28 10:34:24 -05:00
Ben Fry
06f7a18429 getting rid of the pdex package 2020-01-28 10:19:44 -05:00
Sam Pottinger
6fe274f89b Resolve PDF renderer parse issue in preproc.
Resolve moving the PDF renderer information provided in size into settings as part of preproc. Resolves #66.
2020-01-21 17:15:57 -08:00
Ben Fry
50f06bf707 Merge pull request #60 from processing/fix_static_pixel_density
Resolve rewrite of pixelDensity to settings.
2020-01-20 14:59:05 -05:00
Ben Fry
624e9074ae deal with deprecation changes in PDF 2020-01-20 14:54:38 -05:00
A Pottinger
17e28256f5 Resolve rewrite of pixelDensity to settings.
Per https://github.com/processing/processing4/issues/58, pixelDensity should run in settings and currently results in failure if used in static context. This will rewrite pixelDensity into the setting section if found in static or settings context. Adds unit tests for both scenarios.
2020-01-20 09:16:11 -08:00
Ben Fry
a4d935e713 fix for precision issues with PDF (5801 in 3.x) 2020-01-19 08:53:18 -05:00
Ben Fry
2d5683d4f9 prevent Rename from allowing Java identifiers (5828, 5906) 2020-01-17 16:41:40 -05:00
Ben Fry
c5b9f9ba67 update Eclipse classpaths for 11.0.6 2020-01-17 13:50:42 -05:00
Ben Fry
6f195ef11f cleaning more warnings and remove empty class 2020-01-16 21:28:59 -05:00
Sam Pottinger
7efe9b0c85 Removed test from the build / run targets but left in for dist.
Refactored ant build chain to allow building / running without execution of tests but ensure tests are run during dist. Note that tests are still runnable under the test target itself. Resolves #8.
2019-11-25 18:09:01 -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
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 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 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 Samuel Pottinger
3340630c1b Merge branch 'master' into fix_jdk_naming 2019-10-10 22:54:38 -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
A Samuel Pottinger
e38515cc6b Allow access to PdePreprocessor constructor 2019-10-10 08:50:08 -07:00
A Pottinger
5faf2a10a6 Refactor within PdePreprocessor to allow for override of edits.
In response to https://github.com/processing/processing4/issues/11, allow client code to override preprocessing edit behabior by providing a subclass of PdeParseTreeListener. This does make the construction for PdePreprocessor.java a little bit messier but a builder may help and moving dependent types within enclosing classes can hopefully keep things coherent.
2019-10-10 08:36:34 -07:00
Ben Fry
b2eb89d72f cosmetic fixes and note-taking 2019-10-08 18:28:16 -04:00
Ben Fry
7003aaa148 fix deprecation issue 2019-10-08 14:46:28 -04:00