aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/gui/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/event')
-rw-r--r--src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java4
-rw-r--r--src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java b/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java
index 3063875..3cff100 100644
--- a/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java
+++ b/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java
@@ -17,8 +17,7 @@ import net.java.sip.communicator.service.gui.*;
public class PluginComponentEvent
extends EventObject
{
-
- private int eventID = -1;
+ private final int eventID;
/**
* Indicates that the PluginComponentEvent instance was triggered by
@@ -43,6 +42,7 @@ public class PluginComponentEvent
int eventID)
{
super(pluginComponent);
+
this.eventID = eventID;
}
diff --git a/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java b/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java
index fc4d2c4..515a9bd 100644
--- a/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java
+++ b/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java
@@ -7,13 +7,15 @@
package net.java.sip.communicator.impl.gui.event;
import java.util.*;
+
/**
* Listens for all events caused by adding or removing of a plugin component.
*
* @author Yana Stamcheva
*/
public interface PluginComponentListener
- extends EventListener {
+ extends EventListener
+{
/**
* Indicates that a plugin component has been successfully added
@@ -22,7 +24,7 @@ public interface PluginComponentListener
* plugin component
*/
public void pluginComponentAdded(PluginComponentEvent event);
-
+
/**
* Indicates that a plugin component has been successfully removed
* from the container.