com.aptana.ide.editor.js
Class JSPairFinder

java.lang.Object
  extended by com.aptana.ide.editors.unified.AbstractPairFinder
      extended by com.aptana.ide.editor.js.JSPairFinder
All Implemented Interfaces:
IPairFinder

public class JSPairFinder
extends AbstractPairFinder
implements IPairFinder

Author:
Pavel Petrochenko

Constructor Summary
JSPairFinder()
           
 
Method Summary
 boolean displayOnlyMatch()
          Display only the matching pair (not both)
 boolean doNotDisplay()
          Should display pairs
 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 com.aptana.ide.editors.unified.AbstractPairFinder
findPairMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aptana.ide.editors.unified.IPairFinder
findPairMatch
 

Constructor Detail

JSPairFinder

public JSPairFinder()
Method Detail

findPairMatch

public PairMatch findPairMatch(int offset,
                               IParseState parseState,
                               Lexeme cursorLexeme,
                               int loopCount)
Specified by:
findPairMatch in class AbstractPairFinder
Parameters:
offset -
parseState -
cursorLexeme -
loopCount -
Returns:
PairMatch

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
Overrides:
getPairFinderColor in class AbstractPairFinder
Returns:
- color
See Also:
IPairFinder.getPairFinderColor()

displayOnlyMatch

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

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

doNotDisplay

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

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