Selaa lähdekoodia

Merge branch 'master' of https://github.com/DMDirc/DMDirc

pull/787/head
Greg Holmes 7 vuotta sitten
vanhempi
commit
d97d8c5380
100 muutettua tiedostoa jossa 1161 lisäystä ja 1221 poistoa
  1. 4
    7
      .gitignore
  2. 19
    0
      api/build.gradle
  3. 2
    1
      api/src/main/java/com/dmdirc/events/BaseDisplayableEvent.java
  4. 2
    1
      api/src/main/java/com/dmdirc/events/ChannelEvent.java
  5. 3
    1
      api/src/main/java/com/dmdirc/events/ClientClosedEvent.java
  6. 3
    1
      api/src/main/java/com/dmdirc/events/ClientClosingEvent.java
  7. 2
    1
      api/src/main/java/com/dmdirc/events/ClientFrameChangedEvent.java
  8. 2
    1
      api/src/main/java/com/dmdirc/events/ClientLineAddedEvent.java
  9. 3
    1
      api/src/main/java/com/dmdirc/events/ClientOpenedEvent.java
  10. 2
    1
      api/src/main/java/com/dmdirc/events/ClientUserInputEvent.java
  11. 0
    57
      api/src/main/java/com/dmdirc/events/DMDircEvent.java
  12. 3
    1
      api/src/main/java/com/dmdirc/events/FeedbackNagEvent.java
  13. 3
    1
      api/src/main/java/com/dmdirc/events/FirstRunEvent.java
  14. 2
    1
      api/src/main/java/com/dmdirc/events/FrameChangedEvent.java
  15. 2
    1
      api/src/main/java/com/dmdirc/events/FrameComponentEvent.java
  16. 2
    1
      api/src/main/java/com/dmdirc/events/FrameEvent.java
  17. 2
    1
      api/src/main/java/com/dmdirc/events/LinkEvent.java
  18. 2
    1
      api/src/main/java/com/dmdirc/events/ProfileAddedEvent.java
  19. 2
    1
      api/src/main/java/com/dmdirc/events/ProfileDeletedEvent.java
  20. 2
    1
      api/src/main/java/com/dmdirc/events/QueryEvent.java
  21. 2
    1
      api/src/main/java/com/dmdirc/events/ServerEvent.java
  22. 2
    1
      api/src/main/java/com/dmdirc/events/UnknownCommandEvent.java
  23. 2
    1
      api/src/main/java/com/dmdirc/events/UnknownURLEvent.java
  24. 2
    1
      api/src/main/java/com/dmdirc/events/UnreadStatusChangedEvent.java
  25. 1
    0
      api/src/main/java/com/dmdirc/interfaces/GroupChat.java
  26. 1
    0
      api/src/main/java/com/dmdirc/interfaces/WindowModel.java
  27. 1
    1
      api/src/main/java/com/dmdirc/interfaces/config/AggregateConfigProvider.java
  28. 6
    0
      build.gradle
  29. 55
    0
      bundles/com.dmdirc.config.binding/build.gradle
  30. 12
    17
      bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/BasicInvocation.java
  31. 12
    17
      bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/ConfigBinder.java
  32. 12
    17
      bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/ConfigBinding.java
  33. 13
    18
      bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/Invocation.java
  34. 55
    0
      bundles/com.dmdirc.events.eventbus/build.gradle
  35. 60
    0
      bundles/com.dmdirc.events.eventbus/src/main/java/com/dmdirc/events/eventbus/BaseEvent.java
  36. 14
    21
      bundles/com.dmdirc.events.eventbus/src/main/java/com/dmdirc/events/eventbus/EventBus.java
  37. 63
    0
      bundles/com.dmdirc.events.eventbus/src/main/java/com/dmdirc/events/eventbus/MBassadorEventBus.java
  38. 56
    0
      bundles/com.dmdirc.util.io.yaml/build.gradle
  39. 28
    33
      bundles/com.dmdirc.util.io.yaml/src/main/java/com/dmdirc/util/io/yaml/BaseYamlStore.java
  40. 23
    52
      bundles/com.dmdirc.util.io.yaml/src/main/java/com/dmdirc/util/io/yaml/YamlReaderUtils.java
  41. 5
    0
      gradle/jar.gradle
  42. 6
    0
      settings.gradle
  43. 11
    16
      src/main/java/com/dmdirc/Channel.java
  44. 11
    16
      src/main/java/com/dmdirc/ChannelClient.java
  45. 12
    17
      src/main/java/com/dmdirc/ChannelEventHandler.java
  46. 12
    17
      src/main/java/com/dmdirc/ChannelFactory.java
  47. 11
    16
      src/main/java/com/dmdirc/ChannelMap.java
  48. 11
    16
      src/main/java/com/dmdirc/Client.java
  49. 42
    0
      src/main/java/com/dmdirc/ClientActivator.java
  50. 14
    18
      src/main/java/com/dmdirc/ClientModule.java
  51. 12
    17
      src/main/java/com/dmdirc/CustomWindow.java
  52. 0
    82
      src/main/java/com/dmdirc/DMDircMBassador.java
  53. 11
    16
      src/main/java/com/dmdirc/DMDircSecurityPolicy.java
  54. 11
    16
      src/main/java/com/dmdirc/DefaultInputModel.java
  55. 11
    16
      src/main/java/com/dmdirc/EventHandler.java
  56. 12
    17
      src/main/java/com/dmdirc/FrameContainer.java
  57. 12
    17
      src/main/java/com/dmdirc/GlobalWindow.java
  58. 11
    16
      src/main/java/com/dmdirc/GroupChatManagerImpl.java
  59. 11
    16
      src/main/java/com/dmdirc/GroupChatManagerImplFactory.java
  60. 11
    16
      src/main/java/com/dmdirc/GroupChatUserFactory.java
  61. 11
    16
      src/main/java/com/dmdirc/GroupChatUserManager.java
  62. 11
    16
      src/main/java/com/dmdirc/InviteManagerImpl.java
  63. 11
    16
      src/main/java/com/dmdirc/LauncherUtils.java
  64. 12
    17
      src/main/java/com/dmdirc/Main.java
  65. 11
    16
      src/main/java/com/dmdirc/MessageEncoder.java
  66. 17
    0
      src/main/java/com/dmdirc/MessageEncoderFactory.java
  67. 11
    16
      src/main/java/com/dmdirc/MissingModeAliasException.java
  68. 11
    16
      src/main/java/com/dmdirc/ParserFactory.java
  69. 11
    16
      src/main/java/com/dmdirc/Precondition.java
  70. 11
    16
      src/main/java/com/dmdirc/Query.java
  71. 11
    16
      src/main/java/com/dmdirc/QueryFactory.java
  72. 11
    16
      src/main/java/com/dmdirc/Server.java
  73. 12
    17
      src/main/java/com/dmdirc/ServerEventHandler.java
  74. 12
    17
      src/main/java/com/dmdirc/ServerFactoryImpl.java
  75. 12
    17
      src/main/java/com/dmdirc/ServerManager.java
  76. 11
    16
      src/main/java/com/dmdirc/ServerStatus.java
  77. 12
    17
      src/main/java/com/dmdirc/SystemLifecycleController.java
  78. 11
    16
      src/main/java/com/dmdirc/UserFactory.java
  79. 11
    16
      src/main/java/com/dmdirc/UserManager.java
  80. 11
    16
      src/main/java/com/dmdirc/WindowModelComparator.java
  81. 11
    16
      src/main/java/com/dmdirc/commandline/BaseDirectoryLocator.java
  82. 11
    16
      src/main/java/com/dmdirc/commandline/CommandLineOptionsModule.java
  83. 11
    16
      src/main/java/com/dmdirc/commandline/CommandLineParser.java
  84. 11
    16
      src/main/java/com/dmdirc/commandline/RemoteInterface.java
  85. 11
    16
      src/main/java/com/dmdirc/commandline/RemoteServer.java
  86. 11
    16
      src/main/java/com/dmdirc/commandparser/BaseCommandInfo.java
  87. 12
    17
      src/main/java/com/dmdirc/commandparser/CommandManager.java
  88. 12
    17
      src/main/java/com/dmdirc/commandparser/PopupManager.java
  89. 11
    16
      src/main/java/com/dmdirc/commandparser/PopupMenu.java
  90. 11
    16
      src/main/java/com/dmdirc/commandparser/PopupMenuItem.java
  91. 11
    16
      src/main/java/com/dmdirc/commandparser/PopupType.java
  92. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/ActionAliasMigrator.java
  93. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/AliasCommandHandler.java
  94. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/AliasFactory.java
  95. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/AliasLifecycleManager.java
  96. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/AliasLoader.java
  97. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/AliasManager.java
  98. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/AliasesModule.java
  99. 11
    16
      src/main/java/com/dmdirc/commandparser/aliases/DefaultAliasInstaller.java
  100. 0
    0
      src/main/java/com/dmdirc/commandparser/aliases/YamlAliasStore.java

