|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.ui.text.java.CompletionProposalLabelProvider
public class CompletionProposalLabelProvider
Provides labels for JavaScript content assist proposals. The functionality is
similar to the one provided by JavaScriptElementLabels
,
but based on signatures and CompletionProposal
s.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
Constructor Summary | |
---|---|
CompletionProposalLabelProvider()
Creates a new label provider. |
Method Summary | |
---|---|
ImageDescriptor |
createImageDescriptor(CompletionProposal proposal)
Creates and returns a decorated image descriptor for a completion proposal. |
java.lang.String |
createLabel(CompletionProposal proposal)
Creates the display label for a given CompletionProposal . |
java.lang.String |
createParameterList(CompletionProposal proposal)
Creates and returns a parameter list of the given method or type proposal suitable for display. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompletionProposalLabelProvider()
Method Detail |
---|
public java.lang.String createParameterList(CompletionProposal proposal)
Examples:
"void method(int i, Strings)" -> "int i, String s" "? extends Number method(java.lang.String s, ? super Number n)" -> "String s, Number n"
proposal
- the proposal to create the parameter list
for. Must be of kind CompletionProposal.METHOD_REF
or
CompletionProposal.TYPE_REF
.
public java.lang.String createLabel(CompletionProposal proposal)
CompletionProposal
.
proposal
- the completion proposal to create the display label for
proposal
public ImageDescriptor createImageDescriptor(CompletionProposal proposal)
proposal
- the proposal for which to create an image descriptor
null
if no image is available
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |