com.alee.examples.content
Class SourceViewer.CodeLinkGenerator

java.lang.Object
  extended by com.alee.examples.content.SourceViewer.CodeLinkGenerator
All Implemented Interfaces:
org.fife.ui.rsyntaxtextarea.LinkGenerator
Enclosing class:
SourceViewer

protected class SourceViewer.CodeLinkGenerator
extends java.lang.Object
implements org.fife.ui.rsyntaxtextarea.LinkGenerator


Field Summary
protected  JarEntry entry
          Entry displayed in the editor to which this link generator is attached.
protected  java.util.Map<java.awt.Dimension,org.fife.ui.rsyntaxtextarea.LinkGeneratorResult> results
          Cached link generation results.
 
Constructor Summary
SourceViewer.CodeLinkGenerator(JarEntry entry)
          Constructs new code link generator for the specified jar entry.
 
Method Summary
 void destroy()
          Clears link search cache.
 org.fife.ui.rsyntaxtextarea.LinkGeneratorResult isLinkAtOffset(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea source, int pos)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

results

protected java.util.Map<java.awt.Dimension,org.fife.ui.rsyntaxtextarea.LinkGeneratorResult> results
Cached link generation results.


entry

protected JarEntry entry
Entry displayed in the editor to which this link generator is attached.

Constructor Detail

SourceViewer.CodeLinkGenerator

public SourceViewer.CodeLinkGenerator(JarEntry entry)
Constructs new code link generator for the specified jar entry.

Parameters:
entry - jar entry
Method Detail

isLinkAtOffset

public org.fife.ui.rsyntaxtextarea.LinkGeneratorResult isLinkAtOffset(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea source,
                                                                      int pos)

Specified by:
isLinkAtOffset in interface org.fife.ui.rsyntaxtextarea.LinkGenerator

destroy

public void destroy()
Clears link search cache.