Chris Smith
03e9dd99fa
Use proper import ordering.
vor 8 Jahren
Chris Smith
c01e26f5b9
Tidy up nick change handling.
It doesn't make sense to have a public method in Connection to
muddle around with how queries are tracked, nor for queries to
tell servers when they change (creating a dependency loop).
Instead, have the ServerEventHandler tell Server.
vor 8 Jahren
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.
vor 8 Jahren
Chris Smith
10de163267
Separate InputModel functions from FrameContainer.
vor 8 Jahren
Chris Smith
217b5b1a22
Remove input methods from WindowModel.
Migrate all users to using the InputModel.
vor 8 Jahren
Chris Smith
874b2afd2d
Remove FrameContainer parent/child fields.
vor 8 Jahren
Chris Smith
b5e200216d
Disable numeric formatting, remove dead code.
With numeric formatting gone, all output is either added direct
to a window (which will be changed soon) or done through
displayable events. Message sinks are now completely unused,
as they don't affect displayable events.
Issue #426
vor 8 Jahren
Chris Smith
4b61733f0c
Move some more formats over to events.
This allows us to remove a fair chunk of the notification
handling functionality in FrameContainer.
Issue 426
vor 8 Jahren
Chris Smith
8c91a4ca16
Remove CallbackNotFoundException, tidy up Query.
We don't need to reregister on nick change now, as we get all
the events anyway and filter them manually.
vor 9 Jahren
Chris Smith
b8bc8c5717
Fix some query nonsense.
For some reason we're checking hostname (e.g. dmdirc.com)
against full hosts (e.g. chris!ident@dmdirc.com ) and expecting
them to match.
Queries now check on nicknames.
vor 9 Jahren
Greg Holmes
0ea7328c4f
Check events are for us now there are no SpecificCallbacks.
vor 9 Jahren
Greg Holmes
7455fe09da
Fix client after parser changes. Eventbouseseses.
vor 9 Jahren
Chris Smith
deaf4b232f
Tidy how CommandParsers are created.
Instead of passing them in to the FrameContainer ctor, create
them afterwards.
This means the reference in FrameContainer can't be final but
removes the horrible setOwner() kludge that was previously in
CommandParser, and cuts down the deps needed to pass in to the
FrameContainer ctor.
vor 9 Jahren
Chris Smith
ea9a81563c
Fix a bunch more FrameContainer references.
vor 9 Jahren
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.
vor 9 Jahren
Chris Smith
976e365835
Remove Query.getHost.
Only one place in the core needs the silly IRC format, so just
inline it there.
vor 9 Jahren
Greg Holmes
cf03e2ba8a
Sanitise some Optionals before returning in Query.getHost
vor 9 Jahren
Greg Holmes
c8a0b452a2
Fix odd query logic
vor 9 Jahren
Greg Holmes
5a225dac92
Add QueryNickChangeEvent formatter.
vor 9 Jahren
Greg Holmes
131bd2d7a7
Add a QueryQuitEvent, add new nickname to QueryNickChangeEvent.
vor 9 Jahren
Greg Holmes
6266711f11
Fix wrapped users being totally wrong.
vor 9 Jahren
Chris Smith
ce25b15a62
Switch some more output to events.
vor 9 Jahren
Chris Smith
b28b6e5f9b
Remove urlBuilder params.
From everywhere.
vor 9 Jahren
Chris Smith
369d5b6c2b
Remove MessageTarget.
For some reason it reordered the ctor parameters, so fix them too...
vor 9 Jahren
Chris Smith
b61c1bf788
Remove references to MessageTarget.
Doesn't make sense to have this any more, as Chat provides the
common interface between queries + channels.
vor 9 Jahren
Chris Smith
7ae63d4e04
Move query self messages to the new formatter.
vor 9 Jahren
Chris Smith
1697e8a10b
Make Query use Connection iface, not Server.
vor 9 Jahren
Chris Smith
9de663113e
Use new formatter for query action/msg.
Removes some usages of server.parseHostMask which needs to die.
vor 9 Jahren
Chris Smith
eb67b89a04
Stop BackBuffer being so lazy.
We now need it to exist independently of anything requesting it,
otherwise we miss lines being added.
vor 9 Jahren
Chris Smith
42fe0db71f
Fix naming of events.
We no longer need to be consistent with the odd casing/naming
of actions.
vor 9 Jahren
Greg Holmes
1707df7849
Retrieve optional users before passing on.
vor 9 Jahren
Greg Holmes
a69affc703
Pass Users into doNotification everywhere.
vor 9 Jahren
Greg Holmes
48124d1965
Remove some uses of parser local user.
vor 9 Jahren
Greg Holmes
3d3a49d9b8
Remove uses of parser objects in processnotificationargs.
vor 9 Jahren
Shane Mc Cormack
9f3fcd1b59
2015!
vor 9 Jahren
Greg Holmes
df7046f37c
Handle GroupChatUser + User in processNotificationArg
vor 9 Jahren
Greg Holmes
348033fc13
Stop get(Local)User returning Optional.
vor 9 Jahren
Chris Smith
6586b8ad11
Make Query use Users better.
Also remove some more parseHostname calls.
vor 9 Jahren
Greg Holmes
7519e098c4
Fix factory.
vor 9 Jahren
Greg Holmes
f00063e782
Use getLocalUser in Query.
vor 9 Jahren
Greg Holmes
9af0c8c996
Switch events to User.
vor 9 Jahren
Chris Smith
6ecb8e2e9a
Make getParser() optional.
Returning null is bad.
vor 9 Jahren
Chris Smith
f830257585
Rename getOptionalConnection() to getConnection().
vor 9 Jahren
Chris Smith
2eaaf532eb
Found a sneaky one left. Kill it.
vor 9 Jahren
Chris Smith
590fb6e484
Remove getConnection().
vor 9 Jahren
Chris Smith
31a78eb743
Fix various deprecated uses.
Change-Id: I0bb97a8946d1c217de82fe2a9b8f35b7d49eae06
vor 9 Jahren
Chris Smith
2366ffc524
Move BackBuffer to ui.messages.
It doesn't really make sense in ui.core now it's doing more...
The classes it's integrating are all in messages.
vor 9 Jahren
Chris Smith
db4e5c2c77
Give the BackBuffer an EventFormatter.
Urgh.
vor 9 Jahren
Chris Smith
e128a5a9ad
Move messages package to ui.messages.sink
vor 9 Jahren
Chris Smith
c8ec0f77f9
Some OptionalConnection work.
Deprecate getConnection, fix CustomWindow's getOptionalConnection
returning null, change a couple of usages.
vor 9 Jahren