public class EditorHyperlinkSupport
extends java.lang.Object
Constructor and Description |
---|
EditorHyperlinkSupport(Editor editor,
Project project)
If your editor has a project inside, better use
get(Editor) |
Modifier and Type | Method and Description |
---|---|
void |
addHighlighter(int highlightStartOffset,
int highlightEndOffset,
TextAttributes highlightAttributes) |
void |
addHighlighter(int highlightStartOffset,
int highlightEndOffset,
TextAttributes highlightAttributes,
int highlighterLayer) |
void |
addHyperlink(int highlightStartOffset,
int highlightEndOffset,
TextAttributes highlightAttributes,
HyperlinkInfo hyperlinkInfo)
Deprecated.
left for API compatibility, use
createHyperlink(int, int, TextAttributes, HyperlinkInfo) |
static void |
associateHyperlink(RangeHighlighter highlighter,
HyperlinkInfo hyperlinkInfo)
Deprecated.
|
void |
clearHyperlinks() |
RangeHighlighter |
createHyperlink(int highlightStartOffset,
int highlightEndOffset,
TextAttributes highlightAttributes,
HyperlinkInfo hyperlinkInfo) |
void |
createHyperlink(RangeHighlighter highlighter,
HyperlinkInfo hyperlinkInfo) |
java.util.List<RangeHighlighter> |
findAllHyperlinksOnLine(int line) |
static EditorHyperlinkSupport |
get(Editor editor) |
static HyperlinkInfo |
getHyperlinkInfo(RangeHighlighter range) |
HyperlinkInfo |
getHyperlinkInfoByLineAndCol(int line,
int col) |
HyperlinkInfo |
getHyperlinkInfoByPoint(java.awt.Point p) |
java.util.Map<RangeHighlighter,HyperlinkInfo> |
getHyperlinks()
Deprecated.
left for API compatibility
|
static java.lang.String |
getLineText(Document document,
int lineNumber,
boolean includeEol) |
java.lang.Runnable |
getLinkNavigationRunnable(LogicalPosition logical) |
static OccurenceNavigator.OccurenceInfo |
getNextOccurrence(Editor editor,
int delta,
Consumer<? super RangeHighlighter> action) |
void |
highlightHyperlinks(Filter customFilter,
Filter predefinedMessageFilter,
int line1,
int endLine)
Deprecated.
|
void |
highlightHyperlinks(Filter customFilter,
int line1,
int endLine) |
void |
removeHyperlink(RangeHighlighter hyperlink) |
void |
waitForPendingFilters(long timeoutMs) |
public EditorHyperlinkSupport(Editor editor, Project project)
get(Editor)
public static EditorHyperlinkSupport get(Editor editor)
public void clearHyperlinks()
public void waitForPendingFilters(long timeoutMs)
@Deprecated public java.util.Map<RangeHighlighter,HyperlinkInfo> getHyperlinks()
public java.lang.Runnable getLinkNavigationRunnable(LogicalPosition logical)
public static HyperlinkInfo getHyperlinkInfo(RangeHighlighter range)
public java.util.List<RangeHighlighter> findAllHyperlinksOnLine(int line)
public void removeHyperlink(RangeHighlighter hyperlink)
public HyperlinkInfo getHyperlinkInfoByLineAndCol(int line, int col)
@Deprecated public void addHyperlink(int highlightStartOffset, int highlightEndOffset, TextAttributes highlightAttributes, HyperlinkInfo hyperlinkInfo)
createHyperlink(int, int, TextAttributes, HyperlinkInfo)
public void createHyperlink(RangeHighlighter highlighter, HyperlinkInfo hyperlinkInfo)
public RangeHighlighter createHyperlink(int highlightStartOffset, int highlightEndOffset, TextAttributes highlightAttributes, HyperlinkInfo hyperlinkInfo)
@Deprecated public static void associateHyperlink(RangeHighlighter highlighter, HyperlinkInfo hyperlinkInfo)
get(Editor)
and then createHyperlink(RangeHighlighter, HyperlinkInfo)
public HyperlinkInfo getHyperlinkInfoByPoint(java.awt.Point p)
@Deprecated public void highlightHyperlinks(Filter customFilter, Filter predefinedMessageFilter, int line1, int endLine)
public void highlightHyperlinks(Filter customFilter, int line1, int endLine)
public void addHighlighter(int highlightStartOffset, int highlightEndOffset, TextAttributes highlightAttributes)
public void addHighlighter(int highlightStartOffset, int highlightEndOffset, TextAttributes highlightAttributes, int highlighterLayer)
public static OccurenceNavigator.OccurenceInfo getNextOccurrence(Editor editor, int delta, Consumer<? super RangeHighlighter> action)
public static java.lang.String getLineText(Document document, int lineNumber, boolean includeEol)