org.radrails.rails.internal.ui.editors.ruby
Class RubyCompletionProcessor
java.lang.Object
org.eclipse.jface.text.templates.TemplateCompletionProcessor
org.radrails.rails.internal.ui.editors.ruby.RubyCompletionProcessor
- All Implemented Interfaces:
- org.eclipse.jface.text.contentassist.IContentAssistProcessor
- public class RubyCompletionProcessor
- extends org.eclipse.jface.text.templates.TemplateCompletionProcessor
- implements org.eclipse.jface.text.contentassist.IContentAssistProcessor
Determines the code assist proposals.
- Version:
- 0.4.1
- Author:
- mbaumbach
Field Summary |
protected java.util.Vector |
proposalList
|
protected org.eclipse.jface.text.contentassist.IContextInformationValidator |
validator
|
Methods inherited from class org.eclipse.jface.text.templates.TemplateCompletionProcessor |
createContext, createProposal, createProposal, extractPrefix, getRelevance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proposalList
protected java.util.Vector proposalList
validator
protected org.eclipse.jface.text.contentassist.IContextInformationValidator validator
RubyCompletionProcessor
public RubyCompletionProcessor()
computeCompletionProposals
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int documentOffset)
- Specified by:
computeCompletionProposals
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- See Also:
IContentAssistProcessor.computeCompletionProposals(org.eclipse.jface.text.ITextViewer,
int)
turnProposalVectorIntoAdaptedArray
protected org.eclipse.jface.text.contentassist.ICompletionProposal[] turnProposalVectorIntoAdaptedArray(WordPartDetector word,
org.eclipse.jface.text.ITextViewer viewer,
int documentOffset)
- Turns the vector into an Array of ICompletionProposal objects
- Returns:
- An array of ICompletionProposals based on the list.
computeContextInformation
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
int offset)
- Specified by:
computeContextInformation
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- See Also:
IContentAssistProcessor.computeContextInformation(org.eclipse.jface.text.ITextViewer,
int)
getCompletionProposalAutoActivationCharacters
public char[] getCompletionProposalAutoActivationCharacters()
- Specified by:
getCompletionProposalAutoActivationCharacters
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- See Also:
IContentAssistProcessor.getCompletionProposalAutoActivationCharacters()
getContextInformationAutoActivationCharacters
public char[] getContextInformationAutoActivationCharacters()
- Specified by:
getContextInformationAutoActivationCharacters
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- See Also:
IContentAssistProcessor.getContextInformationAutoActivationCharacters()
getErrorMessage
public java.lang.String getErrorMessage()
- Specified by:
getErrorMessage
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- See Also:
IContentAssistProcessor.getErrorMessage()
getContextInformationValidator
public org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
- Specified by:
getContextInformationValidator
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- See Also:
IContentAssistProcessor.getContextInformationValidator()
getCurrentPrefix
protected java.lang.String getCurrentPrefix(java.lang.String documentString,
int documentOffset)
getTemplates
protected org.eclipse.jface.text.templates.Template[] getTemplates(java.lang.String contextTypeId)
- See Also:
TemplateCompletionProcessor.getTemplates(java.lang.String)
getContextType
protected org.eclipse.jface.text.templates.TemplateContextType getContextType(org.eclipse.jface.text.ITextViewer viewer,
org.eclipse.jface.text.IRegion region)
- See Also:
TemplateCompletionProcessor.getContextType(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)
getImage
protected org.eclipse.swt.graphics.Image getImage(org.eclipse.jface.text.templates.Template template)
- See Also:
TemplateCompletionProcessor.getImage(org.eclipse.jface.text.templates.Template)