KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > ITextDoubleClickStrategy


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  *******************************************************************************/

11 package org.eclipse.jface.text;
12
13
14 /**
15  * A text double click strategy defines the reaction of a text viewer to mouse
16  * double click events. The strategy must be installed on an
17  * {@link org.eclipse.jface.text.ITextViewer}.
18  * <p>
19  * Clients may implement this interface or use the standard implementation
20  * <code>DefaultTextDoubleClickStrategy</code>.</p>
21  *
22  * @see org.eclipse.jface.text.ITextViewer
23  * @see org.eclipse.swt.events.MouseListener#mouseDoubleClick(org.eclipse.swt.events.MouseEvent)
24  */

25 public interface ITextDoubleClickStrategy {
26
27     /**
28      * The mouse has been double clicked on the given text viewer.
29      *
30      * @param viewer the viewer into which has been double clicked
31      */

32     void doubleClicked(ITextViewer viewer);
33 }
34
Popular Tags