com.aptana.ide.editor.css
Class CSSOffsetMapper

java.lang.Object
  extended by com.aptana.ide.editors.unified.ChildOffsetMapper
      extended by com.aptana.ide.editor.css.CSSOffsetMapper
All Implemented Interfaces:
IChildOffsetMapper, IOffsetMapper

public class CSSOffsetMapper
extends ChildOffsetMapper


Field Summary
static java.lang.String MODE_INVOKING
          We are "inside" a rule
static java.lang.String MODE_NORMAL
          We are "outside" or "between" rules
 
Constructor Summary
CSSOffsetMapper(IParentOffsetMapper parent)
           
 
Method Summary
 java.lang.String getMode(int offset)
          Returns the invocation mode (invoking, new, or normal).
 
Methods inherited from class com.aptana.ide.editors.unified.ChildOffsetMapper
calculateCurrentLexeme, dispose, findTarget, getCurrentLexeme, getCurrentLexemeIndex, getFileService, getLexemeAtIndex, getLexemeIndexFromDocumentOffset, getLexemeList, getNextLexeme, getParent, getPreviousLexeme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_NORMAL

public static final java.lang.String MODE_NORMAL
We are "outside" or "between" rules

See Also:
Constant Field Values

MODE_INVOKING

public static final java.lang.String MODE_INVOKING
We are "inside" a rule

See Also:
Constant Field Values
Constructor Detail

CSSOffsetMapper

public CSSOffsetMapper(IParentOffsetMapper parent)
Parameters:
parent -
Method Detail

getMode

public java.lang.String getMode(int offset)
Returns the invocation mode (invoking, new, or normal).

Parameters:
offset - The index to check the mode at.
Returns:
Returns the invocation mode (invoking, new, or normal).