+ 4
- 7
.gitignore Näytä tiedosto

@@ -1,5 +1,4 @@
1 1
 # DMDirc .gitignore file
2
-/build
3 2
 /dist
4 3
 /lib
5 4
 /etc/clover.license
@@ -8,10 +7,8 @@
8 7
 /*.key
9 8
 /.gradle
10 9
 
11
-/api/build
12
-/api/src/*/generated
13
-/api/src/*/generated_tests
14
-
15 10
 # Generated files created by IDEA
16
-/src/*/generated
17
-/src/*/generated_tests
11
+**/build
12
+**/src/*/generated
13
+**/src/*/generated_tests
14
+

+ 19
- 0
api/build.gradle Näytä tiedosto

@@ -1,3 +1,20 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
1 18
 plugins {
2 19
   id 'java'
3 20
   id 'findbugs'
@@ -28,6 +45,8 @@ dependencies {
28 45
     compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.21'
29 46
     compile group: 'com.squareup.dagger', name: 'dagger', version: '1.2.5'
30 47
     compile group: 'com.google.guava', name:'guava', version: '19.0'
48
+    compile group: 'com.dmdirc', name: 'com.dmdirc.config.binding', version: '+', changing: true
49
+    compile group: 'com.dmdirc', name: 'com.dmdirc.events.eventbus', version: '+', changing: true
31 50
     compile group: 'com.dmdirc', name: 'util', version: '+', changing: true
32 51
     compile group: 'com.dmdirc', name: 'parser-common', version: '+', changing: true
33 52
 

+ 2
- 1
api/src/main/java/com/dmdirc/events/BaseDisplayableEvent.java Näytä tiedosto

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 import java.time.LocalDateTime;
@@ -30,7 +31,7 @@ import java.util.Optional;
30 31
 /**
31 32
  * Base class for miscellaneous displayable events.
32 33
  */
