Commit graph

410 commits

Author SHA1 Message Date
Chris Beams
1ea30fb4ae
Clarify concept of 'default network' in BitcoinModule 2014-11-06 11:24:31 +01:00
Manfred Karrer
c7524edef3 Add bootstrap info to splash screen, user final wehn possible, cleanup 2014-11-06 09:21:53 +01:00
Manfred Karrer
dbbe7cec49 Extract isSuccess in P2PNode, set custom log levels 2014-11-05 23:15:36 +01:00
Manfred Karrer
399842d8e2 Extract isSuccess to a method and return always true to ignore a bug from TomP2P (isSuccess returns always false) 2014-11-05 22:12:48 +01:00
Manfred Karrer
df3a507066 Change polling from 1 sec to 3 sec, refactorings 2014-11-05 22:00:55 +01:00
Manfred Karrer
c0524120e2 Use Localhost and regtest as default, cleanup seednode 2014-11-05 13:30:49 +01:00
Manfred Karrer
e665c7ebd1 Remove ServerID as default 2014-11-05 13:26:47 +01:00
Manfred Karrer
8b468f58cf Changed to protected 2014-11-05 02:39:53 +01:00
Manfred Karrer
3a1b84ce50 Add localhost 2014-11-05 02:19:08 +01:00
Chris Beams
dc7d861f8e
Rename io.bitsquare.{=>gui}.FatalException
Localize this exception within the gui package for now, as it's the only
place where it's used at the moment.
2014-11-05 01:13:31 +01:00
Chris Beams
922a2cd22f
Introduce io.bitsquare.offer package
Move io.bitsquare.trade.{Offer,Directory=>}.offer, in order to remove
the final cycle between the msg and trade packages
2014-11-05 01:13:31 +01:00
Chris Beams
8eb988616f
Rename i.b.{BitsquareArgumentParser=>ArgumentParser} 2014-11-05 01:13:30 +01:00
Chris Beams
55ef0b43d7
Rename io.bitsquare.{di=>app}.BitsquareModule 2014-11-05 01:13:30 +01:00
Chris Beams
89a68589e0
Untangle trade and msg packages 2014-11-05 01:13:29 +01:00
Chris Beams
4f66404ae8
Remove obsolete NoopMessageFacade 2014-11-05 01:13:29 +01:00
Chris Beams
d77af7900f
Rename io.bitsquare.{msg.SeedNodeAddress=>network.Node} 2014-11-05 01:13:29 +01:00
Chris Beams
fe3985a510
Rename io.bitsquare.{util=>gui}.ViewLoader 2014-11-05 01:13:28 +01:00
Chris Beams
568fcaffd0
Rename io.bitsquare.{di=>}AbstractBitsquareModule 2014-11-05 01:13:27 +01:00
Chris Beams
e579ce41f9
Remove non-Akka SeedNode implementation 2014-11-05 01:13:27 +01:00
Chris Beams
9ab965f2d5
Rename io.bitsquare.{Bitsquare=>app.cli.SeedNode} 2014-11-05 01:13:27 +01:00
Chris Beams
a969b415b4
Rename io.bitsquare.{BitsquareUI=>app.gui.Main} 2014-11-05 01:13:26 +01:00
Chris Beams
865cf39e64
Remove static access to Bitsquare#getAppName 2014-11-05 01:13:26 +01:00
Chris Beams
6f27c5ce29
Remove static access to BitsquareUI#getPrimaryStage
- Bind BitsquareUI#start's primaryStage for DI
 - Statically inject primaryStage directly into Help and Popups
2014-11-05 01:13:25 +01:00
Chris Beams
f6368754b9
Begin separation of JavaFX GUI and seed node CLI 2014-11-05 01:13:25 +01:00
Chris Beams
ad1b3ccd1e
Relocate BitsquareUI#getPrimaryStage 2014-11-05 01:13:24 +01:00
Chris Beams
f278db01ac
Remove cycle between SystemTray and BitsquareUI 2014-11-05 01:13:24 +01:00
Chris Beams
b9e9882865
Move ActorSystem shutdown logic out of SystemTray 2014-11-05 01:13:23 +01:00
Chris Beams
fa7d7a08a5
Refactor SystemTray 2014-11-05 01:13:23 +01:00
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
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
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