com.aptana.ide.editors.unified
Class AbstractPairFinder

java.lang.Object
  extended by com.aptana.ide.editors.unified.AbstractPairFinder
All Implemented Interfaces:
IPairFinder
Direct Known Subclasses:
CSSPairFinder, HTMLPairFinder, JSPairFinder, NullPairFinder, XMLPairFinder

public abstract class AbstractPairFinder
extends java.lang.Object
implements IPairFinder

Author:
Pavel Petrochenko

Constructor Summary
AbstractPairFinder()
           
 
Method Summary
 boolean displayOnlyMatch()
          Display only the matching pair (not both)
 boolean doNotDisplay()
          Should display pairs
 PairMatch findPairMatch(int offset, IParseState parseState)
           
abstract  PairMatch findPairMatch(int offset, IParseState parseState, Lexeme cursorLexeme, int loopCount)
           
 org.eclipse.swt.graphics.Color getPairFinderColor()
          Gets the color for this pair finder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPairFinder

public AbstractPairFinder()
Method Detail

findPairMatch

public PairMatch findPairMatch(int offset,
                               IParseState parseState)
Specified by:
findPairMatch in interface IPairFinder
Returns:
PairMatch
See Also:
IPairFinder.findPairMatch(int, com.aptana.ide.parsing.IParseState)

findPairMatch

public abstract PairMatch findPairMatch(int offset,
                                        IParseState parseState,
                                        Lexeme cursorLexeme,
                                        int loopCount)
Parameters:
offset -
parseState -
cursorLexeme -
loopCount -
Returns:
PairMatch

displayOnlyMatch

public boolean displayOnlyMatch()
Description copied from interface: IPairFinder
Display only the matching pair (not both)

Specified by:
displayOnlyMatch in interface IPairFinder
Returns:
- true if only display match, false to display both
See Also:
IPairFinder.displayOnlyMatch()

doNotDisplay

public boolean doNotDisplay()
Description copied from interface: IPairFinder
Should display pairs

Specified by:
doNotDisplay in interface IPairFinder
Returns:
- true if shouldn't be display, false otherwise
See Also:
IPairFinder.doNotDisplay()

getPairFinderColor

public org.eclipse.swt.graphics.Color getPairFinderColor()
Description copied from interface: IPairFinder
Gets the color for this pair finder

Specified by:
getPairFinderColor in interface IPairFinder
Returns:
- color
See Also:
IPairFinder.getPairFinderColor()