Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010, 2013 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.e4.ui.di;
This annotation can be applied to arguments and fields that want to receive notifications on the specified event topic. Method containing such arguments will be called on the main thread.

Normally EventTopic annotations will be marked as optional. Those annotations establish a link rather then provide a value at the time of injection.

Example usage:

   public class Car {
     @void handle(@Optional 

"org/eclipse/e4/some/event/topic") Payload payload); ... }
public @interface UIEventTopic {
	String value() default ""// event id
New to GrepCode? Check out our FAQ X