diff options
Diffstat (limited to 'bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/di/AboutToShow.java')
-rw-r--r-- | bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/di/AboutToShow.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/di/AboutToShow.java b/bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/di/AboutToShow.java new file mode 100644 index 00000000000..b3a74115d05 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/di/AboutToShow.java @@ -0,0 +1,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 provide MMenuElements to the list of dynamically shown entries + * within a DynamicMenuContributionItem. Usage in contribution class: + * <p> + * {@literal @}AboutToShow<br> + * public void aboutToShow(List<MMenuElement> items) { } + * + * @see org.eclipse.jface.action.IMenuListener + */ +@Documented +@Target({ ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +public @interface AboutToShow { + // intentionally left empty +}
\ No newline at end of file |