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

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.hyperlink
Class URLHyperlinkDetector

java.lang.Object
  extended by 

org.eclipse.jface.text.hyperlink.AbstractHyperlinkDetector
      extended by 
org.eclipse.jface.text.hyperlink.URLHyperlinkDetector
All Implemented Interfaces:
IHyperlinkDetector, IHyperlinkDetectorExtension

public class URLHyperlinkDetector
extends AbstractHyperlinkDetector

URL hyperlink detector.

Since:
3.1

Constructor Summary
URLHyperlinkDetector ()
          Creates a new URL hyperlink detector.
URLHyperlinkDetector ( ITextViewer textViewer)
          Deprecated. As of 3.2, replaced by URLHyperlinkDetector
 
Method Summary
  IHyperlink[] detectHyperlinks ( ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks)
          Tries to detect hyperlinks for the given region in the given text viewer and returns them.
 
Methods inherited from class org.eclipse.jface.text.hyperlink. AbstractHyperlinkDetector
dispose, getAdapter, setContext
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLHyperlinkDetector

public URLHyperlinkDetector()
Creates a new URL hyperlink detector.

Since:
3.2

URLHyperlinkDetector

public URLHyperlinkDetector(
ITextViewer textViewer)
Deprecated. As of 3.2, replaced by URLHyperlinkDetector

Creates a new URL hyperlink detector.

Parameters:
textViewer - the text viewer in which to detect the hyperlink
Method Detail

detectHyperlinks

public 
IHyperlink[] detectHyperlinks(
ITextViewer textViewer,
                                     
IRegion region,
                                     boolean canShowMultipleHyperlinks)
Description copied from interface: IHyperlinkDetector
Tries to detect hyperlinks for the given region in the given text viewer and returns them.

In most of the cases only one hyperlink should be returned.

Parameters:
textViewer - the text viewer on which the hover popup should be shown
region - the text range in the text viewer which is used to detect the hyperlinks
canShowMultipleHyperlinks - tells whether the caller is able to show multiple links to the user. If true IHyperlink.open() should directly open the link and not show any additional UI to select from a list. If false this method should only return one hyperlink which upon IHyperlink.open() may allow to select from a list.
Returns:
the hyperlinks or null if no hyperlink was detected

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