Commit graph

453 commits

Author SHA1 Message Date
Chris Beams
0fb5caa7ba
Rename AWTSystemTray=>SystemTray and remove statics 2014-11-05 01:13:22 +01:00
Chris Beams
2af861a776
Add comment for each major step in BitsquareUI#start 2014-11-05 01:13:22 +01:00
Chris Beams
78819d7e13
Remove use of Profiler from BitsquareUI
Also remove Profiler#initScene, whose body was entirely commented out
and therefore dead code.
2014-11-05 01:13:22 +01:00
Chris Beams
6f830d20c9
Introduce ViewLoaderTest and FxmlResource interface
Tests basic loading of FXML resources via the ViewLoader API. Also
introduces the FxmlResource abstraction, an interface which the
Nagivation.Items enum now implements. This simplifies the process of
testing, e.g. in this case testing a non-existent resource without
having to add a bogus value to the enum itself.

Note the @BeforeClass logic necessary to initialize the JavaFX platform.
This is necessary in order to avoid "Toolkit not initialized"
exceptions. See http://stackoverflow.com/q/11385604 for details.
2014-11-05 01:13:21 +01:00
Chris Beams
ce9aca0d1e
Introduce FatalException
Rather than throwing a generic RuntimeException for fatal / catastrophic
exceptions (which are typically due to developer error) throw
FatalException.
2014-11-05 01:13:21 +01:00
Chris Beams
e08c2bb564
Handle IOException within ViewLoader#load
Prior to this change, all callers of ViewLoader#load were forced to
handle the (checked) IOException declared by the #load method signature.
This resulted in a significant amount of duplicate handling logic where
nothing more than logging the error occured.

Failing to load a view represents a catastrophic error in the
application; i.e. it is not something that can be handled in any way
other than shutting the application down, fixing what is broken and
restarting the application. For this reason, any IOException raised
within ViewLoader#load is now caught, wrapped and re-thrown as an
(unchecked) RuntimeException. This will be handled by the platform's
UncaughtExceptionHandler, and a dialog will be raised to inform the user
that a fatal error has occured.

As a result all try/catch blocks around calls to ViewLoader#load have
now been removed, making for tighter, more readable, and easier to test
code.

In the future, the distinction between errors that are programmatically
recoverable and those that are catastrophic (typically developer errors)
will be used to determine whether methods in the Bitsquare API throw
checked or unchecked exceptions.
2014-11-05 01:13:20 +01:00
Chris Beams
77044d5cfe
Refactor ViewLoader construction in src/main 2014-11-05 01:13:20 +01:00
Chris Beams
75775e7e42
Remove commented code 2014-11-05 01:13:20 +01:00
Chris Beams
d350fd88dd
Remove use of final modifier on local variables 2014-11-05 01:13:19 +01:00
Chris Beams
51e1519ed3
Simplify references to stylesheets 2014-11-05 01:13:19 +01:00
Chris Beams
e4a50bbcea
Introduce #close hook 2014-11-05 01:13:18 +01:00
Chris Beams
c71d9a0fb8
Remove UI test runner classes and .fxml files
These classes were used during individual screen creation but are now
effectively dead test code.
2014-11-05 01:13:18 +01:00
Chris Beams
9def11118f
Refactor BitcoinModule to extend AbstractBitsquareModule 2014-11-05 01:13:17 +01:00
Chris Beams
830932d93d
Strip trailing whitespace 2014-11-03 12:33:41 +01:00
Manfred Karrer
4e5fbb5f0b Add chaching flag to tests 2014-11-02 20:36:20 +01:00
Manfred Karrer
03f158f61d Use testnet and server seed as default, fix logs 2014-11-01 14:38:20 +01:00
Manfred Karrer
032fc21ec5 Cleanup 2014-10-31 18:59:49 +01:00
Manfred Karrer
0831052d77 Update UtilsDHT2 2014-10-31 18:43:01 +01:00
Manfred Karrer
ae3a2e5bc6 Wrap PeerAddress into Peer, Make TomP2P Serializable 2014-10-31 14:09:13 +01:00
Manfred Karrer
942284480f Add Localhost, set regtest as default, remove relay as default 2014-10-31 13:44:44 +01:00
Chris Beams
835937e0e7
Restructure Guice modules 2014-10-30 20:33:34 +01:00
Chris Beams
00af59aa20
Introduce network package and Peer abstraction
Prior to this change, TomP2P's 'PeerAddress' was used heavily throughout
Bitsquare, effectively tying many parts of the system to the TomP2P API
when they otherwise had no need to be aware of TomP2P at all.

