From b59b470e6e45f6798ee6228c4824362117ac0970 Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Sat, 27 Jun 2009 18:35:57 +0000 Subject: [281749] Consolidate API of IEvent sub interfaces https://bugs.eclipse.org/bugs/show_bug.cgi?id=281749 --- .../src/org/eclipse/net4j/buddies/chat/ICommentEvent.java | 7 +++++-- .../org/eclipse/net4j/buddies/internal/chat/CommentEvent.java | 10 +++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'plugins/org.eclipse.net4j.buddies.chat') diff --git a/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/chat/ICommentEvent.java b/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/chat/ICommentEvent.java index 04542d83b8..e1e15e7c8e 100644 --- a/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/chat/ICommentEvent.java +++ b/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/chat/ICommentEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Eike Stepper - initial API and implementation */ @@ -17,7 +17,10 @@ import org.eclipse.net4j.util.event.IEvent; */ public interface ICommentEvent extends IEvent { - public IChat getChat(); + /** + * @since 3.0 + */ + public IChat getSource(); public IComment getComment(); } diff --git a/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/internal/chat/CommentEvent.java b/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/internal/chat/CommentEvent.java index be2b7a5d74..943216d46d 100644 --- a/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/internal/chat/CommentEvent.java +++ b/plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse/net4j/buddies/internal/chat/CommentEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Eike Stepper - initial API and implementation */ @@ -30,9 +30,13 @@ public class CommentEvent extends Event implements ICommentEvent this.comment = comment; } - public IChat getChat() + /** + * @since 3.0 + */ + @Override + public IChat getSource() { - return (IChat)getSource(); + return (IChat)super.getSource(); } public IComment getComment() -- cgit v1.2.3