Chris Smith
03e9dd99fa
Use proper import ordering.
před 8 roky
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.
před 8 roky
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.
před 8 roky
Chris Smith
10de163267
Separate InputModel functions from FrameContainer.
před 8 roky
Chris Smith
217b5b1a22
Remove input methods from WindowModel.
Migrate all users to using the InputModel.
před 8 roky
Chris Smith
874b2afd2d
Remove FrameContainer parent/child fields.
před 8 roky
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
před 8 roky
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
před 8 roky
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.
před 9 roky
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.
před 9 roky
Greg Holmes
0ea7328c4f
Check events are for us now there are no SpecificCallbacks.
před 9 roky
Greg Holmes
7455fe09da
Fix client after parser changes. Eventbouseseses.
před 9 roky
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.
před 9 roky
Chris Smith
ea9a81563c
Fix a bunch more FrameContainer references.
před 9 roky
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.
před 9 roky
Chris Smith
976e365835
Remove Query.getHost.
Only one place in the core needs the silly IRC format, so just
inline it there.
před 9 roky
Greg Holmes
cf03e2ba8a
Sanitise some Optionals before returning in Query.getHost
před 9 roky
Greg Holmes
c8a0b452a2
Fix odd query logic
před 9 roky
Greg Holmes
5a225dac92
Add QueryNickChangeEvent formatter.
před 9 roky
Greg Holmes
131bd2d7a7
Add a QueryQuitEvent, add new nickname to QueryNickChangeEvent.
před 9 roky
Greg Holmes
6266711f11
Fix wrapped users being totally wrong.
před 9 roky
Chris Smith
ce25b15a62
Switch some more output to events.
před 9 roky
Chris Smith
b28b6e5f9b
Remove urlBuilder params.
From everywhere.
před 9 roky
Chris Smith
369d5b6c2b
Remove MessageTarget.
For some reason it reordered the ctor parameters, so fix them too...
před 9 roky
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.
před 9 roky
Chris Smith
7ae63d4e04
Move query self messages to the new formatter.
před 9 roky
Chris Smith
1697e8a10b
Make Query use Connection iface, not Server.
před 9 roky
Chris Smith
9de663113e
Use new formatter for query action/msg.
Removes some usages of server.parseHostMask which needs to die.
před 9 roky
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.
před 9 roky
Chris Smith
42fe0db71f
Fix naming of events.
We no longer need to be consistent with the odd casing/naming
of actions.
před 9 roky
Greg Holmes
1707df7849
Retrieve optional users before passing on.
před 9 roky
Greg Holmes
a69affc703
Pass Users into doNotification everywhere.
před 9 roky
Greg Holmes
48124d1965
Remove some uses of parser local user.
před 9 roky
Greg Holmes
3d3a49d9b8
Remove uses of parser objects in processnotificationargs.
před 9 roky
Shane Mc Cormack
9f3fcd1b59
2015!
před 9 roky
Greg Holmes
df7046f37c
Handle GroupChatUser + User in processNotificationArg
před 9 roky
Greg Holmes
348033fc13
Stop get(Local)User returning Optional.
před 9 roky
Chris Smith
6586b8ad11
Make Query use Users better.
Also remove some more parseHostname calls.
před 9 roky
Greg Holmes
7519e098c4
Fix factory.
před 9 roky
Greg Holmes
f00063e782
Use getLocalUser in Query.
před 9 roky
Greg Holmes
9af0c8c996
Switch events to User.
před 9 roky
Chris Smith
6ecb8e2e9a
Make getParser() optional.
Returning null is bad.
před 9 roky
Chris Smith
f830257585
Rename getOptionalConnection() to getConnection().
před 9 roky
Chris Smith
2eaaf532eb
Found a sneaky one left. Kill it.
před 9 roky
Chris Smith
590fb6e484
Remove getConnection().
před 9 roky
Chris Smith
31a78eb743
Fix various deprecated uses.
Change-Id: I0bb97a8946d1c217de82fe2a9b8f35b7d49eae06
před 9 roky
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.
před 9 roky
Chris Smith
db4e5c2c77
Give the BackBuffer an EventFormatter.
Urgh.
před 9 roky
Chris Smith
e128a5a9ad
Move messages package to ui.messages.sink
před 9 roky
Chris Smith
c8ec0f77f9
Some OptionalConnection work.
Deprecate getConnection, fix CustomWindow's getOptionalConnection
returning null, change a couple of usages.
před 9 roky