1 /*******************************************************************************
2 * Copyright (c) 2000, 2016 IBM Corporation and others.
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/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 * Lars Vogel <Lars.Vogel@vogella.com> - Bug 502576
14 *******************************************************************************/
15 package org.eclipse.swt.events;
18 import org.eclipse.swt.internal.*;
21 * Classes which implement this interface provide methods
22 * that deal with the events that are generated when the
23 * platform-specific trigger for showing a context menu is
26 * After creating an instance of a class that implements
27 * this interface it can be added to a control or TrayItem
28 * using the <code>addMenuDetectListener</code> method and
29 * removed using the <code>removeMenuDetectListener</code> method.
30 * When the context menu trigger occurs, the
31 * <code>menuDetected</code> method will be invoked.
34 * @see MenuDetectEvent
39 public interface MenuDetectListener extends SWTEventListener {
42 * Sent when the platform-dependent trigger for showing a menu item is detected.
44 * @param e an event containing information about the menu detect
46 void menuDetected (MenuDetectEvent e);