Chris Smith
4c35da850d
Update copyright.
7 years ago
Chris Smith
7127abfa36
Make commands extend BaseCommand.
Flip BaseCommand and Command around so everything still works.
7 years ago
Chris Smith
d15111ddd3
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.
8 years ago
Chris Smith
513120b5be
Convert events to use new date APIs.
Java 8 introduces a sane API for dates; to store datettimes
we should now be using LocalDateTime.
8 years ago
Chris Smith
9d18ce8942
Remove usages of FrameContainer window methods.
These will be going away shortly.
8 years ago
Chris Smith
621a53cf06
Change all command error/output to use events.
8 years ago
Chris Smith
f75e7f79f2
Fix almost all remaining FrameContainer refs.
9 years ago
Chris Smith
499feaea3a
Make WindowManager use WindowModel.
9 years ago
Chris Smith
344e0d38a3
Make Commands take a WindowModel.
9 years ago
Chris Smith
5488531eb9
Make Connection return a WindowModel.
Start to move FrameContainers behind an iface so they can be
pulled out.
For now, just cast back when needed.
9 years ago
Chris Smith
ce25b15a62
Switch some more output to events.
9 years ago
Chris Smith
a97c0a581f
Flip some string comparisons.
9 years ago
Shane Mc Cormack
9f3fcd1b59
2015!
9 years ago
Chris Smith
e819b7085f
Remove some more Server useages.
9 years ago
Chris Smith
f830257585
Rename getOptionalConnection() to getConnection().
9 years ago
Chris Smith
31a78eb743
Fix various deprecated uses.
Change-Id: I0bb97a8946d1c217de82fe2a9b8f35b7d49eae06
9 years ago
Chris Smith
f2f89a9c9f
Change optionals.
9 years ago
Chris Smith
d11784d24a
Use Stream API in place of foreach loops.
This is IDEA's automatic inspection, so stuff may be a bit wonky.
9 years ago
Chris Smith
663ef2c19c
Sprinkle some @Nullables around.
Other minor tidying.
Change-Id: I1e41c7e348b58a0fdea3aaae5a647051f9274409
Reviewed-on: http://gerrit.dmdirc.com/4079
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 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 >
9 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
01fa9b6453
Bulk remove inheritDoc.
Change-Id: I06a0f4ced5eb0c8281e52a38b37a27779c5d571b
Reviewed-on: http://gerrit.dmdirc.com/3273
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
f538c53f86
Fully configure the NB formatter and let it loose.
Change-Id: I7e8052839daa79fa113b89fd0b8c1c892a605b73
Reviewed-on: http://gerrit.dmdirc.com/3122
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Shane Mc Cormack
12b39dc0f8
Update Copyright to 2014
Change-Id: Id0904867640e49e12fca5c1c7c5b9e72c78e3a1b
Reviewed-on: http://gerrit.dmdirc.com/2976
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
c59e662ad4
FrameContainers should expose a Connection.
Anywhere that doesn't just work with a Connection, cast back to a Server for
now. These can be tidied up later.
Change-Id: I02a54b0bcfaef08d5757cc015c356f9779ec0371
Depends-On: Id55c3611173be7ed79fae8f9e976996d713b8646
Reviewed-on: http://gerrit.dmdirc.com/2950
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
64b6878f29
Java 7 conversions
Change-Id: I0b0f84fee719d5d2ad4ff62864ea340af07192a3
Reviewed-on: http://gerrit.dmdirc.com/2893
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
0c43d2a21e
Remove most singleton uses of WindowManager.
Change-Id: Idd97b752328310b4f829a45a43de5fdf6f5712a5
Depends-On: I1f054c7423106afe3fc49db8dc44613ec11c35bb
Reviewed-on: http://gerrit.dmdirc.com/2816
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
0620e3d432
Make all core commands provide a controller.
Change-Id: Iaf2c2fbc2ccc32aa8b05fd1a309fad524b2baf94
Reviewed-on: http://gerrit.dmdirc.com/2724
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
1d439133aa
Inject all the commands.
Instead of manually tracking dependencies and creating them in
CommandLoader, just have a module to provide a set of commands
that we can load.
This makes it stupidly easy to add dependencies in commands.
Also rename the /set command from Set because that's just
confusing.
Change-Id: I7967609e356de3c17d0942ebc913be438debe49c
Reviewed-on: http://gerrit.dmdirc.com/2722
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Shane Mc Cormack
b87e3ba335
Update copyright for 2013
Change-Id: Idf38f5027a92166daf99039de75b759d47431de1
Reviewed-on: http://gerrit.dmdirc.com/2607
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
11 years ago
Shane Mc Cormack
7b67f19db2
Revert "Continue main removal"
Revert "Begin work on removing CommandManager singleton"
This reverts commit e93538e9dc .
Change-Id: I8eb4f70f80292d66e3bdbe9f32766b5f427413c2
Depends-On: Iba86c7f2bf870684e0d41f88d82f16b43d43fe80
Reviewed-on: http://gerrit.dmdirc.com/2601
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
11 years ago
greboid
f9c93121a9
Begin work on removing CommandManager singleton
Change-Id: Ieb44f09699a2304fa5b07f474989823f02fc78b0
Depends-On: I04e90afc89211eee412a511b12baeedf0361b414
Reviewed-on: http://gerrit.dmdirc.com/2584
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
11 years ago
Greg Holmes
ab45825e88
De-singleton + unit test
Change-Id: Iadcf92d4390034828d005a9c9e92d9a8ba189c99
Depends-On: I17790a0e71a6c004a088a6eb51332293b23062a4
Reviewed-on: http://gerrit.dmdirc.com/2455
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Shane Mc Cormack
d26602c9dc
Update Copyright for 2012
Change-Id: I0d40c3ac86b9e06fad3f29bc36612b4162e54d1c
Reviewed-on: http://gerrit.dmdirc.com/2287
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
d04e2bea4f
Change header?
Change-Id: I635e0d111ed182713132145e4d5fb1654f776ec4
Reviewed-on: http://gerrit.dmdirc.com/2071
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 years ago
Greg Holmes
935c21ebf8
Remove windows from commands
Change-Id: I5b6e7e2ca81d114028fef6cac0d88498def62ea0
Depends-On: I895be099fa526e4e4b566e7178120b5d1ad0912c
Reviewed-on: http://gerrit.dmdirc.com/2011
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 years ago
Chris Smith
7cd4171bf1
Add BasicCommandInfo and make core commands use it
Change-Id: I24e8daf8cc076d90328f7c38cf539420566bf14e
Fixes-Issue: CLIENT-262
Reviewed-on: http://gerrit.dmdirc.com/2009
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
13 years ago
Chris Smith
c90b7be0aa
Commands style fixes
Change-Id: I4124ed9a760e174b7e3ce65b7a0dc7f00366b479
Reviewed-on: http://gerrit.dmdirc.com/1993
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
13 years ago
Chris Smith
d76efc309f
Make WindowManager non-static
CLIENT-84
Change-Id: I4f8df35efbb7ce266d6e8b1239c646a0a9c92107
Depends-On: Ia9b45bc4ff7f17af9e1eed758c0a659f6ab47251
Reviewed-on: http://gerrit.dmdirc.com/1987
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 years ago
Chris Smith
ef8a269d00
Make UIs responsible for their own selection handling.
This removes the core concept of an active window,
and as such the 'active' notification target has
been removed. Fixes CLIENT-214.
Change-Id: Ieddf71114e55e0d3e3b040751d21a5523d4438d4
Depends-On: I9a135fb48b197bb555f470d3052f2ebc9a0a426c
Reviewed-on: http://gerrit.dmdirc.com/1948
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 years ago
Chris Smith
77b570a30f
Style fixes
Change-Id: If63e94dcf0aec9e9aa99e84f9962879fca46051f
Reviewed-on: http://gerrit.dmdirc.com/1931
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 years ago
Chris Smith
198a1597cc
Rework FrameContainer/UI interaction
- FrameContainers are no longer parameterised
- Introduced notion of window "Components"
- Removed per-window interfaces - fixes CLIENT-218
Change-Id: Ieefbf2d1e157e3638dbe8fdedbd4f32642061329
Depends-On: Iecbb2941c99a3412dc2eb3b7f56fc584d2db483e
Reviewed-on: http://gerrit.dmdirc.com/1885
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 years ago
Shane Mc Cormack
fd83b6b2a9
Update Copyright
Change-Id: I7f63fdd02ea0109fe31e55c44b078edae3862f32
Reviewed-on: http://gerrit.dmdirc.com/1726
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 years ago
Chris Smith
da78032175
Add command flag utility classes and make /echo and /set use them.
Fixes CLIENT-119
Fixes CLIENT-120
Change-Id: I2e7ad2c3b8f0db591031fc281a24aa6627331a6e
Reviewed-on: http://gerrit.dmdirc.com/1680
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 years ago
Chris Smith
a0c696ca89
Commands no longer register themselves in their ctors
Fixes CLIENT-61
Change-Id: I35c09e83804216c75f10290815cdeacd35bc57fd
Reviewed-on: http://gerrit.dmdirc.com/1531
Automatic-Compile: Greg Holmes <greg@dmdirc.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 years ago
Chris Smith
2edf699e02
Introduce command contexts.
Fixes issue 4152
Fixes issue 4002
Change-Id: I664124ecb0994a808e2de359a38507c3b5f16452
Reviewed-on: http://gerrit.dmdirc.com/1250
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 years ago
Chris Smith
2897dcca5a
Core support for lines with arbitrary timestamps
Fixed echo command not respecting silence characters when using --target or
--active(!). Added --ts command to echo command to fake the timestamp.
mIRC tab completion and /echo --ts <tab> ftw.
Fixes issue 4090
Change-Id: Ia236ae81e38f0387d15e8798128dbb1dd846c5af
Reviewed-on: http://gerrit.dmdirc.com/1203
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 years ago
Chris Smith
f4bbdb48fe
Massive window changes.
Highlights:
- FrameContainers are now generic, according to their window type
- Writable frame containers now handle their tab completers
- Redirect plugin works again
- Windows are no longer actively requested from the UI; the UI
creates and adds them in response to events from the WindowManager
fixes issue 3997, fixes issue 4000, fixes issue 4012, fixes issue 4030
fixes issue 4027, fixes issue 4028, fixes issue 4029, fixes issue 4031
fixes issue 4032, fixes issue 4033
Change-Id: Ife307728e46bd3b6dcd189be6886ab8b6fbd9212
Reviewed-on: http://gerrit.dmdirc.com/1144
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: Gregory Holmes <greg@dmdirc.com >
14 years ago
Chris Smith
5334959656
Commands now use containers not windows
Fixes issue 3998
Change-Id: I901ed80272a445f2bd303a01e842e6f50cc5ae04
Reviewed-on: http://gerrit.dmdirc.com/1116
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: Gregory Holmes <greg@dmdirc.com >
14 years ago
Chris Smith
0ecbf05e69
WindowManager now uses FrameContainers
Fixes issue 3987
Change-Id: I34cbc1cea7c5283b62b3f658cdfc53073f946b3f
Reviewed-on: http://gerrit.dmdirc.com/1106
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 years ago