public class FileLink extends Object implements IConsoleHyperlink
This class is not intended to be subclassed; 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()
IHyperlinklinkActivated in interface IHyperlinkpublic void linkEntered()
IHyperlinklinkEntered in interface IHyperlinkpublic void linkExited()
IHyperlinklinkExited in interface IHyperlinkGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.