Hammy
13fdf8fadd
Use logger instead of printing stacktrace
3 years ago
Hammy
f570eca8fa
Don't access eventManager through getter
3 years ago
Hammy
b7b279b924
Add tests for MyClipboard#getSystemClipboard
3 years ago
Hammy
b9bd99b79b
Get rid of static methods by introducing custom SystemUtils.java class
3 years ago
Hammy
98fa50142c
Ensure clipboard contents are only queried upon listening to the clipboard
3 years ago
Hammy
dd541ca6ee
Remove empty constructor
3 years ago
Hammy
25aff3178a
Add another test
3 years ago
Hammy
3f95739795
Remove printStackTrace() for logger.error()
3 years ago
Hammy
69f517ae51
Update matcher to return true if argument is null
3 years ago
Hammy
30a855a0fb
Add javadocs
3 years ago
Hammy
32c5950a7c
Add more tests
3 years ago
Hammy
7619516aeb
Optimise imports
3 years ago
Hammy
3da56bbd45
Add extra constructor
3 years ago
Hammy
bf3a473d89
Remove the need for Clipboard as param
3 years ago
Hammy
e537f092ef
Use log.error() instead of log.info()
3 years ago
Hammy
75789c253a
Change log message
3 years ago
Hammy
53cb8a78a9
Add more tests for ClipboardUtilsTest
3 years ago
Hammy
f8f0f63302
Implement custom matcher for comparing BufferedImages
3 years ago
Hammy
188894f9d9
Make ClipboardUtils.java not static
3 years ago
Hammy
48a53c7f31
Make instance variables to private
3 years ago
Hammy
0ccfc56e98
Restructure classes to ensure classes are not unnecessarily public
3 years ago
Hammy
5864209947
Add simple tests for ClipboardUtils.java
3 years ago
Hammy
8f5cfd2493
Ensure that clipboard changes are tracked properly & don't fire events on same clipboard content
3 years ago
Hammy
d8f8c8ee54
Remove Dimension variable & add equals()/hashcode()
3 years ago
Hammy
4c84c77197
Use custom OldImage instead of BufferedImage
3 years ago
Hammy
792eda1c53
Add more Javadocs
3 years ago
Hammy
3a552cacf2
Add Custom POJO with altered equals method to ensure changes in images are recognised
3 years ago
Hammy
7db4422e64
Ensure MacClipboardListener differentiates between images properly
3 years ago
Hammy
82d23458be
Add functionality for inserting content into clipboard & add functionality to start/stop listening
3 years ago
Hammy
58d98b7ae6
Convert image to RGB instead of ARGB
3 years ago
Hammy
791377538b
Rename fileListMonitored to filesMonitored
3 years ago
Hammy
79763cd19a
Remove empty try/catch
3 years ago
Hammy
caec66e5fa
Simplify code
3 years ago
Hammy
15de512cdf
Stub out overridden methods
3 years ago
Hammy
e45b4b9959
Add ability to stop/start listening to clipboard changes & add support for inserting contents into the clipboard
3 years ago
Hammy
a59dafd8fa
Move utility methods to ClipboardUtils.java
3 years ago
Hammy
ecb63e41a2
Move utility methods to ClipboardUtils.java & Add functionality to insert contents into the clipboard
3 years ago
Hammy
07a33f71b4
Add new exception to be thrown when clipboard isn't available
3 years ago
Hammy
7e0ef573e7
Ensure that exceptions are caught and clipboard listener is started again
3 years ago
sgoudham
05dd51546f
Ensure that files are not notified as text to end users
3 years ago
Hammy
8b467ab3d9
Correctly check images against their dimensions for image polling
3 years ago
Hammy
ed97a46735
Ensure that files are checked when polling
3 years ago
Hammy
42416a694f
Step away from subscribe() & unsubscribe()
3 years ago
Hammy
5112d090cd
Implement not null checks for extra safety
3 years ago
Hammy
8fdc3e61c3
Add util method for retrieving OldClipboardContent when object is passed in
3 years ago
Hammy
0e76d29495
Ensure that transfer data can be retrieved
3 years ago
sgoudham
6beeaafad9
Exit method when bufferedimage is null
3 years ago
sgoudham
57b4b96877
Check clipboard contents for safety.
...
Problems can occur within these helper functions as the polling is extremely quick, causing for an edge case where the user copies content before the clipboard has time to process the contents
3 years ago
Hammy
a4665bf9a8
Notify consumers about file changes
3 years ago
Hammy
f4f371be69
Save old file content
3 years ago