| java.lang.Object org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory
CompletionProposalCategory | final public class CompletionProposalCategory (Code) | | Describes a category extension to the "javaCompletionProposalComputer" extension point.
since: 3.2 |
computeCompletionProposals | public List computeCompletionProposals(ContentAssistInvocationContext context, String partition, SubProgressMonitor monitor)(Code) | | Safely computes completion proposals of all computers of this category through their
extension. If an extension is disabled, throws an exception or otherwise does not adhere to
the contract described in
IJavaCompletionProposalComputer , it is disabled.
Parameters: context - the invocation context passed on to the extension Parameters: partition - the partition type where to invocation occurred Parameters: monitor - the progress monitor passed on to the extension the list of computed completion proposals (element type:org.eclipse.jface.text.contentassist.ICompletionProposal) |
computeContextInformation | public List computeContextInformation(ContentAssistInvocationContext context, String partition, SubProgressMonitor monitor)(Code) | | Safely computes context information objects of all computers of this category through their
extension. If an extension is disabled, throws an exception or otherwise does not adhere to
the contract described in
IJavaCompletionProposalComputer , it is disabled.
Parameters: context - the invocation context passed on to the extension Parameters: partition - the partition type where to invocation occurred Parameters: monitor - the progress monitor passed on to the extension the list of computed context information objects (element type:org.eclipse.jface.text.contentassist.IContextInformation) |
getDisplayName | public String getDisplayName()(Code) | | Returns the name of the described extension
without mnemonic hint in order to be displayed
in a message.
Returns the name |
getErrorMessage | public String getErrorMessage()(Code) | | Returns the error message from the computers in this category.
the error message from the computers in this category |
getId | public String getId()(Code) | | Returns the identifier of the described extension.
Returns the id |
getImageDescriptor | public ImageDescriptor getImageDescriptor()(Code) | | Returns the image descriptor of the described category.
the image descriptor of the described category |
getName | public String getName()(Code) | | Returns the name of the described extension.
Returns the name |
getSortOrder | public int getSortOrder()(Code) | | sortOrder |
hasComputers | public boolean hasComputers()(Code) | | Returns true if the category contains any computers, false
otherwise.
true if the category contains any computers, false otherwise |
hasComputers | public boolean hasComputers(String partition)(Code) | | Returns true if the category contains any computers in the given partition, false
otherwise.
Parameters: partition - the partition true if the category contains any computers, false otherwise |
isEnabled | public boolean isEnabled()(Code) | | |
isIncluded | public boolean isIncluded()(Code) | | included |
isSeparateCommand | public boolean isSeparateCommand()(Code) | | Returns the enablement state of the category.
the enablement state of the category |
sessionEnded | public void sessionEnded()(Code) | | Notifies the computers in this category of a proposal computation session end.
|
sessionStarted | public void sessionStarted()(Code) | | Notifies the computers in this category of a proposal computation session start.
|
setEnabled | public void setEnabled(boolean isEnabled)(Code) | | |
setIncluded | public void setIncluded(boolean included)(Code) | | Parameters: included - the included |
setSeparateCommand | public void setSeparateCommand(boolean enabled)(Code) | | Sets the separate command state of the category.
Parameters: enabled - the new enabled state. |
setSortOrder | public void setSortOrder(int sortOrder)(Code) | | Parameters: sortOrder - the sortOrder |
|
|