Shane Mc Cormack
7a0c767c12
Update copyright for 2017
7 år sedan
Chris Smith
5ed8865670
Restructure to standard maven/gradle layout.
Stop swimming against the tide and accept what most of the rest of
the world does.
While it adds an annoying depth to the actual source code, it makes
the root directory nicer (no more 'test-res' dirs), means we don't
have to override the gradle config, and makes it nicer to work in
IDEA 2016.1.
7 år sedan
Chris Smith
095898e45a
Actually set the event bus error handler...
8 år sedan
Chris Smith
87452ec37f
Update to MBassador 1.2.4.
This release contains some performance improvements compared
to the version we were using.
Error handlers are now passed in at construction time, so
there was a small bit of refactoring required.
8 år sedan
Chris Smith
5035177031
Add defensive checks to all events.
Assert that things aren't randomly null. This will make it easier
to fix than trying to hunt down obscure errors in the client caused
by nulls here.
Remove CallbackManager hacks.
9 år sedan
Chris Smith
b66dd24cac
Stop doubly-unwrapping exceptions :/
9 år sedan
Greg Holmes
27c3b0677d
Fix parser errors.
9 år sedan
Greg Holmes
e3154f075c
Make callback manager an eventbus.
9 år sedan
Greg Holmes
78ce3d8c8c
Revert "Put CallbackManager behind an interface."
9 år sedan
Greg Holmes
7a834ff8b3
Put CallbackManager behind an interface.
9 år sedan
Shane Mc Cormack
177bbb5f9a
2015!
9 år sedan
Chris Smith
4b734e0585
Pass all arguments into callbacks.
We now pass parser/date in properly, no need to drop these and
re-add them.
9 år sedan
Chris Smith
194aabdf92
Remove unused methods.
Remove "non-critical" callbacks - if callers want to ignore the
exception they can just try/catch it.
Make addCallbackType private, and remove the unused delCallbackType
method.
9 år sedan
Chris Smith
481a0161cd
Tidy up CallbackManager very slightly.
9 år sedan
Chris Smith
d25b195470
Remove all usages of getCallbackType.
All callbacks are now done through getCallback, which offers
type safety (gasp!) and is potentially extensible in the future
(wow!).
This means that nothing can depend on callbacks existing, so
there are two functional changes:
- the parser will no longer disconnect automatically on failed
pings; users have to listen for the event and handle it
themselves;
- the parser will no longer attempt to automatically use alt
nicknames or create new nicknames on connection; users have to
listen for the event and implement the logic themselves
Both of these were really weird anyway, as adding a listener (even
for debugging purposes) disabled the built-in behaviour.
9 år sedan
Chris Smith
6c38b5789d
Use forEach where possible.
9 år sedan
Chris Smith
ac736524d8
Split irc/common into separate dirs.
Change-Id: I1d81392650d8193503621b2e69fbe66cd0eb736a
Reviewed-on: http://gerrit.dmdirc.com/4058
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 år sedan
Chris Smith
083cced6cc
Remove pointless inheritDocs.
Change-Id: I8e7e36bec9e6231f7596cd0a788649a27bdc8b1f
Reviewed-on: http://gerrit.dmdirc.com/3809
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 år sedan
Greg Holmes
f21d923df2
Fix compiler warnings.
Change-Id: I3c7a6b5c9139928687422b0044e37c6ee975c00d
Reviewed-on: http://gerrit.dmdirc.com/3575
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 år sedan
Shane Mc Cormack
077e65c71e
Update Copyright to 2014
Change-Id: Iad5e74e45bb052f65b761ce8e334b571838edc10
Reviewed-on: http://gerrit.dmdirc.com/2978
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 år sedan
Greg Holmes
6864a35fa2
Java 7 conversions
Change-Id: Id834157281c02302bfe6f71201042712144b22ff
Reviewed-on: http://gerrit.dmdirc.com/2894
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 år sedan
Chris Smith
64721a52b7
Fix build warnings.
Change-Id: Ia13810eaecc9b387247c17948190ed5ccb692e14
Reviewed-on: http://gerrit.dmdirc.com/2667
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 år sedan
Shane Mc Cormack
807ad3358b
Update copyright for 2013
Change-Id: I1c711ca0525af9a78cbd7c07876eaf6cc91c1434
Reviewed-on: http://gerrit.dmdirc.com/2604
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
11 år sedan
Shane Mc Cormack
8d49cae8c1
make addAllCallback actually useful.
Previously it added an object as a callback target even if it didn't implement the callback handler, this was pointless and stupid, now it checks.
Change-Id: I24ce9f063a0f1f95e84ad2ae28a67e335cd63afe
Reviewed-on: http://gerrit.dmdirc.com/2519
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
11 år sedan
Shane Mc Cormack
afbd2870b3
Update copyright for 2012
Change-Id: Ie7236e561d04eed00576a8ff6b43228106d3bff5
Reviewed-on: http://gerrit.dmdirc.com/2288
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 år sedan
Chris Smith
2ba321f247
Add new callbacks to the callback manager
Change-Id: I090d07a1b786ae74e604ed0d6644d3f07405bc90
Reviewed-on: http://gerrit.dmdirc.com/2216
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 år sedan
Chris Smith
3ee5e02d58
Add composition state listeners and enum for parsers
Change-Id: I4c4264721c1f484033cf7307b95b4436720b0677
Reviewed-on: http://gerrit.dmdirc.com/2121
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 år sedan
Greg Holmes
002b8b2aa2
Change header?
Change-Id: I4a4bd2f45c18759bced41fc0aec1e570f11dfa6f
Reviewed-on: http://gerrit.dmdirc.com/2073
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 år sedan
Chris Smith
fc9d71748a
Remove unused field
Change-Id: I149964132ab7debdd5282c8a7e26d701a695b47c
Reviewed-on: http://gerrit.dmdirc.com/2030
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
13 år sedan
Chris Smith
f14215375b
Add some nice proxy methods for calling callbacks
Change-Id: I09a4f22fc43a549aa3c9d0fd8794061d7feb31cb
Reviewed-on: http://gerrit.dmdirc.com/2001
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 år sedan
Chris Smith
8bed9eb8fa
Parser base abstraction/tidying
Depends-On: I3bfbb811a5b5055d8dbe511a0390c3413d133292
Depends-On: I4ff484e8a2597017283eea557170c4aeb2029faa
Change-Id: I694d18a653ca8c3e3cad9d0e766e2fd207e615e9
Reviewed-on: http://gerrit.dmdirc.com/1854
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 år sedan
Shane Mc Cormack
f5c407dad2
Update Copyright
Change-Id: I4a6c51789e37e0f96967344c98010ee7ff760506
Reviewed-on: http://gerrit.dmdirc.com/1723
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 år sedan
Greg Holmes
e70c98fcea
PMD Fixes for parser.
Change-Id: I45b496d084e722850810736d468f4bb3f9602151
Reviewed-on: http://gerrit.dmdirc.com/1705
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 år sedan
Greg Holmes
83e12d6517
Fix PMD bugs in parser.
Change-Id: Ifd55c3c04740aa88f349aae5abee7fa817b82e39
Reviewed-on: http://gerrit.dmdirc.com/1692
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 år sedan
Chris Smith
700af39924
1995 called and they want their collection types back
Change-Id: I5d76244f67d380b350853aff05a3c0af731d892b
Reviewed-on: http://gerrit.dmdirc.com/1359
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
14 år sedan
Chris Smith
ad30767565
Add some debugging info to callbackmanager
Issue 3020
Change-Id: I7d3e928948c7a7269e6230a19eb8f45fd53fb819
Reviewed-on: http://gerrit.dmdirc.com/1358
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 år sedan
Shane Mc Cormack
fcd7e2b3e4
Fix some javadoc after random renaming of stuff.
Change-Id: I87e319180c0f8ad7ec4bece489699142d628cdc0
Reviewed-on: http://gerrit.dmdirc.com/1342
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
14 år sedan
Greg Holmes
6bc88d147e
Style fixes
Change-Id: I4a52807921e2c3082cd0650e222387f0dedbfd23
Reviewed-on: http://gerrit.dmdirc.com/1319
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
14 år sedan
Gregory Holmes
9c2c63dc87
Adds callbacks for server notices issue 2993
Change-Id: Ic28eb35b5b606584ce76e08034b643c1e9f31d7c
Reviewed-on: http://gerrit.dmdirc.com/491
Tested-by: Gregory Holmes <greboid@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <devs-public@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 år sedan
Shane Mc Cormack
8020751b37
Update the copyright date on all files.
Change-Id: I581861c8c8743cb835c45d128c4b4768372de807
Reviewed-on: http://gerrit.dmdirc.com/201
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
14 år sedan
Chris Smith
951def5c44
Various minor style fixes
14 år sedan
Shane Mc Cormack
6c97cd0869
Initial commit of parser stuff.
15 år sedan