Commit Graph

556 Commits

Author SHA1 Message Date
nathan
9d177a779b Renamed getMonitor methods (so the name makes more sense). Added
wrappers for getting monitor at mouse location.
2017-08-04 17:38:47 +02:00
nathan
99bd330730 Added File.touch 2017-08-04 17:38:07 +02:00
nathan
99b95074ab Converted storage to use the 'single writer principle' for read speed 2017-08-04 17:33:54 +02:00
nathan
85a745dc3a Simplified storage API. Throws RuntimeException if trying to write to a
read-only storage.
2017-08-04 16:26:32 +02:00
nathan
ec84231b1b Removed default storageKey get() methods (they were confusing) 2017-08-04 16:04:30 +02:00
nathan
973d6d99c2 Refactored Storage.make() -> Storage.build(). Removed IOExceptions when
data cannot be read (an error will be emitted via logger or StdErr, and
will return null). Storage now has a default (kryo based) serialization
manager if none is specified.
2017-08-02 21:55:32 +02:00
nathan
13697c3d61 Updated unit test to delete the DB before testing creating it. 2017-08-01 10:23:32 +02:00
nathan
a61f3522b0 Updated storage comments and methods. Added storage.close() as a convenience method. 2017-08-01 10:22:50 +02:00
nathan
7c2fc36d57 Added copyright 2017-08-01 00:55:13 +02:00
nathan
d3169e95bc Moved classes that should not have been in the Utilities project. 2017-08-01 00:54:57 +02:00
nathan
efe31d4818 added getSha256WithSalt(byte[], byte[]) 2017-08-01 00:54:17 +02:00
nathan
a615545adc Made it clear that charToBytes returns UTF16. 2017-08-01 00:53:36 +02:00
nathan
6decb2b234 Storage now depends on StorageKey (instead of ByteArrayWrapper), in order
to make it clear that it must be a SHA256 hash, and not just bytes of arbitrary length.
2017-08-01 00:52:53 +02:00
nathan
2a7d8397e7 Removed ability to wrap a String 2017-08-01 00:51:17 +02:00
nathan
5f6ab6ae88 Comment polish 2017-08-01 00:15:41 +02:00
nathan
e7a8fefd60 Reverted change 2017-08-01 00:15:31 +02:00
nathan
0c5d5e2ef8 Fixed storage initialization record count offset 2017-07-31 23:51:10 +02:00
nathan
c3f8ad3a6e Fixed comment typos 2017-07-31 21:58:17 +02:00
nathan
94eadc2add Added showMessageDialog, which will show in the center of the screen where the mouse currently is. 2017-07-31 17:51:46 +02:00
nathan
147c82fc93 java6 language level 2017-07-31 17:51:12 +02:00
nathan
271ea9eefa Added clamp. 2017-07-30 22:21:11 +02:00
nathan
87b747e0fa set utilities src level to java6 2017-07-30 20:18:01 +02:00
nathan
cbc4d8e14c Moved NativeLoader to Utilities. 2017-07-30 20:17:44 +02:00
nathan
4c77950f36 FileUtil.moveFile now supports all permutations 2017-07-29 23:07:41 +02:00
nathan
a5cf709801 FileUtil.copyFile now supports all permutations 2017-07-29 23:05:57 +02:00
nathan
b1d4fba159 Moved Hash specific methods from Sys -> HashUtil 2017-07-29 22:20:58 +02:00
nathan
47e73efb52 ByteArrayWrapper.wrap(String) no longer uses SHA256 hash of string, it
uses the UTF8 bytes of the string directly.
2017-07-29 22:17:21 +02:00
nathan
b129364ee0 FileNormalization will return absolute file. 2017-07-29 21:42:37 +02:00
nathan
88312df832 ActiveRenderLoop (for Swing) now accepts Window (instead of just JFrame) 2017-07-28 22:08:18 +02:00
nathan
a1d3b672b0 Moved screen util methods out of swingutil 2017-07-27 23:18:20 +02:00
nathan
c41e05be63 Added getFontWidth 2017-07-27 22:09:57 +02:00
nathan
43dab244a6 Formatting/Comment/Code polish 2017-07-27 22:09:36 +02:00
nathan
b73fef825d Added GTK widget tooltip support. 2017-07-24 14:31:40 +02:00
nathan
e191faa3b8 Cleaned up how errors are thrown for GTK libraries. 2017-07-24 14:30:42 +02:00
nathan
ab8e7e5a79 Added ChromeOS detection 2017-07-23 14:16:41 +02:00
nathan
adbd14eaee Refactored OsType -> OSType 2017-07-23 11:30:52 +02:00
nathan
96724bb0e9 Refactored checking for which GTK version is loaded. The logic has been
simplified.
2017-07-23 11:24:09 +02:00
nathan
b2635cfa8c Removed Gtk import 2017-07-22 13:00:52 +02:00
nathan
be6cf84c37 Moved classes Utilities project to internal Utilities, as they
depended on github projects. The public utilities should not
have any dorkbox dependencies.
2017-07-22 12:22:17 +02:00
nathan
78efb022d9 Removed MathUtil dependency from Version, it was unnecessary 2017-07-22 02:25:50 +02:00
nathan
bf59e5a87c Changed fields to protected scope to permit overriding functionality 2017-07-20 23:57:06 +02:00
nathan
9bb3fa0db8 Added getting version/beta/build info from a version. Code polish. 2017-07-19 01:53:18 +02:00
nathan
a3f24a3d35 Added Version copy constructor, added creating a new version via a
double.
2017-07-19 01:42:06 +02:00
nathan
8d7d35182a Added preferGtk3 to GTK loading. Fail loading GTK if GTK2 is forced, and
GTK2 cannot load. Code polish.
2017-07-19 00:50:42 +02:00
nathan
1abe7b60ab Added exception to GTK load ordering for Kali (it has rendering issues
with GTK3. GTK2 looks just fine)
2017-07-18 16:40:15 +02:00
nathan
c84f6e02cb Added GTK detection to SwingUtil (specific for checking if Swing has
already loaded GTK)
2017-07-18 16:36:46 +02:00
nathan
c8f2bef1d9 Added isNumber for characters 2017-07-18 16:34:06 +02:00
nathan
740087f2cf Code polish, added Shell convenience method 2017-07-18 02:25:10 +02:00
nathan
3ab5076d9b Cache getInfo for linux/unix 2017-07-18 02:20:08 +02:00
nathan
a5d7a7293e Now support GTK3 versions less than 3.10 (3.4 was tested, as released on
Ubuntu 12.04). Make sure not to touch Gtk interface while loading Gtk
2017-07-17 01:41:53 +02:00