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 ICompletionProposalExtension3

All Known Implementing Classes:
TemplateProposal

public interface ICompletionProposalExtension3

Extends ICompletionProposal with the following functions:

  • provision of a custom information control creator
  • provide a custom completion text and offset for prefix completion

Since:
3.0

Method Summary
  IInformationControlCreator getInformationControlCreator ()
          Returns the information control creator of this completion proposal.
 int getPrefixCompletionStart ( IDocument document, int completionOffset)
          Returns the document offset at which the receiver would insert its proposal.
  CharSequence getPrefixCompletionText ( IDocument document, int completionOffset)
          Returns the string that would be inserted at the position returned from getPrefixCompletionStart(IDocument, int) if this proposal was applied.
 

Method Detail

getInformationControlCreator


IInformationControlCreator getInformationControlCreator()
Returns the information control creator of this completion proposal.

Returns:
the information control creator, or null if no custom control creator is available

getPrefixCompletionText


CharSequence getPrefixCompletionText(
IDocument document,
                                     int completionOffset)
Returns the string that would be inserted at the position returned from getPrefixCompletionStart(IDocument, int) if this proposal was applied. If the replacement string cannot be determined, null may be returned.

Parameters:
document - the document that the receiver applies to
completionOffset - the offset into document where the completion takes place
Returns:
the replacement string or null if it cannot be determined

getPrefixCompletionStart

int getPrefixCompletionStart(
IDocument document,
                             int completionOffset)
Returns the document offset at which the receiver would insert its proposal.

Parameters:
document - the document that the receiver applies to
completionOffset - the offset into document where the completion takes place
Returns:
the offset at which the proposal would insert its proposal

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