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 IQuickAssistProcessor


public interface IQuickAssistProcessor

Interface to be implemented by contributors to the extension point org.eclipse.jdt.ui.quickAssistProcessors.

Since:
3.0

Method Summary
  IJavaCompletionProposal[] getAssists ( IInvocationContext context, IProblemLocation[] locations)
          Collects quick assists for the given context.
 boolean hasAssists ( IInvocationContext context)
          Evaluates if quick assists can be created for the given context.
 

Method Detail

hasAssists

boolean hasAssists(
IInvocationContext context)
                   throws 
CoreException
Evaluates if quick assists can be created for the given context. This evaluation must be precise.

Parameters:
context - The invocation context
Returns:
Returns true if quick assists can be created
Throws:
CoreException - CoreException can be thrown if the operation fails

getAssists


IJavaCompletionProposal[] getAssists(
IInvocationContext context,
                                     
IProblemLocation[] locations)
                                     throws 
CoreException
Collects quick assists for the given context.

Parameters:
context - Defines current compilation unit, position and a shared AST
locations - The locations of problems at the invocation offset. The processor can decide to only add assists when there are no errors at the selection offset.
Returns:
Returns the assists applicable at the location or null if no proposals can be offered.
Throws:
CoreException - CoreException can be thrown if the operation fails

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