Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.contentassist
Interface IContentAssistProcessor

All Known Subinterfaces:
ISubjectControlContentAssistProcessor
All Known Implementing Classes:
HippieProposalProcessor, TemplateCompletionProcessor

public interface IContentAssistProcessor

A content assist processor proposes completions and computes context information for a particular content type. A content assist processor is a IContentAssistant plug-in.

This interface must be implemented by clients. Implementers should be registered with a content assistant in order to get involved in the assisting process.


Method Summary
  ICompletionProposal[] computeCompletionProposals ( ITextViewer viewer, int offset)
          Returns a list of completion proposals based on the specified location within the document that corresponds to the current cursor position within the text viewer.
  IContextInformation[] computeContextInformation ( ITextViewer viewer, int offset)
          Returns information about possible contexts based on the specified location within the document that corresponds to the current cursor position within the text viewer.
 char[] getCompletionProposalAutoActivationCharacters ()
          Returns the characters which when entered by the user should automatically trigger the presentation of possible completions.
 char[] getContextInformationAutoActivationCharacters ()
          Returns the characters which when entered by the user should automatically trigger the presentation of context information.
  IContextInformationValidator getContextInformationValidator ()
          Returns a validator used to determine when displayed context information should be dismissed.
  String getErrorMessage ()
          Returns the reason why this content assist processor was unable to produce any completion proposals or context information.
 

Method Detail

computeCompletionProposals


ICompletionProposal[] computeCompletionProposals(
ITextViewer viewer,
                                                 int offset)
Returns a list of completion proposals based on the specified location within the document that corresponds to the current cursor position within the text viewer.

Parameters:
viewer - the viewer whose document is used to compute the proposals
offset - an offset within the document for which completions should be computed
Returns:
an array of completion proposals or null if no proposals are possible

computeContextInformation


IContextInformation[] computeContextInformation(
ITextViewer viewer,
                                                int offset)
Returns information about possible contexts based on the specified location within the document that corresponds to the current cursor position within the text viewer.

Parameters:
viewer - the viewer whose document is used to compute the possible contexts
offset - an offset within the document for which context information should be computed
Returns:
an array of context information objects or null if no context could be found

getCompletionProposalAutoActivationCharacters

char[] getCompletionProposalAutoActivationCharacters()
Returns the characters which when entered by the user should automatically trigger the presentation of possible completions.

Returns:
the auto activation characters for completion proposal or null if no auto activation is desired

getContextInformationAutoActivationCharacters

char[] getContextInformationAutoActivationCharacters()
Returns the characters which when entered by the user should automatically trigger the presentation of context information.

Returns:
the auto activation characters for presenting context information or null if no auto activation is desired

getErrorMessage


String getErrorMessage()
Returns the reason why this content assist processor was unable to produce any completion proposals or context information.

Returns:
an error message or null if no error occurred

getContextInformationValidator


IContextInformationValidator getContextInformationValidator()
Returns a validator used to determine when displayed context information should be dismissed. May only return null if the processor is incapable of computing context information.

Returns:
a context information validator, or null if the processor is incapable of computing context information

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire