private final TemplateContext fContext;
private final PHPFunction fFunction;
- //private TemplateBuffer fTemplateBuffer;
private String fOldText;
- // private final Image fImage_builtin;
private final IRegion fRegion;
- // private IRegion fSelectedRegion; // initialized by apply()
private final String fBuiltinFunctionName;
- // private final ITextViewer fViewer;
/**
* Creates a template proposal with a template and its context.
* @see ICompletionProposal#getAdditionalProposalInfo()
*/
public String getAdditionalProposalInfo() {
- return textToHTML(fFunction.getDescription()); // fTemplateBuffer.getString());
+ return textToHTML(fFunction.getDescription());
}
/*
*/
public String getDisplayString() {
return fBuiltinFunctionName + TemplateMessages.getString("TemplateProposal.delimiter") + fFunction.getUsage(); // $NON-NLS-1$ //$NON-NLS-1$
- // return fTemplate.getName() + ObfuscatorMessages.getString("TemplateProposal.delimiter") + fTemplate.getDescription(); // $NON-NLS-1$ //$NON-NLS-1$
}
/*
import net.sourceforge.phpdt.core.compiler.ITerminalSymbols;
import net.sourceforge.phpdt.core.compiler.InvalidInputException;
import net.sourceforge.phpdt.internal.compiler.parser.Scanner;
-import net.sourceforge.phpdt.internal.corext.template.php.CompilationUnitContextType;
import net.sourceforge.phpdt.internal.corext.template.php.JavaContext;
import net.sourceforge.phpdt.internal.corext.template.php.JavaContextType;
import net.sourceforge.phpdt.internal.ui.PHPUiImages;
this.ElementName = ElementName;
}
public final void setUsage(String usage) {
- this.ElementUsage = "<b>"+usage+"</b>";
+ this.ElementUsage = usage;
}
//Getters
}
public String getHoverText() {
- return getUsage();
+ return "<b>"+getUsage()+"</b>";
}
public PHPElement() {