public class CompletionProposalLabelProvider extends Object
JavaElementLabels,
but based on signatures and CompletionProposals.Signature| Constructor and Description |
|---|
CompletionProposalLabelProvider()
Creates a new label provider.
|
| Modifier and Type | Method and Description |
|---|---|
ImageDescriptor |
createImageDescriptor(CompletionProposal proposal)
Creates and returns a decorated image descriptor for a completion proposal.
|
String |
createLabel(CompletionProposal proposal)
Creates the display label for a given
CompletionProposal. |
String |
createParameterList(CompletionProposal proposal)
Creates and returns a parameter list of the given method or type proposal suitable for
display.
|
StyledString |
createStyledLabel(CompletionProposal proposal)
Creates a display label with styles for a given
CompletionProposal. |
public CompletionProposalLabelProvider()
public String createParameterList(CompletionProposal proposal)
Examples:
"void method(int i, String s)" -> "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 forpublic String createLabel(CompletionProposal proposal)
CompletionProposal.proposal - the completion proposal to create the display label forproposalpublic StyledString createStyledLabel(CompletionProposal proposal)
CompletionProposal.proposal - the completion proposal to create the display label forproposalpublic ImageDescriptor createImageDescriptor(CompletionProposal proposal)
proposal - the proposal for which to create an image descriptornull if no image is available
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.