129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2005 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module dwtx.jface.text.ITextDoubleClickStrategy;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17
|
|
18 /**
|
|
19 * A text double click strategy defines the reaction of a text viewer to mouse
|
|
20 * double click events. The strategy must be installed on an
|
|
21 * {@link dwtx.jface.text.ITextViewer}.
|
|
22 * <p>
|
|
23 * Clients may implement this interface or use the standard implementation
|
|
24 * <code>DefaultTextDoubleClickStrategy</code>.</p>
|
|
25 *
|
|
26 * @see dwtx.jface.text.ITextViewer
|
|
27 * @see dwt.events.MouseListener#mouseDoubleClick(dwt.events.MouseEvent)
|
|
28 */
|
|
29 public interface ITextDoubleClickStrategy {
|
|
30
|
|
31 /**
|
|
32 * The mouse has been double clicked on the given text viewer.
|
|
33 *
|
|
34 * @param viewer the viewer into which has been double clicked
|
|
35 */
|
|
36 void doubleClicked(ITextViewer viewer);
|
|
37 }
|