]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/events/MenuDetectListener.java
Work around SWT 4.13 - 4.18 Win32 DnD bug 567422
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / events / MenuDetectListener.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2016 IBM Corporation 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  *     IBM Corporation - initial API and implementation
13  *     Lars Vogel <Lars.Vogel@vogella.com> - Bug 502576
14  *******************************************************************************/
15 package org.eclipse.swt.events;
16
17
18 import org.eclipse.swt.internal.*;
19
20 /**
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
24  * detected.
25  * <p>
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.
32  * </p>
33  *
34  * @see MenuDetectEvent
35  *
36  * @since 3.3
37  */
38 @FunctionalInterface
39 public interface MenuDetectListener extends SWTEventListener {
40
41 /**
42  * Sent when the platform-dependent trigger for showing a menu item is detected.
43  *
44  * @param e an event containing information about the menu detect
45  */
46 void menuDetected (MenuDetectEvent e);
47 }