1 /*******************************************************************************
2  * Copyright (c) 2016 vogella GmbH and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     Simon Scholz <simon.scholz@vogella.com> - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.e4.core.di.annotations;
15 
16 import static java.lang.annotation.ElementType.METHOD;
17 import static java.lang.annotation.RetentionPolicy.RUNTIME;
18 
19 import java.lang.annotation.Documented;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.Target;
22 
23 /**
24  * Use this annotation to tag methods that determine if MUIElements (e.g.,
25  * MMenu, MToolbar and it's items etc.) should be visible or not. The tagged
26  * method must return Boolean value.
27  * <p>
28  * This annotation must not be applied to more than one method per class. If
29  * several class methods are tagged with this annotation, only one of them will
30  * be called.
31  * </p>
32  *
33  * @since 1.6
34  */
35 @Documented
36 @Target(METHOD)
37 @Retention(RUNTIME)
38 public @interface Evaluate {
39     // intentionally left empty
40 }
41