33
-public abstract class BaseDisplayableEvent extends DMDircEvent implements DisplayableEvent {
34
+public abstract class BaseDisplayableEvent extends BaseEvent implements DisplayableEvent {
34 35
 
35 36
     /** The properties associated with this event. */
36 37
     private final DisplayPropertyMap properties = new DisplayPropertyMap();

+ 2
- 1
api/src/main/java/com/dmdirc/events/ChannelEvent.java Näytä tiedosto

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.GroupChat;
26 27
 
27 28
 import java.time.LocalDateTime;
@@ -31,7 +32,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
31 32
 /**
32 33
  * Base type for events that occur in channels.
33 34
  */
34
-public abstract class ChannelEvent extends DMDircEvent {
35
+public abstract class ChannelEvent extends BaseEvent {
35 36
 
36 37
     /** The group chat that this event occurred on. */
37 38
     private final GroupChat groupChat;

+ 3
- 1
api/src/main/java/com/dmdirc/events/ClientClosedEvent.java Näytä tiedosto

@@ -22,9 +22,11 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
26
+
25 27
 /**
26 28
  * Fired when the client is being closed.
27 29
  */
28
-public class ClientClosedEvent extends DMDircEvent {
30
+public class ClientClosedEvent extends BaseEvent {
29 31
 
30 32
 }

+ 3
- 1
api/src/main/java/com/dmdirc/events/ClientClosingEvent.java Näytä tiedosto

@@ -22,9 +22,11 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
26
+
25 27
 /**
26 28
  * Fired when the client is about to close.
27 29
  */
28
-public class ClientClosingEvent extends DMDircEvent {
30
+public class ClientClosingEvent extends BaseEvent {
29 31
 
30 32
 }

+ 2
- 1
api/src/main/java/com/dmdirc/events/ClientFrameChangedEvent.java Näytä tiedosto

@@ -22,12 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 /**
28 29
  * Event fired when a new frame has been focused.
29 30
  */
30
-public class ClientFrameChangedEvent extends DMDircEvent {
31
+public class ClientFrameChangedEvent extends BaseEvent {
31 32
 
32 33
     private final WindowModel container;
33 34
 

+ 2
- 1
api/src/main/java/com/dmdirc/events/ClientLineAddedEvent.java Näytä tiedosto

@@ -22,12 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 /**
28 29
  * Event fired when a line has been added to a window.
29 30
  */
30
-public class ClientLineAddedEvent extends DMDircEvent {
31
+public class ClientLineAddedEvent extends BaseEvent {
31 32
 
32 33
     private final WindowModel container;
33 34
     private final String line;

+ 3
- 1
api/src/main/java/com/dmdirc/events/ClientOpenedEvent.java Näytä tiedosto

@@ -22,8 +22,10 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
26
+
25 27
 /**
26 28
  * Fired when the client is first opened.
27 29
  */
28
-public class ClientOpenedEvent extends DMDircEvent {
30
+public class ClientOpenedEvent extends BaseEvent {
29 31
 }

+ 2
- 1
api/src/main/java/com/dmdirc/events/ClientUserInputEvent.java Näytä tiedosto

@@ -22,12 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 /**
28 29
  * Event fired when some input has been entered into the client.
29 30
  */
30
-public class ClientUserInputEvent extends DMDircEvent {
31
+public class ClientUserInputEvent extends BaseEvent {
31 32
 
32 33
     private final WindowModel container;
33 34
     private final StringBuffer buffer;

+ 0
- 57
api/src/main/java/com/dmdirc/events/DMDircEvent.java Näytä tiedosto

@@ -1,57 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-package com.dmdirc.events;
24
-
25
-import java.time.LocalDateTime;
26
-
27
-/**
28
- * Base class for all DMDirc events.
29
- */
30
-public abstract class DMDircEvent {
31
-
32
-    /**
33
-     * The time the event was triggered at.
34
-     */
35
-    private final LocalDateTime timestamp;
36
-
37
-    /**
38
-     * Creates a new event with the specified timestamp.
39
-     *
40
-     * @param timestamp The stamp the event was triggered at.
41
-     */
42
-    protected DMDircEvent(final LocalDateTime timestamp) {
43
-        this.timestamp = timestamp;
44
-    }
45
-
46
-    /**
47
-     * Creates a new event with the current system timestamp.
48
-     */
49
-    protected DMDircEvent() {
50
-        this.timestamp = LocalDateTime.now();
51
-    }
52
-
53
-    public LocalDateTime getTimestamp() {
54
-        return timestamp;
55
-    }
56
-
57
-}

+ 3
- 1
api/src/main/java/com/dmdirc/events/FeedbackNagEvent.java Näytä tiedosto

@@ -22,9 +22,11 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
26
+
25 27
 /**
26 28
  * Fired when its time to nag for feedback.
27 29
  */
28
-public class FeedbackNagEvent extends DMDircEvent {
30
+public class FeedbackNagEvent extends BaseEvent {
29 31
 
30 32
 }

+ 3
- 1
api/src/main/java/com/dmdirc/events/FirstRunEvent.java Näytä tiedosto

@@ -22,11 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
26
+
25 27
 /**
26 28
  * Fired when the client is first run.  Handled should be checked and set appropriately, only core
27 29
  * first run events should occur if unhandled.
28 30
  */
29
-public class FirstRunEvent extends DMDircEvent {
31
+public class FirstRunEvent extends BaseEvent {
30 32
 
31 33
     private boolean handled;
32 34
 

+ 2
- 1
api/src/main/java/com/dmdirc/events/FrameChangedEvent.java Näytä tiedosto

@@ -22,12 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 /**
28 29
  * Base class for all frame info events.
29 30
  */
30
-public class FrameChangedEvent extends DMDircEvent {
31
+public class FrameChangedEvent extends BaseEvent {
31 32
 
32 33
     private final WindowModel container;
33 34
 

+ 2
- 1
api/src/main/java/com/dmdirc/events/FrameComponentEvent.java Näytä tiedosto

@@ -22,12 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 /**
28 29
  * Base class for frame component events.
29 30
  */
30
-public abstract class FrameComponentEvent extends DMDircEvent {
31
+public abstract class FrameComponentEvent extends BaseEvent {
31 32
 
32 33
     private final WindowModel container;
33 34
     private final String component;

+ 2
- 1
api/src/main/java/com/dmdirc/events/FrameEvent.java Näytä tiedosto

@@ -22,12 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 /**
28 29
  * Base class for window related events in the client.
29 30
  */
30
-public abstract class FrameEvent extends DMDircEvent implements SourcedEvent {
31
+public abstract class FrameEvent extends BaseEvent implements SourcedEvent {
31 32
 
32 33
     private final WindowModel source;
33 34
 

+ 2
- 1
api/src/main/java/com/dmdirc/events/LinkEvent.java Näytä tiedosto

@@ -22,12 +22,13 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 /**
28 29
  * Common properties of link events.
29 30
  */
30
-public abstract class LinkEvent extends DMDircEvent {
31
+public abstract class LinkEvent extends BaseEvent {
31 32
 
32 33
     private final WindowModel window;
33 34
     private final String target;

+ 2
- 1
api/src/main/java/com/dmdirc/events/ProfileAddedEvent.java Näytä tiedosto

@@ -23,11 +23,12 @@
23 23
 package com.dmdirc.events;
24 24
 
25 25
 import com.dmdirc.config.profiles.Profile;
26
+import com.dmdirc.events.eventbus.BaseEvent;
26 27
 
27 28
 /**
28 29
  * Fired when a profile is added to the config.
29 30
  */
30
-public class ProfileAddedEvent extends DMDircEvent {
31
+public class ProfileAddedEvent extends BaseEvent {
31 32
 
32 33
     private final Profile profile;
33 34
 

+ 2
- 1
api/src/main/java/com/dmdirc/events/ProfileDeletedEvent.java Näytä tiedosto

@@ -23,11 +23,12 @@
23 23
 package com.dmdirc.events;
24 24
 
25 25
 import com.dmdirc.config.profiles.Profile;
26
+import com.dmdirc.events.eventbus.BaseEvent;
26 27
 
27 28
 /**
28 29
  * Fired when a profile is deleted from the config.
29 30
  */
30
-public class ProfileDeletedEvent extends DMDircEvent {
31
+public class ProfileDeletedEvent extends BaseEvent {
31 32
 
32 33
     private final Profile profile;
33 34
 

+ 2
- 1
api/src/main/java/com/dmdirc/events/QueryEvent.java Näytä tiedosto

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.PrivateChat;
26 27
 
27 28
 import java.time.LocalDateTime;
@@ -31,7 +32,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
31 32
 /**
32 33
  * Base type for events that occur in queries.
33 34
  */
34
-public abstract class QueryEvent extends DMDircEvent {
35
+public abstract class QueryEvent extends BaseEvent {
35 36
 
36 37
     /** The query that this event occurred on. */
37 38
     private final PrivateChat query;

+ 2
- 1
api/src/main/java/com/dmdirc/events/ServerEvent.java Näytä tiedosto

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.Connection;
26 27
 
27 28
 import java.time.LocalDateTime;
@@ -31,7 +32,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
31 32
 /**
32 33
  * Base type for events that occur on a connection.
33 34
  */
34
-public abstract class ServerEvent extends DMDircEvent {
35
+public abstract class ServerEvent extends BaseEvent {
35 36
 
36 37
     /** The connection that this event occurred on. */
37 38
     private final Connection connection;

+ 2
- 1
api/src/main/java/com/dmdirc/events/UnknownCommandEvent.java Näytä tiedosto

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 
27 28
 import java.time.LocalDateTime;
@@ -32,7 +33,7 @@ import javax.annotation.Nullable;
32 33
 /**
33 34
  * Fired when an unknown command is used.
34 35
  */
35
-public class UnknownCommandEvent extends DMDircEvent implements DisplayableEvent {
36
+public class UnknownCommandEvent extends BaseEvent implements DisplayableEvent {
36 37
 
37 38
     /** The properties associated with this event. */
38 39
     private final DisplayPropertyMap properties = new DisplayPropertyMap();

+ 2
- 1
api/src/main/java/com/dmdirc/events/UnknownURLEvent.java Näytä tiedosto

@@ -22,13 +22,14 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import java.net.URI;
26 27
 
27 28
 /**
28 29
  * Fired when the URL handler encounters an unknown URL protocol.  The handled boolean should be
29 30
  * checked, if it is true the event should be disregarded.
30 31
  */
31
-public class UnknownURLEvent extends DMDircEvent {
32
+public class UnknownURLEvent extends BaseEvent {
32 33
 
33 34
     private boolean handled;
34 35
     private final URI uri;

+ 2
- 1
api/src/main/java/com/dmdirc/events/UnreadStatusChangedEvent.java Näytä tiedosto

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
+import com.dmdirc.events.eventbus.BaseEvent;
25 26
 import com.dmdirc.interfaces.WindowModel;
26 27
 import com.dmdirc.ui.messages.UnreadStatusManager;
27 28
 import com.dmdirc.util.colours.Colour;
@@ -31,7 +32,7 @@ import java.util.Optional;
31 32
 /**
32 33
  * Event raised when the unread status of a window has changed.
33 34
  */
34
-public class UnreadStatusChangedEvent extends DMDircEvent implements SourcedEvent {
35
+public class UnreadStatusChangedEvent extends BaseEvent implements SourcedEvent {
35 36
 
36 37
     private final WindowModel source;
37 38
     private final UnreadStatusManager manager;

+ 1
- 0
api/src/main/java/com/dmdirc/interfaces/GroupChat.java Näytä tiedosto

@@ -23,6 +23,7 @@
23 23
 package com.dmdirc.interfaces;
24 24
 
25 25
 import com.dmdirc.Topic;
26
+import com.dmdirc.events.eventbus.EventBus;
26 27
 import com.dmdirc.parser.common.ChannelListModeItem;
27 28
 
28 29
 import java.util.Collection;

+ 1
- 0
api/src/main/java/com/dmdirc/interfaces/WindowModel.java Näytä tiedosto

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.interfaces;
24 24
 
25
+import com.dmdirc.events.eventbus.EventBus;
25 26
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
26 27
 import com.dmdirc.ui.messages.BackBuffer;
27 28
 import com.dmdirc.ui.messages.UnreadStatusManager;

+ 1
- 1
api/src/main/java/com/dmdirc/interfaces/config/AggregateConfigProvider.java Näytä tiedosto

@@ -22,7 +22,7 @@
22 22
 
23 23
 package com.dmdirc.interfaces.config;
24 24
 
25
-import com.dmdirc.config.ConfigBinder;
25
+import com.dmdirc.config.binding.ConfigBinder;
26 26
 
27 27
 import java.util.List;
28 28
 import java.util.Set;

+ 6
- 0
build.gradle Näytä tiedosto

@@ -35,6 +35,7 @@ dependencies {
35 35
     compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
36 36
     compile group: 'com.squareup.dagger', name: 'dagger-compiler', version: '1.2.5'
37 37
     compile group: 'com.google.auto.value', name: 'auto-value', version: '1.3'
38
+    compile group: 'org.osgi', name: 'org.osgi.core', version: '6.0.0'
38 39
 
39 40
     bundle group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7'
40 41
     bundle group: 'org.slf4j', name: 'slf4j-api', version:'1.7.21'
@@ -44,6 +45,11 @@ dependencies {
44 45
     bundle group: 'com.google.guava', name:'guava', version: '19.0'
45 46
     bundle group: 'net.engio', name: 'mbassador', version: '1.3.0'
46 47
     bundle group: 'com.google.code.gson', name: 'gson', 'version': '2.5'
48
+
49
+    bundle group: 'com.dmdirc', name: 'com.dmdirc.config.binding', version: '+', changing: true
50
+    bundle group: 'com.dmdirc', name: 'com.dmdirc.events.eventbus', version: '+', changing: true
51
+    bundle group: 'com.dmdirc', name: 'com.dmdirc.util.io.yaml', version: '+', changing: true
52
+
47 53
     bundle group: 'com.dmdirc', name: 'api', version: '+', changing: true
48 54
     bundle group: 'com.dmdirc', name: 'util', version: '+', changing: true
49 55
     bundle group: 'com.dmdirc', name: 'parser-common', version: '+', changing: true

+ 55
- 0
bundles/com.dmdirc.config.binding/build.gradle Näytä tiedosto

@@ -0,0 +1,55 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
18
+plugins {
19
+    id 'java'
20
+    id 'findbugs'
21
+    id 'pmd'
22
+    id 'idea'
23
+    id 'osgi'
24
+}
25
+
26
+group = 'com.dmdirc'
27
+
28
+idea {
29
+    module {
30
+         sourceDirs += file('src/main/generated')
31
+         testSourceDirs += file('src/test/generated_tests')
32
+         generatedSourceDirs = [file('src/main/generated'), file('src/test/generated_tests')]
33
+    }
34
+}
35
+
36
+configurations.all {
37
+    resolutionStrategy.cacheDynamicVersionsFor 2, 'minutes'
38
+    resolutionStrategy.cacheChangingModulesFor 2, 'minutes'
39
+}
40
+
41
+dependencies {
42
+    compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
43
+    compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.21'
44
+
45
+    testCompile group: 'junit', name: 'junit', version: '4.12'
46
+    testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
47
+}
48
+
49
+sourceCompatibility = 1.8
50
+targetCompatibility = 1.8
51
+
52
+repositories {
53
+    mavenCentral()
54
+}
55
+

api/src/main/java/com/dmdirc/config/BasicInvocation.java → bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/BasicInvocation.java Näytä tiedosto

@@ -1,26 +1,21 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23
-package com.dmdirc.config;
18
+package com.dmdirc.config.binding;
24 19
 
25 20
 import java.lang.reflect.Field;
26 21
 import java.lang.reflect.Method;

api/src/main/java/com/dmdirc/config/ConfigBinder.java → bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/ConfigBinder.java Näytä tiedosto

@@ -1,26 +1,21 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23
-package com.dmdirc.config;
18
+package com.dmdirc.config.binding;
24 19
 
25 20
 import javax.annotation.Nonnull;
26 21
 

api/src/main/java/com/dmdirc/config/ConfigBinding.java → bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/ConfigBinding.java Näytä tiedosto

@@ -1,26 +1,21 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23
-package com.dmdirc.config;
18
+package com.dmdirc.config.binding;
24 19
 
25 20
 import java.lang.annotation.ElementType;
26 21
 import java.lang.annotation.Retention;

api/src/main/java/com/dmdirc/config/Invocation.java → bundles/com.dmdirc.config.binding/src/main/java/com/dmdirc/config/binding/Invocation.java Näytä tiedosto

@@ -1,26 +1,21 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23
-package com.dmdirc.config;
18
+package com.dmdirc.config.binding;
24 19
 
25 20
 import java.lang.reflect.AccessibleObject;
26 21
 import java.lang.reflect.Field;
@@ -38,7 +33,7 @@ public abstract class Invocation {
38 33
      * @param instance Instance to call the element on
39 34
      * @param value    Value to be passed to the element
40 35
      */
41
-    protected void invoke(final AccessibleObject element, final Object instance, final Object value) {
36
+    public void invoke(final AccessibleObject element, final Object instance, final Object value) {
42 37
         if (element instanceof Field) {
43 38
             invoke((Field) element, instance, value);
44 39
         } else if (element instanceof Method) {

+ 55
- 0
bundles/com.dmdirc.events.eventbus/build.gradle Näytä tiedosto

@@ -0,0 +1,55 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
18
+plugins {
19
+    id 'java'
20
+    id 'findbugs'
21
+    id 'pmd'
22
+    id 'idea'
23
+    id 'osgi'
24
+}
25
+
26
+group = 'com.dmdirc'
27
+
28
+idea {
29
+    module {
30
+         sourceDirs += file('src/main/generated')
31
+         testSourceDirs += file('src/test/generated_tests')
32
+         generatedSourceDirs = [file('src/main/generated'), file('src/test/generated_tests')]
33
+    }
34
+}
35
+
36
+configurations.all {
37
+    resolutionStrategy.cacheDynamicVersionsFor 2, 'minutes'
38
+    resolutionStrategy.cacheChangingModulesFor 2, 'minutes'
39
+}
40
+
41
+dependencies {
42
+    compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.21'
43
+    compile group: 'net.engio', name: 'mbassador', version: '1.3.0'
44
+
45
+    testCompile group: 'junit', name: 'junit', version: '4.12'
46
+    testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
47
+}
48
+
49
+sourceCompatibility = 1.8
50
+targetCompatibility = 1.8
51
+
52
+repositories {
53
+    mavenCentral()
54
+}
55
+

+ 60
- 0
bundles/com.dmdirc.events.eventbus/src/main/java/com/dmdirc/events/eventbus/BaseEvent.java Näytä tiedosto

@@ -0,0 +1,60 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
18
+package com.dmdirc.events.eventbus;
19
+
20
+import java.time.LocalDateTime;
21
+
22
+/**
23
+ * Base class for all events processed by an {@link EventBus}.
24
+ */
25
+public abstract class BaseEvent {
26
+
27
+    /**
28
+     * The time the event was triggered at.
29
+     */
30
+    private final LocalDateTime timestamp;
31
+
32
+    /**
33
+     * Creates a new event with the specified timestamp.
34
+     *
35
+     * @param timestamp The stamp the event occurred at.
36
+     */
37
+    protected BaseEvent(final LocalDateTime timestamp) {
38
+        this.timestamp = timestamp;
39
+    }
40
+
41
+    /**
42
+     * Creates a new event with the current system timestamp.
43
+     */
44
+    protected BaseEvent() {
45
+        this.timestamp = LocalDateTime.now();
46
+    }
47
+
48
+    /**
49
+     * Gets the timestamp at which the event occurred.
50
+     *
51
+     * <p>This may be prior to the creation time of the event, or of the entire application, if the event is a
52
+     * historical one (e.g. after connecting to a server that replays missed messages).
53
+     *
54
+     * @return The time at which the event occurred.
55
+     */
56
+    public LocalDateTime getTimestamp() {
57
+        return timestamp;
58
+    }
59
+
60
+}

api/src/main/java/com/dmdirc/interfaces/EventBus.java → bundles/com.dmdirc.events.eventbus/src/main/java/com/dmdirc/events/eventbus/EventBus.java Näytä tiedosto

@@ -1,28 +1,21 @@
1 1
 /*
2
- * Copyright (c) 2006-2016 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23
-package com.dmdirc.interfaces;
24
-
25
-import com.dmdirc.events.DMDircEvent;
18
+package com.dmdirc.events.eventbus;
26 19
 
27 20
 /**
28 21
  * An event bus offers facilities for publishing events to decoupled handlers.
@@ -49,12 +42,12 @@ public interface EventBus {
49 42
      * the given message type, provided they are not configured to reject valid subtype. The call returns when all
50 43
      * matching handlers of all registered listeners have been notified (invoked) of the message.
51 44
      */
52
-    void publish(DMDircEvent message);
45
+    void publish(BaseEvent message);
53 46
 
54 47
     /**
55 48
      * Asynchronously publish a message to all registered listeners. This includes listeners defined for super types of
56 49
      * the given message type, provided they are not configured to reject valid subtype. The call returns immediately.
57 50
      */
58
-    void publishAsync(DMDircEvent message);
51
+    void publishAsync(BaseEvent message);
59 52
 
60 53
 }

+ 63
- 0
bundles/com.dmdirc.events.eventbus/src/main/java/com/dmdirc/events/eventbus/MBassadorEventBus.java Näytä tiedosto

@@ -0,0 +1,63 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
18
+package com.dmdirc.events.eventbus;
19
+
20
+import net.engio.mbassy.bus.MBassador;
21
+import net.engio.mbassy.bus.config.BusConfiguration;
22
+import net.engio.mbassy.bus.config.Feature;
23
+import org.slf4j.Logger;
24
+import org.slf4j.LoggerFactory;
25
+
26
+/**
27
+ * Concrete event bus backed by {@link MBassador}.
28
+ */
29
+public class MBassadorEventBus implements EventBus {
30
+
31
+    private static final Logger LOG = LoggerFactory.getLogger(MBassadorEventBus.class);
32
+
33
+    private final MBassador<BaseEvent> bus;
34
+
35
+    public MBassadorEventBus() {
36
+        bus = new MBassador<>(new BusConfiguration()
37
+                .addFeature(Feature.SyncPubSub.Default())
38
+                .addFeature(Feature.AsynchronousHandlerInvocation.Default(1, 1))
39
+                .addFeature(Feature.AsynchronousMessageDispatch.Default().setNumberOfMessageDispatchers(1))
40
+                .addPublicationErrorHandler(e -> LOG.error("Unhandled exception while publishing event", e)));
41
+    }
42
+
43
+    @Override
44
+    public void subscribe(Object listener) {
45
+        bus.subscribe(listener);
46
+    }
47
+
48
+    @Override
49
+    public void unsubscribe(Object listener) {
50
+        bus.unsubscribe(listener);
51
+    }
52
+
53
+    @Override
54
+    public void publish(BaseEvent message) {
55
+        bus.publish(message);
56
+    }
57
+
58
+    @Override
59
+    public void publishAsync(BaseEvent message) {
60
+        bus.publishAsync(message);
61
+    }
62
+
63
+}

+ 56
- 0
bundles/com.dmdirc.util.io.yaml/build.gradle Näytä tiedosto

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
18
+plugins {
19
+    id 'java'
20
+    id 'findbugs'
21
+    id 'pmd'
22
+    id 'idea'
23
+    id 'osgi'
24
+}
25
+
26
+group = 'com.dmdirc'
27
+
28
+idea {
29
+    module {
30
+         sourceDirs += file('src/main/generated')
31
+         testSourceDirs += file('src/test/generated_tests')
32
+         generatedSourceDirs = [file('src/main/generated'), file('src/test/generated_tests')]
33
+    }
34
+}
35
+
36
+configurations.all {
37
+    resolutionStrategy.cacheDynamicVersionsFor 2, 'minutes'
38
+    resolutionStrategy.cacheChangingModulesFor 2, 'minutes'
39
+}
40
+
41
+dependencies {
42
+    compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
43
+    compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.21'
44
+    compile group: 'com.esotericsoftware.yamlbeans', name: 'yamlbeans', version: '1.09'
45
+
46
+    testCompile group: 'junit', name: 'junit', version: '4.12'
47
+    testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
48
+}
49
+
50
+sourceCompatibility = 1.8
51
+targetCompatibility = 1.8
52
+
53
+repositories {
54
+    mavenCentral()
55
+}
56
+

src/main/java/com/dmdirc/util/BaseYamlStore.java → bundles/com.dmdirc.util.io.yaml/src/main/java/com/dmdirc/util/io/yaml/BaseYamlStore.java Näytä tiedosto

@@ -1,27 +1,24 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23
-package com.dmdirc.util;
18
+package com.dmdirc.util.io.yaml;
24 19
 
20
+import com.esotericsoftware.yamlbeans.YamlReader;
21
+import com.esotericsoftware.yamlbeans.YamlWriter;
25 22
 import java.io.IOException;
26 23
 import java.io.InputStream;
27 24
 import java.io.InputStreamReader;
@@ -33,14 +30,10 @@ import java.util.ArrayList;
33 30
 import java.util.Collection;
34 31
 import java.util.List;
35 32
 import java.util.Optional;
36
-
37 33
 import org.slf4j.Logger;
38 34
 import org.slf4j.LoggerFactory;
39 35
 
40
-import com.esotericsoftware.yamlbeans.YamlReader;
41
-import com.esotericsoftware.yamlbeans.YamlWriter;
42
-
43
-import static com.dmdirc.util.YamlReaderUtils.asList;
36
+import static com.dmdirc.util.io.yaml.YamlReaderUtils.asList;
44 37
 import static java.util.stream.Collectors.toList;
45 38
 
46 39
 /**
@@ -48,17 +41,20 @@ import static java.util.stream.Collectors.toList;
48 41
  */
49 42
 public abstract class BaseYamlStore<T> {
50 43
 
51
-    /** The charset to use when reading and writing files. */
44
+    /**
45
+     * The charset to use when reading and writing files.
46
+     */
52 47
     private static final String CHARSET = "UTF-8";
53 48
 
54
-    /** Logger to use. */
49
+    /**
50
+     * Logger to use.
51
+     */
55 52
     private static final Logger LOG = LoggerFactory.getLogger(BaseYamlStore.class);
56 53
 
57 54
     /**
58 55
      * Reads a list of items from the YAML file at the specified path.
59
-     *
60
-     * <p>Each item is converted from an object into some form of model by invoking the
61
-     * {@link #convertFromYaml} method.
56
+     * <p>
57
+     * Each item is converted from an object into some form of model by invoking the {@link #convertFromYaml} method.
62 58
      *
63 59
      * @param path The path of the file to read.
64 60
      * @return A list of successfully converted model objects.
@@ -67,7 +63,7 @@ public abstract class BaseYamlStore<T> {
67 63
         final List<T> results = new ArrayList<>();
68 64
         if (Files.exists(path)) {
69 65
             try (final InputStream stream = Files.newInputStream(path);
70
-                    final InputStreamReader reader = new InputStreamReader(stream, CHARSET)) {
66
+                 final InputStreamReader reader = new InputStreamReader(stream, CHARSET)) {
71 67
                 final YamlReader yamlReader = new YamlReader(reader);
72 68
                 results.addAll(asList(yamlReader.read(), this::convertFromYaml));
73 69
                 yamlReader.close();
@@ -80,21 +76,20 @@ public abstract class BaseYamlStore<T> {
80 76
 
81 77
     /**
82 78
      * Writes a collection of items to a YAML file at the specified path.
83
-     *
84
-     * <p>Each item is converted into a "plain" object by invoking the {@link #convertToYaml}
85
-     * method.
79
+     * <p>
80
+     * Each item is converted into a "plain" object by invoking the {@link #convertToYaml} method.
86 81
      *
87 82
      * @param path The path of the file to write.
88 83
      * @param items A collection of items to write.
89 84
      */
90 85
     protected void write(final Path path, final Collection<T> items) {
91 86
         try (final OutputStream stream = Files.newOutputStream(path);
92
-                final OutputStreamWriter writer = new OutputStreamWriter(stream, CHARSET)) {
87
+             final OutputStreamWriter writer = new OutputStreamWriter(stream, CHARSET)) {
93 88
             final YamlWriter yamlWriter = new YamlWriter(writer);
94 89
             yamlWriter.write(items.parallelStream().map(this::convertToYaml).collect(toList()));
95 90
             yamlWriter.close();
96 91
         } catch (IOException ex) {
97
-            LOG.error(LogUtils.USER_ERROR, "Unable to write to {}", path, ex);
92
+            LOG.warn("Unable to write to {}", path, ex);
98 93
         }
99 94
     }
100 95
 

src/main/java/com/dmdirc/util/YamlReaderUtils.java → bundles/com.dmdirc.util.io.yaml/src/main/java/com/dmdirc/util/io/yaml/YamlReaderUtils.java Näytä tiedosto

@@ -1,38 +1,29 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23
-package com.dmdirc.util;
24
-
18
+package com.dmdirc.util.io.yaml;
25 19
 
26 20
 import java.util.List;
27 21
 import java.util.Map;
28 22
 import java.util.Optional;
29 23
 import java.util.function.Function;
30 24
 import java.util.stream.Collectors;
31
-
32 25
 import javax.annotation.Nullable;
33 26
 
34
-import static com.google.common.base.Preconditions.checkNotNull;
35
-
36 27
 /**
37 28
  * Provides utility methods for classes that read from YAML files.
38 29
  */
@@ -48,7 +39,6 @@ public final class YamlReaderUtils {
48 39
      * suppression to be reduced just to the single line.
49 40
      *
50 41
      * @param map The wildcard map to be cast.
51
-     *
52 42
      * @return A usable object-to-object map.
53 43
      */
54 44
     @SuppressWarnings("unchecked")
@@ -62,7 +52,6 @@ public final class YamlReaderUtils {
62 52
      * suppression to be reduced just to the single line.
63 53
      *
64 54
      * @param list The wildcard list to be cast.
65
-     *
66 55
      * @return A usable object list.
67 56
      */
68 57
     @SuppressWarnings("unchecked")
@@ -74,55 +63,47 @@ public final class YamlReaderUtils {
74 63
      * Checks that the specified object is a map, and casts it.
75 64
      *
76 65
      * @param object The object to be cast.
77
-     *
78 66
      * @return The given object cast as a map.
79
-     *
80 67
      * @throws IllegalArgumentException If the specified object is not a map.
81 68
      */
82
-    public static Map<Object, Object> asMap(@Nullable final Object object)
83
-            throws IllegalArgumentException {
69
+    public static Map<Object, Object> asMap(@Nullable final Object object) throws IllegalArgumentException {
84 70
         if (object instanceof Map) {
85 71
             return uncheckedCast((Map<?, ?>) object);
86 72
         }
87 73
 
88
-        throw new IllegalArgumentException("Unexpected element. Found "
89
-                + simpleName(object) + ", expected Map");
74
+        throw new IllegalArgumentException("Unexpected element. Found " + simpleName(object) + ", expected Map");
90 75
     }
91 76
 
92 77
     /**
93 78
      * Checks that the specified object is a list, and casts it.
94 79
      *
95 80
      * @param object The object to be cast.
96
-     *
97 81
      * @return The given object cast as a list.
98
-     *
99 82
      * @throws IllegalArgumentException If the specified object is not a list.
100 83
      */
101
-    public static List<Object> asList(@Nullable final Object object)
102
-            throws IllegalArgumentException {
84
+    public static List<Object> asList(@Nullable final Object object) throws IllegalArgumentException {
103 85
         if (object instanceof List) {
104 86
             return uncheckedCast((List<?>) object);
105 87
         }
106 88
 
107
-        throw new IllegalArgumentException("Unexpected element. Found "
108
-                + simpleName(object) + ", expected List");
89
+        throw new IllegalArgumentException("Unexpected element. Found " + simpleName(object) + ", expected List");
109 90
     }
110 91
 
111 92
     /**
112 93
      * Checks that the specified object is a list, and casts it.
113 94
      *
114 95
      * @param object The object to be cast.
115
-     * @param convertor The function to use to convert each list member to the desired type.
116
-     *
96
+     * @param converter The function to use to convert each list member to the desired type.
117 97
      * @return The given object cast as a list.
118
-     *
119 98
      * @throws IllegalArgumentException If the specified object is not a list.
120 99
      */
121
-    public static <T> List<T> asList(@Nullable final Object object,
122
-            final Function<Object, Optional<T>> convertor) throws IllegalArgumentException {
100
+    public static <T> List<T> asList(@Nullable final Object object, final Function<Object, Optional<T>> converter)
101
+            throws IllegalArgumentException {
123 102
         return asList(object).parallelStream()
124
-                .map(convertor).filter(Optional::isPresent)
125
-                .map(Optional::get).collect(Collectors.toList());
103
+                .map(converter)
104
+                .filter(Optional::isPresent)
105
+                .map(Optional::get)
106
+                .collect(Collectors.toList());
126 107
     }
127 108
 
128 109
     /**
@@ -130,16 +111,11 @@ public final class YamlReaderUtils {
130 111
      *
131 112
      * @param map The map to retrieve the entry from.
132 113
      * @param key The key of the entry to retrieve.
133
-     *
134 114
      * @return The string representation of the value of the key.
135
-     *
136 115
      * @throws IllegalArgumentException If the specified key is not present, or is empty.
137 116
      */
138 117
     public static String requiredString(final Map<Object, Object> map, final String key)
139 118
             throws IllegalArgumentException {
140
-        checkNotNull(map);
141
-        checkNotNull(key);
142
-
143 119
         if (!map.containsKey(key)) {
144 120
             throw new IllegalArgumentException("Required key not present: " + key);
145 121
         }
@@ -157,14 +133,10 @@ public final class YamlReaderUtils {
157 133
      *
158 134
      * @param map The map to retrieve the entry from.
159 135
      * @param key The key of the entry to retrieve.
160
-     *
161 136
      * @return The string value of the entry with the given key, or {@code null} if not present.
162 137
      */
163 138
     @Nullable
164 139
     public static String optionalString(final Map<Object, Object> map, final String key) {
165
-        checkNotNull(map);
166
-        checkNotNull(key);
167
-
168 140
         final Object value = map.get(key);
169 141
         return value == null ? null : value.toString();
170 142
     }
@@ -173,7 +145,6 @@ public final class YamlReaderUtils {
173 145
      * Gets the simple name of the given object's class.
174 146
      *
175 147
      * @param object The object to get the class name of
176
-     *
177 148
      * @return The simple class name of the object, or the string {@code "null"}.
178 149
      */
179 150
     private static String simpleName(@Nullable final Object object) {

+ 5
- 0
gradle/jar.gradle Näytä tiedosto

@@ -62,6 +62,11 @@ jar {
62 62
 
63 63
     manifest {
64 64
         attributes 'Main-Class': 'com.dmdirc.Main'
65
+        attributes 'Bundle-Vendor': 'DMDirc Developers'
66
+        attributes 'Bundle-Copyright': 'Copyright (c) DMDirc Developers 2006-2017'
67
+        attributes 'Bundle-License': 'https://opensource.org/licenses/MIT'
68
+        attributes 'Bundle-Activator': 'com.dmdirc.ClientActivator'
69
+        attributes 'Import-Package': 'org.osgi.framework,javax.swing,javax.swing.text,javax.swing.text.html'
65 70
     }
66 71
 
67 72
     doLast {

+ 6
- 0
settings.gradle Näytä tiedosto

@@ -1 +1,7 @@
1 1
 include 'api'
2
+
3
+// Include all bundles
4
+new File(rootDir, 'bundles').eachDir() { File dir ->
5
+  include 'bundles:' + dir.name
6
+}
7
+

+ 11
- 16
src/main/java/com/dmdirc/Channel.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/ChannelClient.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 12
- 17
src/main/java/com/dmdirc/ChannelEventHandler.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -47,7 +42,7 @@ import com.dmdirc.events.ChannelTopicUnsetEvent;
47 42
 import com.dmdirc.events.ChannelUserAwayEvent;
48 43
 import com.dmdirc.events.ChannelUserBackEvent;
49 44
 import com.dmdirc.interfaces.Connection;
50
-import com.dmdirc.interfaces.EventBus;
45
+import com.dmdirc.events.eventbus.EventBus;
51 46
 import com.dmdirc.parser.common.AwayState;
52 47
 import com.dmdirc.parser.events.ChannelCTCPEvent;
53 48
 import com.dmdirc.parser.events.ChannelListModeEvent;

+ 12
- 17
src/main/java/com/dmdirc/ChannelFactory.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -27,7 +22,7 @@ import com.dmdirc.commandparser.parsers.ChannelCommandParser;
27 22
 import com.dmdirc.events.ChannelOpenedEvent;
28 23
 import com.dmdirc.interfaces.CommandController;
29 24
 import com.dmdirc.interfaces.Connection;
30
-import com.dmdirc.interfaces.EventBus;
25
+import com.dmdirc.events.eventbus.EventBus;
31 26
 import com.dmdirc.interfaces.config.ConfigProviderMigrator;
32 27
 import com.dmdirc.parser.interfaces.ChannelInfo;
33 28
 import com.dmdirc.ui.WindowManager;

+ 11
- 16
src/main/java/com/dmdirc/ChannelMap.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/Client.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 42
- 0
src/main/java/com/dmdirc/ClientActivator.java Näytä tiedosto

@@ -0,0 +1,42 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
18
+package com.dmdirc;
19
+
20
+import com.dmdirc.util.io.FileUtils;
21
+import org.osgi.framework.BundleActivator;
22
+import org.osgi.framework.BundleContext;
23
+
24
+/**
25
+ * OSGi bundle activator for the client. Eventually this shouldn't need to exist, as everything will be split into
26
+ * its own bundle.
27
+ */
28
+public class ClientActivator implements BundleActivator {
29
+
30
+    @Override
31
+    public void start(final BundleContext context) throws Exception {
32
+        System.out.println(context.getBundle().getLocation());
33
+        System.out.println(FileUtils.getApplicationPath(ClientActivator.class));
34
+        Main.main("-d", "etc/profile");
35
+    }
36
+
37
+    @Override
38
+    public void stop(final BundleContext context) throws Exception {
39
+        // Uh... *SHRUG*
40
+    }
41
+
42
+}

+ 14
- 18
src/main/java/com/dmdirc/ClientModule.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -33,10 +28,11 @@ import com.dmdirc.commandparser.commands.CommandModule;
33 28
 import com.dmdirc.config.ConfigModule;
34 29
 import com.dmdirc.config.GlobalConfig;
35 30
 import com.dmdirc.config.profiles.ProfilesModule;
31
+import com.dmdirc.events.eventbus.MBassadorEventBus;
36 32
 import com.dmdirc.interfaces.CommandController;
37 33
 import com.dmdirc.interfaces.ConnectionFactory;
38 34
 import com.dmdirc.interfaces.ConnectionManager;
39
-import com.dmdirc.interfaces.EventBus;
35
+import com.dmdirc.events.eventbus.EventBus;
40 36
 import com.dmdirc.interfaces.LifecycleController;
41 37
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
42 38
 import com.dmdirc.interfaces.config.IdentityController;
@@ -93,7 +89,7 @@ public class ClientModule {
93 89
     @Provides
94 90
     @Singleton
95 91
     public EventBus getMBassador() {
96
-        return new DMDircMBassador();
92
+        return new MBassadorEventBus();
97 93
     }
98 94
 
99 95
     @Provides

+ 12
- 17
src/main/java/com/dmdirc/CustomWindow.java Näytä tiedosto

@@ -1,29 +1,24 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
24 19
 
25 20
 import com.dmdirc.interfaces.Connection;
26
-import com.dmdirc.interfaces.EventBus;
21
+import com.dmdirc.events.eventbus.EventBus;
27 22
 import com.dmdirc.interfaces.WindowModel;
28 23
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
29 24
 import com.dmdirc.ui.core.components.WindowComponent;

+ 0
- 82
src/main/java/com/dmdirc/DMDircMBassador.java Näytä tiedosto

@@ -1,82 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-package com.dmdirc;
24
-
25
-import com.dmdirc.events.DMDircEvent;
26
-import com.dmdirc.interfaces.EventBus;
27
-
28
-import net.engio.mbassy.bus.MBassador;
29
-import net.engio.mbassy.bus.config.BusConfiguration;
30
-import net.engio.mbassy.bus.config.Feature;
31
-import net.engio.mbassy.bus.config.IBusConfiguration;
32
-
33
-import org.slf4j.Logger;
34
-import org.slf4j.LoggerFactory;
35
-
36
-import static com.dmdirc.util.LogUtils.APP_ERROR;
37
-
38
-/**
39
- * Generified MBassador.
40
- */
41
-public class DMDircMBassador implements EventBus {
42
-
43
-    private static final Logger LOG = LoggerFactory.getLogger(DMDircMBassador.class);
44
-
45
-    private final MBassador<DMDircEvent> bus;
46
-
47
-    public DMDircMBassador() {
48
-        this(new BusConfiguration()
49
-                .addFeature(Feature.SyncPubSub.Default())
50
-                .addFeature(Feature.AsynchronousHandlerInvocation.Default(1, 1))
51
-                .addFeature(
52
-                        Feature.AsynchronousMessageDispatch.Default()
53
-                                .setNumberOfMessageDispatchers(1)));
54
-    }
55
-
56
-    @SuppressWarnings("TypeMayBeWeakened")
57
-    public DMDircMBassador(final IBusConfiguration configuration) {
58
-        bus = new MBassador<>(configuration.addPublicationErrorHandler(
59
-                e -> LOG.error(APP_ERROR, e.getMessage(), e.getCause())));
60
-    }
61
-
62
-    @Override
63
-    public void subscribe(Object listener) {
64
-        bus.subscribe(listener);
65
-    }
66
-
67
-    @Override
68
-    public void unsubscribe(Object listener) {
69
-        bus.unsubscribe(listener);
70
-    }
71
-
72
-    @Override
73
-    public void publish(DMDircEvent message) {
74
-        bus.publish(message);
75
-    }
76
-
77
-    @Override
78
-    public void publishAsync(DMDircEvent message) {
79
-        bus.publishAsync(message);
80
-    }
81
-
82
-}

+ 11
- 16
src/main/java/com/dmdirc/DMDircSecurityPolicy.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/DefaultInputModel.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/EventHandler.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 12
- 17
src/main/java/com/dmdirc/FrameContainer.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -29,7 +24,7 @@ import com.dmdirc.events.FrameIconChangedEvent;
29 24
 import com.dmdirc.events.FrameNameChangedEvent;
30 25
 import com.dmdirc.events.FrameTitleChangedEvent;
31 26
 import com.dmdirc.interfaces.Connection;
32
-import com.dmdirc.interfaces.EventBus;
27
+import com.dmdirc.events.eventbus.EventBus;
33 28
 import com.dmdirc.interfaces.InputModel;
34 29
 import com.dmdirc.interfaces.WindowModel;
35 30
 import com.dmdirc.interfaces.config.AggregateConfigProvider;

+ 12
- 17
src/main/java/com/dmdirc/GlobalWindow.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -27,7 +22,7 @@ import com.dmdirc.commandparser.parsers.GlobalCommandParser;
27 22
 import com.dmdirc.config.GlobalConfig;
28 23
 import com.dmdirc.events.CommandErrorEvent;
29 24
 import com.dmdirc.interfaces.Connection;
30
-import com.dmdirc.interfaces.EventBus;
25
+import com.dmdirc.events.eventbus.EventBus;
31 26
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
32 27
 import com.dmdirc.interfaces.config.ConfigChangeListener;
33 28
 import com.dmdirc.ui.WindowManager;

+ 11
- 16
src/main/java/com/dmdirc/GroupChatManagerImpl.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/GroupChatManagerImplFactory.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/GroupChatUserFactory.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/GroupChatUserManager.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/InviteManagerImpl.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/LauncherUtils.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 12
- 17
src/main/java/com/dmdirc/Main.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -30,7 +25,7 @@ import com.dmdirc.events.FeedbackNagEvent;
30 25
 import com.dmdirc.events.FirstRunEvent;
31 26
 import com.dmdirc.interfaces.CommandController.CommandDetails;
32 27
 import com.dmdirc.interfaces.ConnectionManager;
33
-import com.dmdirc.interfaces.EventBus;
28
+import com.dmdirc.events.eventbus.EventBus;
34 29
 import com.dmdirc.interfaces.Migrator;
35 30
 import com.dmdirc.interfaces.SystemLifecycleComponent;
36 31
 import com.dmdirc.interfaces.config.IdentityController;

+ 11
- 16
src/main/java/com/dmdirc/MessageEncoder.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 17
- 0
src/main/java/com/dmdirc/MessageEncoderFactory.java Näytä tiedosto

@@ -1,3 +1,20 @@
1
+/*
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ *
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+ */
17
+
1 18
 package com.dmdirc;
2 19
 
3 20
 import com.dmdirc.interfaces.Connection;

+ 11
- 16
src/main/java/com/dmdirc/MissingModeAliasException.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/ParserFactory.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/Precondition.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/Query.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/QueryFactory.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/Server.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 12
- 17
src/main/java/com/dmdirc/ServerEventHandler.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -52,7 +47,7 @@ import com.dmdirc.events.ServerWallusersEvent;
52 47
 import com.dmdirc.events.StatusBarMessageEvent;
53 48
 import com.dmdirc.events.UserInfoResponseEvent;
54 49
 import com.dmdirc.interfaces.Connection;
55
-import com.dmdirc.interfaces.EventBus;
50
+import com.dmdirc.events.eventbus.EventBus;
56 51
 import com.dmdirc.parser.common.AwayState;
57 52
 import com.dmdirc.parser.events.AuthNoticeEvent;
58 53
 import com.dmdirc.parser.events.AwayStateEvent;

+ 12
- 17
src/main/java/com/dmdirc/ServerFactoryImpl.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -27,7 +22,7 @@ import com.dmdirc.commandparser.parsers.ServerCommandParser;
27 22
 import com.dmdirc.config.UserConfig;
28 23
 import com.dmdirc.config.profiles.Profile;
29 24
 import com.dmdirc.interfaces.CommandController;
30
-import com.dmdirc.interfaces.EventBus;
25
+import com.dmdirc.events.eventbus.EventBus;
31 26
 import com.dmdirc.interfaces.config.ConfigProvider;
32 27
 import com.dmdirc.interfaces.config.ConfigProviderMigrator;
33 28
 import com.dmdirc.interfaces.config.IdentityFactory;

+ 12
- 17
src/main/java/com/dmdirc/ServerManager.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -27,7 +22,7 @@ import com.dmdirc.config.profiles.ProfileManager;
27 22
 import com.dmdirc.events.FrameClosingEvent;
28 23
 import com.dmdirc.interfaces.Connection;
29 24
 import com.dmdirc.interfaces.ConnectionManager;
30
-import com.dmdirc.interfaces.EventBus;
25
+import com.dmdirc.events.eventbus.EventBus;
31 26
 import com.dmdirc.interfaces.config.ConfigProviderMigrator;
32 27
 import com.dmdirc.interfaces.config.IdentityFactory;
33 28
 import com.dmdirc.parser.common.ChannelJoinRequest;

+ 11
- 16
src/main/java/com/dmdirc/ServerStatus.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 12
- 17
src/main/java/com/dmdirc/SystemLifecycleController.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;
@@ -25,7 +20,7 @@ package com.dmdirc;
25 20
 import com.dmdirc.config.GlobalConfig;
26 21
 import com.dmdirc.events.ClientClosedEvent;
27 22
 import com.dmdirc.interfaces.ConnectionManager;
28
-import com.dmdirc.interfaces.EventBus;
23
+import com.dmdirc.events.eventbus.EventBus;
29 24
 import com.dmdirc.interfaces.LifecycleController;
30 25
 import com.dmdirc.interfaces.SystemLifecycleComponent;
31 26
 import com.dmdirc.interfaces.config.AggregateConfigProvider;

+ 11
- 16
src/main/java/com/dmdirc/UserFactory.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/UserManager.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/WindowModelComparator.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc;

+ 11
- 16
src/main/java/com/dmdirc/commandline/BaseDirectoryLocator.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandline;

+ 11
- 16
src/main/java/com/dmdirc/commandline/CommandLineOptionsModule.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandline;

+ 11
- 16
src/main/java/com/dmdirc/commandline/CommandLineParser.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandline;

+ 11
- 16
src/main/java/com/dmdirc/commandline/RemoteInterface.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandline;

+ 11
- 16
src/main/java/com/dmdirc/commandline/RemoteServer.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandline;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/BaseCommandInfo.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser;

+ 12
- 17
src/main/java/com/dmdirc/commandparser/CommandManager.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser;
@@ -25,7 +20,7 @@ package com.dmdirc.commandparser;
25 20
 import com.dmdirc.GlobalWindow;
26 21
 import com.dmdirc.commandparser.commands.Command;
27 22
 import com.dmdirc.commandparser.parsers.CommandParser;
28
-import com.dmdirc.config.ConfigBinding;
23
+import com.dmdirc.config.binding.ConfigBinding;
29 24
 import com.dmdirc.interfaces.CommandController;
30 25
 import com.dmdirc.interfaces.Connection;
31 26
 import com.dmdirc.interfaces.ConnectionManager;

+ 12
- 17
src/main/java/com/dmdirc/commandparser/PopupManager.java Näytä tiedosto

@@ -1,30 +1,25 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser;
24 19
 
25 20
 import com.dmdirc.events.ClientPopupGeneratedEvent;
26 21
 import com.dmdirc.interfaces.CommandController;
27
-import com.dmdirc.interfaces.EventBus;
22
+import com.dmdirc.events.eventbus.EventBus;
28 23
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
29 24
 
30 25
 import javax.inject.Inject;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/PopupMenu.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/PopupMenuItem.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/PopupType.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/ActionAliasMigrator.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/AliasCommandHandler.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/AliasFactory.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/AliasLifecycleManager.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/AliasLoader.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/AliasManager.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/AliasesModule.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 11
- 16
src/main/java/com/dmdirc/commandparser/aliases/DefaultAliasInstaller.java Näytä tiedosto

@@ -1,23 +1,18 @@
1 1
 /*
2
- * Copyright (c) 2006-2015 DMDirc Developers
2
+ * Copyright (c) 2006-2017 DMDirc Developers
3 3
  *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 8
  *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
9
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10
+ * Software.
13 11
  *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
+ * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 16
  */
22 17
 
23 18
 package com.dmdirc.commandparser.aliases;

+ 0
- 0
src/main/java/com/dmdirc/commandparser/aliases/YamlAliasStore.java Näytä tiedosto


Some files were not shown because too many files changed in this diff

Loading…
Peruuta
Tallenna