Example usage for org.eclipse.jface.fieldassist IContentProposal getDescription

List of usage examples for org.eclipse.jface.fieldassist IContentProposal getDescription

Introduction

In this page you can find the example usage for org.eclipse.jface.fieldassist IContentProposal getDescription.

Prototype

public String getDescription();

Source Link

Document

Return a description that describes this proposal.

Usage

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);
}