|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.text.contentassist.CompletionProposalCategory
public final class CompletionProposalCategory
Describes a category extension to the "completionProposalComputer" extension point.
Method Summary | |
---|---|
java.util.List |
computeCompletionProposals(ContentAssistInvocationContext context,
java.lang.String partition,
org.eclipse.core.runtime.SubProgressMonitor monitor)
Safely computes completion proposals of all computers of this category through their extension. |
java.util.List |
computeContextInformation(ContentAssistInvocationContext context,
java.lang.String partition,
org.eclipse.core.runtime.SubProgressMonitor monitor)
Safely computes context information objects of all computers of this category through their extension. |
java.lang.String |
getDisplayName()
Returns the name of the described extension without mnemonic hint in order to be displayed in a message. |
java.lang.String |
getErrorMessage()
Returns the error message from the computers in this category. |
java.lang.String |
getId()
Returns the identifier of the described extension. |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor()
Returns the image descriptor of the described category. |
java.lang.String |
getName()
Returns the name of the described extension. |
int |
getSortOrder()
|
boolean |
hasComputers()
Returns true if the category contains any computers, false
otherwise. |
boolean |
hasComputers(java.lang.String partition)
Returns true if the category contains any computers in the given partition, false
otherwise. |
boolean |
isEnabled()
|
boolean |
isIncluded()
|
boolean |
isSeparateCommand()
Returns the enablement state of the category. |
void |
sessionEnded()
Notifies the computers in this category of a proposal computation session end. |
void |
sessionStarted()
Notifies the computers in this category of a proposal computation session start. |
void |
setEnabled(boolean isEnabled)
|
void |
setIncluded(boolean included)
|
void |
setSeparateCommand(boolean enabled)
Sets the separate command state of the category. |
void |
setSortOrder(int sortOrder)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getDisplayName()
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
public void setSeparateCommand(boolean enabled)
enabled
- the new enabled state.public boolean isSeparateCommand()
public void setIncluded(boolean included)
included
- the includedpublic boolean isIncluded()
public boolean isEnabled()
public void setEnabled(boolean isEnabled)
public boolean hasComputers()
true
if the category contains any computers, false
otherwise.
true
if the category contains any computers, false
otherwisepublic boolean hasComputers(java.lang.String partition)
true
if the category contains any computers in the given partition, false
otherwise.
partition
- the partition
true
if the category contains any computers, false
otherwisepublic int getSortOrder()
public void setSortOrder(int sortOrder)
sortOrder
- the sortOrderpublic java.util.List computeCompletionProposals(ContentAssistInvocationContext context, java.lang.String partition, org.eclipse.core.runtime.SubProgressMonitor monitor)
ICompletionProposalComputer
, it is disabled.
context
- the invocation context passed on to the extensionpartition
- the partition type where to invocation occurredmonitor
- the progress monitor passed on to the extension
ICompletionProposal
)public java.util.List computeContextInformation(ContentAssistInvocationContext context, java.lang.String partition, org.eclipse.core.runtime.SubProgressMonitor monitor)
ICompletionProposalComputer
, it is disabled.
context
- the invocation context passed on to the extensionpartition
- the partition type where to invocation occurredmonitor
- the progress monitor passed on to the extension
IContextInformation
)public java.lang.String getErrorMessage()
public void sessionStarted()
public void sessionEnded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |