diff options
author | Eike Stepper | 2009-06-27 18:35:57 +0000 |
---|---|---|
committer | Eike Stepper | 2009-06-27 18:35:57 +0000 |
commit | b59b470e6e45f6798ee6228c4824362117ac0970 (patch) | |
tree | 5e1c5f231e5eadaf811609e4fba4347ac7d9584a /plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse | |
parent | c91d567778f89131339f176678b2dfaad4af0f09 (diff) | |
download | cdo-b59b470e6e45f6798ee6228c4824362117ac0970.tar.gz cdo-b59b470e6e45f6798ee6228c4824362117ac0970.tar.xz cdo-b59b470e6e45f6798ee6228c4824362117ac0970.zip |
[281749] Consolidate API of IEvent sub interfaces
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281749
Diffstat (limited to 'plugins/org.eclipse.net4j.buddies.chat/src/org/eclipse')
2 files changed, 12 insertions, 5 deletions
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() |