Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 11fbfa09e853360dc6468ca97092aade2fd6bd88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*******************************************************************************
 * Copyright (c) 2012 MEDEVIT, FHV 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
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Marco Descher <marco@descher.at> - initial API and implementation
 *******************************************************************************/
package org.eclipse.e4.ui.di;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Use this annotation to act on to the list of dynamically shown entries within
 * a DynamicMenuContributionItem. Usage in contribution class:
 * <p>
 * {@literal @}AboutToHide<br>
 * public void aboutToHide(List&lt;MMenuElement&gt; items) { }
 * 
 * @see org.eclipse.jface.action.IMenuListener2
 */
@Documented
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface AboutToHide {
	// intentionally left empty
}

Back to the top