Package org.eclipse.debug.ui.console
Class FileLink
java.lang.Object
org.eclipse.debug.ui.console.FileLink
- All Implemented Interfaces:
IConsoleHyperlink,IHyperlink
A hyperlink that opens a file in a text editor and selects a range of text.
This hyperlink action will un-zoom the workbench as needed to show the editor
for the associated link.
Clients may instantiate this class.
- Since:
- 2.1
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotification that this link has been activated.voidNotification that the mouse has entered this link's region.voidNotification that the mouse has exited this link's region
-
Constructor Details
-
FileLink
Constructs a hyperlink to the specified file.- Parameters:
file- the file to open when activatededitorId- the identifier of the editor to open the file in, ornullif the default editor should be usedfileOffset- the offset in the file to select when activated, or -1fileLength- the length of text to select in the file when activated or -1fileLineNumber- the line number to select in the file when activated, or -1. First line number is 1. Only used if fileOffset is not set.
-
-
Method Details
-
linkActivated
public void linkActivated()Description copied from interface:IHyperlinkNotification that this link has been activated. Performs context specific linking.- Specified by:
linkActivatedin interfaceIHyperlink
-
linkEntered
public void linkEntered()Description copied from interface:IHyperlinkNotification that the mouse has entered this link's region.- Specified by:
linkEnteredin interfaceIHyperlink
-
linkExited
public void linkExited()Description copied from interface:IHyperlinkNotification that the mouse has exited this link's region- Specified by:
linkExitedin interfaceIHyperlink
-