Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text
Class DefaultTextDoubleClickStrategy


java.lang.Object
  extended by 
org.eclipse.jface.text.DefaultTextDoubleClickStrategy
All Implemented Interfaces:
ITextDoubleClickStrategy

public class DefaultTextDoubleClickStrategy
extends Object
implements ITextDoubleClickStrategy

Standard implementation of ITextDoubleClickStrategy.

Selects words using java.text.BreakIterator for the default locale.

See Also:
BreakIterator

Constructor Summary
DefaultTextDoubleClickStrategy ()
          Creates a new default text double click strategy.
 
Method Summary
 void doubleClicked ( ITextViewer text)
          The mouse has been double clicked on the given text viewer.
protected   IRegion findExtendedDoubleClickSelection ( IDocument document, int offset)
          Tries to find a suitable double click selection for the given offset.
protected   IRegion findWord ( IDocument document, int offset)
          Tries to find the word at the given offset.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTextDoubleClickStrategy

public DefaultTextDoubleClickStrategy()
Creates a new default text double click strategy.

Method Detail

doubleClicked

public void doubleClicked(
ITextViewer text)
Description copied from interface: ITextDoubleClickStrategy
The mouse has been double clicked on the given text viewer.

Specified by:
doubleClicked in interface ITextDoubleClickStrategy
Parameters:
text - the viewer into which has been double clicked

findExtendedDoubleClickSelection

protected 
IRegion findExtendedDoubleClickSelection(
IDocument document,
                                                   int offset)
Tries to find a suitable double click selection for the given offset.

Note: This method must return null if it simply selects the word at the given offset.

Parameters:
document - the document
offset - the offset
Returns:
the selection or null if none to indicate simple word selection
Since:
3.5

findWord

protected 
IRegion findWord(
IDocument document,
                           int offset)
Tries to find the word at the given offset.

Parameters:
document - the document
offset - the offset
Returns:
the word or null if none
Since:
3.5

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire