Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] Purpose of IQuickAssistProcessor#hasAssists

Friends of JDT,

If I define a custom org.eclipse.jdt.ui.quickAssistProcessors
extension the hasAssists of the implementation class is never called.
Also, the standard JDT UI quickAssistProcessors, as for example
AdvancedQuickAssistProcessor, this method seems not be called.

The Javadoc of IQuickAssistProcessor#hasAssists is not very telling:
------------
/**
     * Evaluates if quick assists can be created for the given
context. This evaluation must be precise.
     *
     * @param context The invocation context
     * @return Returns <code>true</code> if quick assists can be created
     * @throws CoreException CoreException can be thrown if the operation fails
--------

Can you clarify what this method is for?

Best regards, Lars

-- 
Eclipse Platform project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top