List of usage examples for org.eclipse.jface.fieldassist IContentProposal getDescription
public String getDescription();
From source file:org.eclipse.mylyn.tasks.tests.OptionsProposalProviderTest.java
License:Open Source License
private void assertProposal(String content, String label, IContentProposal proposal) { assertEquals(content, proposal.getContent()); assertEquals(label, proposal.getLabel()); assertNull(proposal.getDescription()); }
From source file:org.talend.designer.core.ui.viewer.proposal.TalendCompletionProposalComputer.java
License:Open Source License
private String getGlobalVarDescription(IContentProposal cp, String display) { String message = "<b>" + display + "</b><br><br>" //$NON-NLS-1$ //$NON-NLS-2$ + Messages.getString("GlobalVariableProposal.Description") + "<br>"; //$NON-NLS-1$ //$NON-NLS-2$ message += Messages.getString("GlobalVariableProposal.VariableName"); //$NON-NLS-1$ MessageFormat format = new MessageFormat(message); Object[] args = new Object[] { cp.getDescription(), cp.getContent() }; return format.format(args); }