//Here we check what type these items are
CompletionProposal proposal = null;
if(scopeKey instanceof ScopeVar){
//Lets find the help and assign some help to it
ScopeVar sVar = (ScopeVar)scopeKey;
scopeItem = scopeItem.substring(scopeItem.indexOf(".") + 1, scopeItem.length());
proposal = new CompletionProposal(scopeItem.toString(),
state.getOffset(),
0,
scopeItem.toString().length(),
CFPluginImages.get(CFPluginImages.ICON_VALUE),
scopeItem.toString(),
null,
sVar.getHelp());
} else {
//Need to remove the text that has already been entered (textSoFar)
String replacementString = scopeItem.toString().replace(prefix, "");
proposal = new CompletionProposal(scopeItem.toString(),