Commit Graph

3775 Commits

Author SHA1 Message Date
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
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
Ben Fry
2a590c3ae1 Fix console rounding. (#20)
Fix console rounding.
2019-11-15 12:38:43 -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
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 00d6b1387c).
2019-10-20 17:00:05 -07:00
Ben Fry
b2eb89d72f cosmetic fixes and note-taking 2019-10-08 18:28:16 -04:00
Ben Fry
878e909004 finish removing apple.jar, roll ThinkDifferent into MacPlatform 2019-10-08 18:01:01 -04:00
Ben Fry
baa0424d94 moving some of the default file menu logic back into Base 2019-10-08 17:56:24 -04:00
Ben Fry
e78f0a0226 removing apple.jar, modify ThinkDifferent to use Java 9+ Desktop APIs 2019-10-08 17:51:30 -04:00
Ben Fry
359012338b remove unused import 2019-10-08 15:16:30 -04:00
Ben Fry
c930169837 use a new pref for the sketchbook folder location for 4.x 2019-10-08 15:15:52 -04:00
Ben Fry
81fcbbf947 swapping out shortcut key calls 2019-10-08 15:01:02 -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 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
2c562c69f7 trying to sort out build failures in Eclipse 2019-10-07 20:09:53 -04:00
Ben Fry
a97d13ac0f remove unused imports 2019-10-07 19:28:00 -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
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
REAS
9ec706889f Removing DoubleDict DoubleList LongDict LongList from Reference 2019-07-26 15:47:21 -07:00
Ben Fry
828dd45b9f fix typo with error highlighting? 2019-03-02 17:55:50 -05:00
Ben Fry
27f307394e documentation note about 0-indexing 2019-03-02 17:53:48 -05:00
Ben Fry
1639b39ca9 starting the next release 2019-02-03 17:12:08 -05:00
Ben Fry
ceb64c2c7d ignore .class files in META-INF subfolder (fixes #5778) 2019-01-28 17:01:23 -05:00
Ben Fry
d6c334c05e default to using Desktop methods for URLs and files when available on Linux 2019-01-28 16:13:24 -05:00
Ben Fry
91dc89272b handle fall-through cases for plain text file editing (fixes #5628) 2019-01-28 15:10:56 -05:00
Ben Fry
1cef69f5b0 cleaning up from PRs, other todo items 2019-01-23 11:30:14 -05:00
Ben Fry
6bd1daaacc Merge pull request #3946 from Akarshit/CM-coreLibUpdate
Core libraries added to the count of updates
2019-01-23 11:27:29 -05:00
Ben Fry
fed1af04fd starting the next release 2019-01-23 08:09:53 -05:00
Ben Fry
cab7828902 update copyright years in processing.app.ui package 2019-01-22 19:06:09 -05:00
Ben Fry
1964bf65cb rewrite key stroke handling; now multi-platform, overridable by prefs 2019-01-22 18:28:43 -05:00
Ben Fry
9548caeaba starting 3.5.2 2019-01-22 10:49:35 -05:00
Ben Fry
e3d70d2f5d starting 3.5.1 2019-01-21 08:37:40 -05:00
Ben Fry
33b5055bae fix warnings 2019-01-19 17:16:01 -08:00
Ben Fry
e683db6738 Merge branch 'master' of github.com:processing/processing 2019-01-18 17:23:09 -08:00
Ben Fry
73cd701091 move problematic shortcuts out to the language files (fixes #2199) 2019-01-18 17:23:02 -08:00
Ben Fry
da0bdc5af2 Merge pull request #5742 from Sardtok/5524
Fixes #5524
2019-01-18 16:13:18 -08:00
Ben Fry
60f324c434 simpler solution for disappearance warning (#4805) 2019-01-18 11:23:50 -08:00
Ben Fry
fc6b8385bd prevent infinite "sketch disappeared" warnings (fixes #4805) 2019-01-18 11:19:28 -08:00
Ben Fry
c795fd0750 more cleanup; use buttonSize constant instead of sizeH for clarity 2019-01-18 10:47:01 -08:00
Ben Fry
92975fbd27 incorporating console collapse button (#5115) 2019-01-18 10:35:39 -08:00
Ben Fry
b520823618 Merge pull request #5115 from GKFX/feature-hideconsole
Add console hiding button
2019-01-18 09:52:41 -08:00
Ben Fry
3380239e68 Merge pull request #5486 from JakubValtar/fix-status-exception
Fix sketch exception getting hidden by warning
2019-01-18 08:28:52 -08:00
codeanticode
9605d80e64 do not show NSWindow warning in the console, cannot hide the native errors though 2019-01-10 07:04:04 -05:00
codeanticode
74d6becd05 skip Android's SDK folder when adding sketches 2019-01-03 23:47:57 +09:00
Sigmund Hansen
213a9e4bd6 Fixes update panel in #5524. 2018-12-30 14:47:10 +01:00