1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 21:05:37 +02:00

add the value part of the tootip for macros.

This commit is contained in:
Alain Magloire 2003-09-09 19:09:14 +00:00
parent 93b627eabc
commit 8a3a52b54a

View file

@ -108,6 +108,7 @@ public class MakefileCompletionProcessor implements IContentAssistProcessor {
} }
if (name != null && name.startsWith(wordPart.getString())) { if (name != null && name.startsWith(wordPart.getString())) {
IContextInformation info = new ContextInformation(name, infoString); IContextInformation info = new ContextInformation(name, infoString);
String displayString = (name.equals(infoString) ? name : name + " - " + infoString);
ICompletionProposal result = ICompletionProposal result =
new CompletionProposal( new CompletionProposal(
name, name,
@ -115,7 +116,7 @@ public class MakefileCompletionProcessor implements IContentAssistProcessor {
wordPart.getString().length(), wordPart.getString().length(),
name.length(), name.length(),
image, image,
name, displayString,
info, info,
infoString); infoString);
proposalList.add(result); proposalList.add(result);