|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editors.unified.contentassist.UnifiedContentAssistProcessor
com.aptana.ide.editor.css.contentassist.CSSContentAssistProcessor
public class CSSContentAssistProcessor
| Field Summary | |
|---|---|
static java.lang.String |
ARG_ASSIST
ARG_ASSIST indicates we are between a : and a ; |
static java.lang.String |
ERROR
ERROR indicates we in a problem state, and should bail |
static java.lang.String |
INSIDE_RULE
INSIDE_RULE indicates we are between a { and a } Here we show the full list of CSS properties, or filtered by what is already typed |
static java.lang.String |
OUTSIDE_RULE
OUTSIDE_RULE indicates we are between two rules (between a } and a { |
| Fields inherited from class com.aptana.ide.editors.unified.contentassist.UnifiedContentAssistProcessor |
|---|
DEFAULT_CHARACTER, unifiedViewer |
| Constructor Summary | |
|---|---|
CSSContentAssistProcessor(EditorFileContext context)
Provides code assist information for CSS. |
|
| Method Summary | |
|---|---|
boolean |
addColon(Lexeme currentLexeme,
LexemeList lexemeList)
addColon |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeInnerCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int offset,
int position,
LexemeList lexemeList,
char activationChar,
char previousChar)
Generates the completion proposals for code assist |
org.eclipse.jface.text.contentassist.IContextInformation[] |
computeInnerContextInformation(java.lang.String documentSource,
int offset,
int position,
LexemeList lexemeList)
Generates the context information for code assist |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
getAllPropertiesCompletionProposals(java.lang.String prefix,
Lexeme currentLexeme,
boolean addColon)
Returns a set of valid completion proposals. |
char[] |
getCompletionProposalAutoActivationCharacters()
The characters that triggers competion proposals (dot for completion, and space for "new XX" in our case) |
int[] |
getCompletionProposalIdleActivationTokens()
The token types that triggers competion proposals on idle |
int[] |
getCompletionProposalSeparatorLexemes()
The characters that triggers completion proposals (dot for completion, and space for "new XX" in our case) |
org.eclipse.jface.text.contentassist.IContextInformationValidator |
getContextInformationValidator()
|
CSSOffsetMapper |
getCSSOffsetMapper()
getOffsetMapper |
Lexeme |
getCurrentLexeme(int offset)
Calculates the current lexeme in the document |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
getElementCompletionProposals(java.lang.String prefix,
char activationChar,
Lexeme currentLexeme)
Returns a set of valid completion proposals. |
java.lang.String |
getErrorMessage()
|
java.lang.String |
getLocation(int offset,
int currentLexemePosition,
LexemeList ll,
char activationCharacter)
Returns the "location" we are currently in. |
int |
getOffsetForInsertion(int offset,
Lexeme currentLexeme)
Gets the offset for inserting a new item into the document |
IOffsetMapper |
getOffsetMapper()
Returns a reference to the current offsetMapper |
protected org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
Returns the current preference store |
java.lang.String |
getPropertyPrefix()
getPropertyPrefix |
java.util.Comparator |
getProposalComparator()
The proposal comparator |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
getSpecificPropertyCompletionProposals(int offset,
java.lang.String propertyName,
java.lang.String valueName,
Lexeme currentLexeme)
Returns a set of valid completion proposals. |
java.lang.String |
getValuePrefix()
getValuePrefix |
static boolean |
insertColon(org.eclipse.jface.preference.IPreferenceStore store)
Do we insert a colon? |
static boolean |
insertSemicolon(org.eclipse.jface.preference.IPreferenceStore store)
Do we insert a semicolon? |
void |
setPrefixes(java.lang.String location)
setPrefixes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.text.contentassist.IContentAssistProcessor |
|---|
computeCompletionProposals, computeContextInformation, getContextInformationAutoActivationCharacters |
| Field Detail |
|---|
public static java.lang.String INSIDE_RULE
public static java.lang.String OUTSIDE_RULE
public static java.lang.String ARG_ASSIST
public static java.lang.String ERROR
| Constructor Detail |
|---|
public CSSContentAssistProcessor(EditorFileContext context)
context - | Method Detail |
|---|
public char[] getCompletionProposalAutoActivationCharacters()
getCompletionProposalAutoActivationCharacters in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorgetCompletionProposalAutoActivationCharacters in class UnifiedContentAssistProcessorpublic int[] getCompletionProposalSeparatorLexemes()
getCompletionProposalSeparatorLexemes in class UnifiedContentAssistProcessor
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeInnerCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int offset,
int position,
LexemeList lexemeList,
char activationChar,
char previousChar)
UnifiedContentAssistProcessor
computeInnerCompletionProposals in class UnifiedContentAssistProcessoroffset - The integer offset of the current insertion point
UnifiedContentAssistProcessor.computeInnerCompletionProposals(org.eclipse.jface.text.ITextViewer,
int, int, com.aptana.ide.lexer.LexemeList, char, char)public void setPrefixes(java.lang.String location)
location -
public java.lang.String getLocation(int offset,
int currentLexemePosition,
LexemeList ll,
char activationCharacter)
offset - The current offsetcurrentLexemePosition - ll - activationCharacter -
public org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
getContextInformationValidator in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorIContentAssistProcessor.getContextInformationValidator()public int[] getCompletionProposalIdleActivationTokens()
IUnifiedContentAssistProcessor
getCompletionProposalIdleActivationTokens in interface IUnifiedContentAssistProcessorgetCompletionProposalIdleActivationTokens in class UnifiedContentAssistProcessorIUnifiedContentAssistProcessor.getCompletionProposalIdleActivationTokens()public java.lang.String getErrorMessage()
getErrorMessage in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorIContentAssistProcessor.getErrorMessage()
public org.eclipse.jface.text.contentassist.ICompletionProposal[] getElementCompletionProposals(java.lang.String prefix,
char activationChar,
Lexeme currentLexeme)
prefix - The text already typed (to filter on)activationChar - The char used to activate the code assistcurrentLexeme -
public org.eclipse.jface.text.contentassist.ICompletionProposal[] getSpecificPropertyCompletionProposals(int offset,
java.lang.String propertyName,
java.lang.String valueName,
Lexeme currentLexeme)
offset - propertyName - The text already typed for the "property"valueName - The text already typed for the "value"currentLexeme -
public int getOffsetForInsertion(int offset,
Lexeme currentLexeme)
offset - currentLexeme -
public boolean addColon(Lexeme currentLexeme,
LexemeList lexemeList)
currentLexeme - lexemeList -
public org.eclipse.jface.text.contentassist.ICompletionProposal[] getAllPropertiesCompletionProposals(java.lang.String prefix,
Lexeme currentLexeme,
boolean addColon)
prefix - The text already typed (to filter on)currentLexeme - addColon -
public CSSOffsetMapper getCSSOffsetMapper()
public IOffsetMapper getOffsetMapper()
getOffsetMapper in interface IUnifiedContentAssistProcessorgetOffsetMapper in class UnifiedContentAssistProcessorpublic Lexeme getCurrentLexeme(int offset)
offset - the offset of the current insertion point
protected org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
UnifiedContentAssistProcessor
getPreferenceStore in class UnifiedContentAssistProcessorUnifiedContentAssistProcessor.getPreferenceStore()public java.lang.String getPropertyPrefix()
public java.lang.String getValuePrefix()
public org.eclipse.jface.text.contentassist.IContextInformation[] computeInnerContextInformation(java.lang.String documentSource,
int offset,
int position,
LexemeList lexemeList)
UnifiedContentAssistProcessor
computeInnerContextInformation in class UnifiedContentAssistProcessordocumentSource - The source text of the documentoffset - The integer offset of the current insertion point
UnifiedContentAssistProcessor.computeInnerContextInformation(java.lang.String,
int, int, com.aptana.ide.lexer.LexemeList)public static boolean insertColon(org.eclipse.jface.preference.IPreferenceStore store)
store -
public static boolean insertSemicolon(org.eclipse.jface.preference.IPreferenceStore store)
store -
public java.util.Comparator getProposalComparator()
UnifiedContentAssistProcessor
getProposalComparator in class UnifiedContentAssistProcessorUnifiedContentAssistProcessor.getProposalComparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||