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 JDT
Release 3.5

org.eclipse.jdt.ui.text.java
Interface IJavaCompletionProposalComputer


public interface IJavaCompletionProposalComputer

Computes completions and context information displayed by the Java editor content assistant. Contributions to the org.eclipse.jdt.ui.javaCompletionProposalComputer extension point must implement this interface.

Since:
3.2

Method Summary
  List computeCompletionProposals ( ContentAssistInvocationContext context, IProgressMonitor monitor)
          Returns a list of completion proposals valid at the given invocation context.
  List computeContextInformation ( ContentAssistInvocationContext context, IProgressMonitor monitor)
          Returns context information objects valid at the given invocation context.
  String getErrorMessage ()
          Returns the reason why this computer was unable to produce any completion proposals or context information.
 void sessionEnded ()
          Informs the computer that a content assist session has ended.
 void sessionStarted ()
          Informs the computer that a content assist session has started.
 

Method Detail

sessionStarted

void sessionStarted()
Informs the computer that a content assist session has started. This call will always be followed by a sessionEnded() call, but not necessarily by calls to computeCompletionProposals or computeContextInformation.


computeCompletionProposals


List computeCompletionProposals(
ContentAssistInvocationContext context,
                                
IProgressMonitor monitor)
Returns a list of completion proposals valid at the given invocation context.

Parameters:
context - the context of the content assist invocation
monitor - a progress monitor to report progress. The monitor is private to this invocation, i.e. there is no need for the receiver to spawn a sub monitor.
Returns:
a list of completion proposals (element type: ICompletionProposal)

computeContextInformation


List computeContextInformation(
ContentAssistInvocationContext context,
                               
IProgressMonitor monitor)
Returns context information objects valid at the given invocation context.

Parameters:
context - the context of the content assist invocation
monitor - a progress monitor to report progress. The monitor is private to this invocation, i.e. there is no need for the receiver to spawn a sub monitor.
Returns:
a list of context information objects (element type: IContextInformation)

getErrorMessage


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

Returns:
an error message or null if no error occurred

sessionEnded

void sessionEnded()
Informs the computer that a content assist session has ended. This call will always be after any calls to computeCompletionProposals and computeContextInformation.


Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

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