1 | Object[] listeners = listenerList.getListenerList();↵ | | 1 | Object[] listeners = listenerList.getListenerList();↵
|
|
2 | // Process the listeners last to first, notifying↵ | | 2 | // Process the listeners last to first, notifying↵
|
3 | // those that are interested in this event↵ | | 3 | // those that are interested in this event↵
|
4 | for (int i = listeners.length - 2; i >= 0; i -= 2) {↵ | | 4 | for (int i = listeners.length - 2; i >= 0; i -= 2) {↵
|
5 | if (listeners[i] == ITagListener.class) {↵ | | 5 | if (listeners[i] == ITagListener.class) {↵
|
6 | ((ITagListener) listeners[i + 1]).tagChanged(e);↵ | | 6 | ((ITagListener) listeners[i + 1]).tagAdded(e);↵
|
7 | }↵ | | 7 | }↵
|
8 | }↵ | | 8 | }↵
|
9 | }↵ | | 9 | }↵
|
|
10 | /**↵ | | 10 | /**↵
|
11 | * @param id↵ | | 11 | * @param id↵
|
12 | */↵ | | 12 | */↵
|
13 | protected void fireTagAddedEvent(String id) {↵ | | 13 | protected void fireTagDeletedEvent(String id) {↵
|
14 | ITagEvent e = new TagEvent(this, id);↵ | | 14 | ITagEvent e = new TagEvent(this, id);↵
|
|
15 | // Guaranteed to return a non-null array↵ | | 15 | // Guaranteed to return a non-null array↵
|
16 | Object[] listeners = listenerList.getListenerList();↵ | | 16 | Object[] listeners = listenerList.getListenerList();↵
|
|
17 | // Process the listeners last to first, notifying↵ | | 17 | // Process the listeners last to first, notifying↵
|
18 | // those that are interested in this event↵ | | 18 | // those that are interested in this event↵
|
19 | for (int i = listeners.length - 2; i >= 0; i -= 2) {↵ | | 19 | for (int i = listeners.length - 2; i >= 0; i -= 2) {↵
|
20 | if (listeners[i] == ITagListener.class) {↵ | | 20 | if (listeners[i] == ITagListener.class) {↵
|
21 | ((ITagListener) listeners[i + 1]).tagAdded(e);↵ | | 21 | ((ITagListener) listeners[i + 1]).tagDeleted(e);↵
|
22 | }↵ | | 22 | }↵
|
23 | }↵ | | 23 | }↵
|
24 | } | | 24 | }
|