Chris Smith
6ae693893d
Enable PMD in gradle + apply fixes.
Change-Id: I3665cac8af833da793ca418953d934cc3a333459
Depends-On: I348b37a14097439f8a56b0a671794410e46201ca
Depends-On: Ifc4aa601de14ca2526646f499f60329ed7c5935e
Reviewed-on: http://gerrit.dmdirc.com/3939
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
bbfad60371
Move test resources to test-res.
This breaks ant testing. I plan to change CI to use gradle then
remove the ant rules.
Change-Id: I38ca681b8742f316fc94ebfd8312b1bf4632354f
Reviewed-on: http://gerrit.dmdirc.com/3935
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
df55470ea4
Tidying
Change-Id: I2ae082b9a0a6596615627debd052b80502b92c58
Reviewed-on: http://gerrit.dmdirc.com/3920
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
2bff1052d7
Tidy a couple of tests.
Change-Id: I11b3c8aa740b6a70a58190c75070045b1cbcd3ca
Reviewed-on: http://gerrit.dmdirc.com/3917
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
8e404a59b8
Add a qualifier for ColourManager.
Change-Id: Icf9c64b84ddc129fe54765a4a3cac475c58cf1de
Depends-On: I81484e5df7b5dfeb7067ba211c11f2df198ac43c
Reviewed-on: http://gerrit.dmdirc.com/3893
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
7c42da8ff9
EventBus logging for ColourManager.
Change-Id: I90019c349b63348779b4b4478659682406289c36
Reviewed-on: http://gerrit.dmdirc.com/3875
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
38b5e683a5
Replace loads of servers with connections.
Change-Id: Ia569d12d8d53797ef7378ceab2ba1f5bda3affdc
Depends-On: I11efabb2757d8e62127b6487cbeb62d240cbd891
Reviewed-on: http://gerrit.dmdirc.com/3873
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
a4089d5a66
Add ColourManagerFactory
Change-Id: I6ef45d10a4fe862854702eee671114ee09f01d4d
Depends-On: If1bc20d15561584c9296ad10f04957efb51c5966
Reviewed-on: http://gerrit.dmdirc.com/3865
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
7f222c800f
Introduce a ConnectionManager.
Remove most references to Server.
Change-Id: I8888522d58ff4d332c4a477702442c29a82d12ff
Depends-On: Ic0e6e5f95adc30e773945c95e73d321d589503d2
Reviewed-on: http://gerrit.dmdirc.com/3872
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
54cee141ed
Don't expose servers.
Change-Id: I5db4e866f20ca7e8d4c1ba596ef6248755f4d2ec
Depends-On: I58e485b06887b1215b4d4cba7f2244404a7b81aa
Reviewed-on: http://gerrit.dmdirc.com/3870
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
22e1a9aee1
Move Colour to utils.
Change-Id: Icb4de047bfada18231b66011838958974282a322
Depends-On: I73c10f367e5972031d1c9b0871c4cb9043008bec
Depends-On: Ibf9936e6cf89ebbe1243e1c32596bc726bebc5ce
Reviewed-on: http://gerrit.dmdirc.com/3860
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
969ddc596c
Fix some stupidly wrong imports.
Change-Id: Iaa32f068930bee751e17e2f22136e571e5afa081
Reviewed-on: http://gerrit.dmdirc.com/3853
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
0b42c771be
Initial work on EventFormatters.
These will be used to format events for displaying in a window.
Change-Id: I30381c2adc7bd77de486d6c0410a0a6395a7ea8d
Reviewed-on: http://gerrit.dmdirc.com/3835
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
d5b9bebef5
Make ChildEventBusManager.disconnect async.
This allows other async events a chance to be popagated up to
the parent, rather than the bus abruptly being cut off with
a bunch of pending events.
Change-Id: I2a60826174d33240c0a1016b41ef881efdd97fed
Reviewed-on: http://gerrit.dmdirc.com/3818
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
06179bfd89
Use FrameClosingEvents in WindowManager.
Change-Id: Iba5bc03ad28b1bb28def0b7a1f27c9cf4e2fe7d0
Reviewed-on: http://gerrit.dmdirc.com/3813
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
b0d0c95be7
Propagate annotations around a bit.
Change-Id: Ia3e89a5d05bbefb5e0b73e1d2b97bd3e8e4e6392
Reviewed-on: http://gerrit.dmdirc.com/3797
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
4a55631b56
Switch to AutoClose instead of StreamUtils.
Change-Id: I07ed6c365c52470233ce2e56b262f6eb8456e874
Reviewed-on: http://gerrit.dmdirc.com/3791
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
ab68ff44f6
Add test for ChildEventBusManager :)
Change-Id: Ieda960d247a8ba1a78391043b39052001ce8a6a5
Reviewed-on: http://gerrit.dmdirc.com/3782
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
746bb6081d
Generify MBassador.
Change-Id: Id3cfa404a56528542120f79c969d992a5c183aba
Reviewed-on: http://gerrit.dmdirc.com/3771
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
62ea1af99e
Add events for statusbar stuff.
Change-Id: I12e1a5e7b190c0a54da7a9b205c9446ecc5728e5
Reviewed-on: http://gerrit.dmdirc.com/3767
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
b12a0cb412
MBassador.
Change-Id: I2baa7e986ded54930093768238ed24cab8cf4bf7
Depends-On: I2cf35d5859c85c3609002f126241536fda5d588e
Reviewed-on: http://gerrit.dmdirc.com/3769
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
05c552a0e3
Actions tidying.
Change-Id: I77c22319367b42840431e18ee998011a730ac6af
Reviewed-on: http://gerrit.dmdirc.com/3695
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
bc615bfd95
Fix URLBuilderTest.
If this is run with the wrong classpath, the test fails as apparently
having a 'test' folder isn't hugely uncommon. Use a less likely name.
Change-Id: I4c8bcb2be8b6768b3247e91d176932e7fac24d2e
Reviewed-on: http://gerrit.dmdirc.com/3681
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
3ba3aed30a
EventBus logging for URLBuilder.
Change-Id: If1f98b4007a50f66c2dcd6f0a7744d24b2139555
Reviewed-on: http://gerrit.dmdirc.com/3673
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
184e2190ef
Start using eventbus logger in MessageEncoder.
Change-Id: I1fc16db32b0e86fdd288197266d7c623ef7d17f6
Reviewed-on: http://gerrit.dmdirc.com/3652
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
5f5889887a
Strip prefixes from multi-line aliases.
When migrating make sure that existing multi-line aliases get
command chars (and any following silence chars) removed, rather
than just doing it from the first line.
Change-Id: I08b7081cd3f582901909001586048b209acbfa31
Fixes-Issue: CLIENT-512
Reviewed-on: http://gerrit.dmdirc.com/3645
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
e0c0491dec
Some changes to the profile dialog model.
Change-Id: I29df5d4140fa494495f2230cd5dcc24ecacf0736
Reviewed-on: http://gerrit.dmdirc.com/3635
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
413c3b8e40
Fix up CoreAliasDialogModel
Change-Id: I20df1c9c0b1db6ceece276a96382196ed13cedd8
Depends-On: d1f48e58e8
Reviewed-on: http://gerrit.dmdirc.com/3621
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
e6bdb7819e
Add more unit tests.
Change-Id: I42d6704226b9efa81cf15ba38b3236eeafe3e250
Reviewed-on: http://gerrit.dmdirc.com/3620
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
5aae1e9dd6
Finish CoreProfilesDialogModel.
This model should happily cope with the existing profiles wrapper
being rewritten and when the UI uses this model should mean no UI
changes required to add support.
Change-Id: Iea3b7838cef94514865ecb77064c133ca4556030
Reviewed-on: http://gerrit.dmdirc.com/3619
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
21106aa7c2
Add CoreFeedbackDialogModel.
Change-Id: I0b995639103e7511b89e9aee658f91476f2547b1
Reviewed-on: http://gerrit.dmdirc.com/3603
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
d5d4d20f0a
Add NewServerDialogModel and associated classes.
Depends-On: I4d3d94c3dc60690a958a5b2fc8534c35c1f8b61e
Change-Id: Ifa74a7522db34719b18372846f8b8598fc3152b9
Reviewed-on: http://gerrit.dmdirc.com/3589
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
b03e2560fc
Move CoreAliasDialogModel classes.
Depends-On: I2905dd1596fad47d0c7beaa669331063b48bd305
Change-Id: I7ee9ec39fce785b8e374e50fd05f0ef824097ab0
Reviewed-on: http://gerrit.dmdirc.com/3587
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
70c1e29036
Improve CoreAliasdialogModel.
Depends-On: I7ed08f0738e581840b28851d080b06657299d55b
Change-Id: Ic9c0091441d4f7d87ddc96a327f5e5b12b4cf803
Reviewed-on: http://gerrit.dmdirc.com/3571
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
6f02afbcb2
Deprecate old aliases and remove core refs.
Change-Id: I5de5f97b47cc856b8e751d6b168e27acca6bb3a6
Reviewed-on: http://gerrit.dmdirc.com/3548
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
fa4a3d6dbc
Move /alias command over to new AliasManager.
Change-Id: Idcc9a9cb937302916998900cfc8a00f59d63cc08
Reviewed-on: http://gerrit.dmdirc.com/3536
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
13c09d7b10
Add a factory for creating aliases
Also statically import precondition methods randomly.
Depends-On: I49ec46315f1366d27c12d1b4cc2ac92cd479d46d
Change-Id: I2285d5b886d49841c3e5e6645da14a1c880e6745
Reviewed-on: http://gerrit.dmdirc.com/3535
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
8f8e5d1ca2
Make setSelectedAlias take an optional.
Change-Id: Ia2274c427b1635578d470e7321364f7e28298971
Reviewed-on: http://gerrit.dmdirc.com/3530
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
dad7b6d865
Dont require UI to create aliases.
Change-Id: I01e8bbd9beb0dfd76827455d2939a9e6ff7d74ec
Reviewed-on: http://gerrit.dmdirc.com/3527
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
44911486b0
Add renamealias to corealiasdialogmodel
Change-Id: I3a6f219279f8c0a6a8a0f7471114b371a7039ef7
Reviewed-on: http://gerrit.dmdirc.com/3524
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
fca2f139ae
Add unit tests for CoreAliasDialogModel
Change-Id: I40a3cd040855b53ec87fd476690ddf65c2e3d080
Reviewed-on: http://gerrit.dmdirc.com/3523
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
cf8b7365d1
Add a manager for aliases.
Change-Id: Icdf50211d4b42e4014678f76a69a4c1ad089784a
Reviewed-on: http://gerrit.dmdirc.com/3517
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
da525f87b6
Add Command implementation for aliases.
Change-Id: Id9e68a94dc0b42b3fc4450154e2e2e71807a88c1
Reviewed-on: http://gerrit.dmdirc.com/3516
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
6c730e6ff2
Throw exceptions is we fail to delete config file based things.
Change-Id: I4fa54ebe8f4ff93c8fc33504af66338eda01d0b8
Depends-On: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Depends-On: I9463e66dc39881bcc69b64b8900df1010683b0bc
Depends-On: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Reviewed-on: http://gerrit.dmdirc.com/3503
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
cb25fc6edc
Add unknown command event.
Depends-On: I06ee87cf6f7795eb3ee07828fb43f4381a465ac3
Change-Id: Ibcfc059d943a64494842eab68428ea8351206a09
Reviewed-on: http://gerrit.dmdirc.com/3488
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
5337f506f6
Switch to nio for files in Action.
Change-Id: If5b1caa86eade5cb4f97fbe693b8029c5b5bbb95
Reviewed-on: http://gerrit.dmdirc.com/3495
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
1ec3b56141
FrameContainer parents are Optional.
Change-Id: Ibaf13d210cd01e73adf08bac359244b14faef088
Depends-On: Ief9fccad45d654ffaee9d7a124ebc39f7af56166
Reviewed-on: http://gerrit.dmdirc.com/3470
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
d67ae3ae27
Pass FrameContainer their parents when constructed
There's no reason for the parent to ever change, and this simplifies
a lot of things going forward.
Change-Id: I0dc9f767840ce0989739ea28f08254c78ef0d565
Depends-On: I3c0dc4b6cf42b5c6b69a499ac11195271c0aa846
Reviewed-on: http://gerrit.dmdirc.com/3466
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
ac3c86a653
Remove Action events.
Change-Id: I67b558de082c1ce196800d8b0aafa2d6ce87b298
Reviewed-on: http://gerrit.dmdirc.com/3455
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
09cb002be2
Always specify an origin when parsing commands.
Where commands are executed globally, pass in a GlobalWindow.
Make the GlobalWindow a singleton that persists, and is simply
added/removed from the WindowManager when the user wants to
show/hide it.
Change-Id: Iac94848487442509bdbf8ec98f67983e313ed743
Reviewed-on: http://gerrit.dmdirc.com/3451
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago