com.aptana.ide.editor.css
Class CSSFileLanguageService

java.lang.Object
  extended by com.aptana.ide.editors.unified.BaseFileLanguageService
      extended by com.aptana.ide.editor.css.CSSFileLanguageService
All Implemented Interfaces:
IFileLanguageService

public class CSSFileLanguageService
extends BaseFileLanguageService

Author:
Robin Debreuil

Field Summary
 
Fields inherited from class com.aptana.ide.editors.unified.BaseFileLanguageService
fileService
 
Constructor Summary
CSSFileLanguageService(FileService fileService, IParseState parseState, IParser parser, IParentOffsetMapper mapper)
          CSSFileLanguageService
 
Method Summary
 void createOffsetMapper(IParentOffsetMapper parent)
          This will return a default offset mapper if not overridden.
static CSSFileLanguageService getCSSFileLanguageService(IFileService context)
          getCSSFileLanguageService
 java.lang.String getDefaultLanguage()
           
 java.lang.String getDocumentationFromLexeme(Lexeme lexeme)
          Given a lexeme, returns the documentation for that lexeme based upon the current "environment"
 HelpResource[] getDocumentationResourcesFromLexeme(Lexeme lexeme)
          Reurns a list of documentation links pertinent to the particular lexeme
 java.lang.String getDocumentationTitleFromLexeme(Lexeme lexeme)
          Given a lexeme, returns the documentation title for that lexeme based upon the current "environment"
 IOffsetMapper getOffsetMapper()
          Return the mapper from offsets to lexemes
 boolean isProfileMember()
          isProfileMember
 void reset(boolean resetFileIndex)
          reset
 void setProfileMember(boolean isProfileMember)
          setProfileMember
 
Methods inherited from class com.aptana.ide.editors.unified.BaseFileLanguageService
activateForEditing, connectSourceProvider, deactivateForEditing, disconnectSourceProvider, getFileContext, getParser, getParseState, getParseState, getValidDocumentationLexeme, reconnectToEnvironment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSFileLanguageService

public CSSFileLanguageService(FileService fileService,
                              IParseState parseState,
                              IParser parser,
                              IParentOffsetMapper mapper)
CSSFileLanguageService

Parameters:
fileService -
parseState -
parser -
mapper -
Method Detail

getDocumentationTitleFromLexeme

public java.lang.String getDocumentationTitleFromLexeme(Lexeme lexeme)
Description copied from interface: IFileLanguageService
Given a lexeme, returns the documentation title for that lexeme based upon the current "environment"

Specified by:
getDocumentationTitleFromLexeme in interface IFileLanguageService
Overrides:
getDocumentationTitleFromLexeme in class BaseFileLanguageService
Parameters:
lexeme - The lexeme to search documentation for
Returns:
A string representing the code assist documentation
See Also:
IFileLanguageService.getDocumentationTitleFromLexeme(com.aptana.ide.lexer.Lexeme)

getDocumentationResourcesFromLexeme

public HelpResource[] getDocumentationResourcesFromLexeme(Lexeme lexeme)
Description copied from interface: IFileLanguageService
Reurns a list of documentation links pertinent to the particular lexeme

Specified by:
getDocumentationResourcesFromLexeme in interface IFileLanguageService
Overrides:
getDocumentationResourcesFromLexeme in class BaseFileLanguageService
Parameters:
lexeme - The lexeme to search documentation for
Returns:
A list of help resources
See Also:
IFileLanguageService.getDocumentationResourcesFromLexeme(com.aptana.ide.lexer.Lexeme)

getDocumentationFromLexeme

public java.lang.String getDocumentationFromLexeme(Lexeme lexeme)
Given a lexeme, returns the documentation for that lexeme based upon the current "environment"

Specified by:
getDocumentationFromLexeme in interface IFileLanguageService
Overrides:
getDocumentationFromLexeme in class BaseFileLanguageService
Parameters:
lexeme - The lexeme to search documentation for
Returns:
A string representing the code assist documentation
See Also:
IFileLanguageService.getDocumentationFromLexeme(com.aptana.ide.lexer.Lexeme)

getDefaultLanguage

public java.lang.String getDefaultLanguage()
Returns:
DefaultLanguage

getOffsetMapper

public IOffsetMapper getOffsetMapper()
Return the mapper from offsets to lexemes

Specified by:
getOffsetMapper in interface IFileLanguageService
Overrides:
getOffsetMapper in class BaseFileLanguageService
Returns:
IOffsetMapper
See Also:
IFileLanguageService.getOffsetMapper()

createOffsetMapper

public void createOffsetMapper(IParentOffsetMapper parent)
Description copied from class: BaseFileLanguageService
This will return a default offset mapper if not overridden. overrides shouldn't call the base class.

Overrides:
createOffsetMapper in class BaseFileLanguageService
Parameters:
parent -

getCSSFileLanguageService

public static CSSFileLanguageService getCSSFileLanguageService(IFileService context)
getCSSFileLanguageService

Parameters:
context -
Returns:
CSSFileLanguageService

isProfileMember

public boolean isProfileMember()
isProfileMember

Returns:
boolean

setProfileMember

public void setProfileMember(boolean isProfileMember)
setProfileMember

Parameters:
isProfileMember -

reset

public void reset(boolean resetFileIndex)
Description copied from interface: IFileLanguageService
reset

Specified by:
reset in interface IFileLanguageService
Overrides:
reset in class BaseFileLanguageService
See Also:
IFileLanguageService.reset(boolean)