The Peer interface (and the new 'network' package to which it belongs)
is designed to provide this missing abstraction and is a step toward
isolating TomP2P functionality as completely as possible--so as to make
the latter easy to test (and easy to replace if necessary).

A very simple TomP2PPeer implementation of the Peer interface has been
provided in the new 'network.tomp2p' package. It is currently just a
wrapper for an underlying PeerAddress object, but it is reasonable to
expect that more functionality will find its way into this class over
time.
2014-10-30 16:52:46 +01:00
Chris Beams
a845088a6e
Customize enzo Notification to meet Bitsquare reqs
This reflects the customizations to Notification originally committed in
revision 1a6fb9, but includes *only* the Notification class instead of
bringing in all related enzo types and resources. We now rely on the
enzo jar for that.
2014-10-30 15:52:21 +01:00
Chris Beams
6435e2ab80
Reformat enzo Notification per Bitsquare rules 2014-10-30 15:52:20 +01:00
Chris Beams
47d9693a07
Re-introduce enzo Notification in original form
Copied from https://hansolo@bitbucket.org/hansolo/enzo.git at commit
eb1d32
2014-10-30 15:52:20 +01:00
Chris Beams
cbdd60631c
Introduce dependency on eu.hansolo.enzo:Enzo:0.1.5
Remove manually-copied classes and resources in favor of depending on the
latest released Enzo distribution.
2014-10-30 15:52:20 +01:00
Chris Beams
88951d71b8
Capitalize 'Bitsquare' consistently 2014-10-30 15:52:19 +01:00
Chris Beams
9620993e4d
Remove TomP2P example NAT classes 2014-10-30 13:09:41 +01:00
Chris Beams
8ca7b72e48
Introduce NoopMessageFacade 2014-10-30 13:03:57 +01:00
Chris Beams
e3b21fecff
Rename MessageFacade => TomP2PMessageFacade
- Rename MessageFacade => TomP2PMessageFacade
 - Reintroduce MessageFacade as an interface
2014-10-30 12:43:58 +01:00
Manfred Karrer
f91b0ba349 Remove awaitUninterruptibly() in listener (can cause a deadlock) 2014-10-29 00:31:16 +01:00
Manfred Karrer
0687fc2f9b Add null checks 2014-10-27 15:58:53 +01:00
Manfred Karrer
9c8b76d2b6 Update to latest TomP2P master 2014-10-27 15:09:52 +01:00
Manfred Karrer
2a78e194bd Update to a new address 2014-10-27 15:05:43 +01:00
Manfred Karrer
670a19037e Reset offerbook filter values at screen change (#235) 2014-10-27 02:22:41 +01:00
Manfred Karrer
27b47830b2 Reset offerbook filter values at screen change (#235) 2014-10-27 02:07:41 +01:00
Manfred Karrer
35dcb862d9 Reset offerbook filter values at screen change 2014-10-27 02:01:54 +01:00
Manfred Karrer
8160397361 Shutdown correctly 2014-10-27 02:01:01 +01:00
Manfred Karrer
008ae0ef52 Fix bug with open trades row selection (#238) 2014-10-27 01:32:00 +01:00
Manfred Karrer
52da080f22 Add simple Seednode for testing 2014-10-26 16:32:53 +01:00
Manfred Karrer
39509b91c8 Fix withdrawal bug 2014-10-25 20:17:57 +02:00
Manfred Karrer
7c8a8dffcd Fix problem with relay and portforwarding 2014-10-25 19:22:02 +02:00
Manfred Karrer
6a51dd154a Deactivated port forwarding and isSuccess check because of a bug in TomP2P 2014-10-25 02:57:37 +02:00
Manfred Karrer
de2563d4bf Deactivate digitalocean2.bitsquare.io 2014-10-25 02:15:04 +02:00
Manfred Karrer
72763d0e5a Rename orders to portfolio, orderbook to offerbook 2014-10-25 01:53:04 +02:00
Manfred Karrer
637f954d25 Deactivate not implemented elements 2014-10-25 01:51:20 +02:00
Manfred Karrer
1184476448 Rename orders to portfolio, orderbook to offerbook 2014-10-25 01:25:01 +02:00
Manfred Karrer
68387eb13d Rename orders to portfolio, orderbook to offerbook 2014-10-25 01:18:38 +02:00
Manfred Karrer
5094b2de4a Improve wording 2014-10-25 01:05:22 +02:00
Manfred Karrer
2877f63004 Update splash screen 2014-10-25 00:24:20 +02:00