return iconStyle;
}
@Override
public ImageDescriptor createImageDescriptor(CompletionProposal proposal) {
DefElementDescriptor defDescriptor = null;
if(proposal.getExtraInfo() instanceof DefElementDescriptor) {
defDescriptor = (DefElementDescriptor) proposal.getExtraInfo();
}
else if(proposal.getExtraInfo() instanceof INamedElement) {
INamedElement defElement = (INamedElement) proposal.getExtraInfo();
defDescriptor = new DefElementDescriptor(defElement);
}
else if(proposal.getModelElement() instanceof IMember) {
IMember member = (IMember) proposal.getModelElement();
try {
defDescriptor = DeeSourceElementProvider.toElementDescriptor(member);