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 MultipleHyperlinkPresenter

java.lang.Object
  extended by 

org.eclipse.jface.text.hyperlink.DefaultHyperlinkPresenter
      extended by 
org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter
All Implemented Interfaces:
EventListener, IHyperlinkPresenter, IHyperlinkPresenterExtension, IDocumentListener, ITextInputListener, ITextPresentationListener, IPropertyChangeListener

public class MultipleHyperlinkPresenter
extends DefaultHyperlinkPresenter

A hyperlink presenter capable of showing multiple hyperlinks in a hover.

Since:
3.4

Field Summary
 
Fields inherited from class org.eclipse.jface.text.hyperlink. DefaultHyperlinkPresenter
HYPERLINK_COLOR, HYPERLINK_COLOR_SYSTEM_DEFAULT
 
Constructor Summary
MultipleHyperlinkPresenter ( IPreferenceStore store)
          Creates a new multiple hyperlink presenter which uses DefaultHyperlinkPresenter.HYPERLINK_COLOR to read the color from the given preference store.
MultipleHyperlinkPresenter ( RGB color)
          Creates a new multiple hyperlink presenter.
 
Method Summary
 boolean canHideHyperlinks ()
          Tells whether the currently shown hyperlinks can be hidden.
 boolean canShowMultipleHyperlinks ()
          Tells whether this presenter is able to handle more than one hyperlink.
 void hideHyperlinks ()
          Tells this hyperlink presenter to hide the hyperlinks requested to be shown by IHyperlinkPresenter.showHyperlinks(IHyperlink[]).
 void install ( ITextViewer viewer)
          Installs this hyperlink presenter on the given text viewer.
 void showHyperlinks ( IHyperlink[] hyperlinks)
          Tells this hyperlink presenter to show the given hyperlinks on the installed text viewer.
 void uninstall ()
          Uninstalls this hyperlink presenter.
 
Methods inherited from class org.eclipse.jface.text.hyperlink. DefaultHyperlinkPresenter
applyTextPresentation, documentAboutToBeChanged, documentChanged, inputDocumentAboutToBeChanged, inputDocumentChanged, propertyChange, setColor
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleHyperlinkPresenter

public MultipleHyperlinkPresenter(
IPreferenceStore store)
Creates a new multiple hyperlink presenter which uses DefaultHyperlinkPresenter.HYPERLINK_COLOR to read the color from the given preference store.

Parameters:
store - the preference store

MultipleHyperlinkPresenter

public MultipleHyperlinkPresenter(
RGB color)
Creates a new multiple hyperlink presenter.

Parameters:
color - the hyperlink color, to be disposed by the caller
Method Detail

install

public void install(
ITextViewer viewer)
Description copied from interface: IHyperlinkPresenter
Installs this hyperlink presenter on the given text viewer.

Specified by:
install in interface IHyperlinkPresenter
Overrides:
install in class DefaultHyperlinkPresenter
Parameters:
viewer - the text viewer

uninstall

public void uninstall()
Description copied from interface: IHyperlinkPresenter
Uninstalls this hyperlink presenter.

Specified by:
uninstall in interface IHyperlinkPresenter
Overrides:
uninstall in class DefaultHyperlinkPresenter

canShowMultipleHyperlinks

public boolean canShowMultipleHyperlinks()
Description copied from interface: IHyperlinkPresenter
Tells whether this presenter is able to handle more than one hyperlink.

Specified by:
canShowMultipleHyperlinks in interface IHyperlinkPresenter
Overrides:
canShowMultipleHyperlinks in class DefaultHyperlinkPresenter
Returns:
true if this presenter can handle more than one hyperlink

canHideHyperlinks

public boolean canHideHyperlinks()
Description copied from class: DefaultHyperlinkPresenter
Tells whether the currently shown hyperlinks can be hidden.

Specified by:
canHideHyperlinks in interface IHyperlinkPresenterExtension
Overrides:
canHideHyperlinks in class DefaultHyperlinkPresenter
Returns:
true if the hyperlink manager can hide the current hyperlinks

hideHyperlinks

public void hideHyperlinks()
Description copied from interface: IHyperlinkPresenter
Tells this hyperlink presenter to hide the hyperlinks requested to be shown by IHyperlinkPresenter.showHyperlinks(IHyperlink[]).

Specified by:
hideHyperlinks in interface IHyperlinkPresenter
Overrides:
hideHyperlinks in class DefaultHyperlinkPresenter

showHyperlinks

public void showHyperlinks(
IHyperlink[] hyperlinks)
Description copied from interface: IHyperlinkPresenter
Tells this hyperlink presenter to show the given hyperlinks on the installed text viewer.

Specified by:
showHyperlinks in interface IHyperlinkPresenter
Overrides:
showHyperlinks in class DefaultHyperlinkPresenter
Parameters:
hyperlinks - the hyperlinks to show

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