public class FileLink extends Object implements IConsoleHyperlink
Clients may instantiate this class.
Constructor and Description |
---|
FileLink(IFile file,
String editorId,
int fileOffset,
int fileLength,
int fileLineNumber)
Constructs a hyperlink to the specified file.
|
Modifier and Type | Method and Description |
---|---|
void |
linkActivated()
Notification that this link has been activated.
|
void |
linkEntered()
Notification that the mouse has entered this link's region.
|
void |
linkExited()
Notification that the mouse has exited this link's region
|
public FileLink(IFile file, String editorId, int fileOffset, int fileLength, int fileLineNumber)
file
- the file to open when activatededitorId
- the identifier of the editor to open the file in, or
null
if 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 -1public void linkActivated()
IHyperlink
linkActivated
in interface IHyperlink
public void linkEntered()
IHyperlink
linkEntered
in interface IHyperlink
public void linkExited()
IHyperlink
linkExited
in interface IHyperlink
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.