Example usage for com.google.gwt.eclipse.core.uibinder.text IndentationFixingCompletionProposal IndentationFixingCompletionProposal

List of usage examples for com.google.gwt.eclipse.core.uibinder.text IndentationFixingCompletionProposal IndentationFixingCompletionProposal

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.uibinder.text IndentationFixingCompletionProposal IndentationFixingCompletionProposal.

Prototype

public IndentationFixingCompletionProposal(ICompletionProposal originalProposal) 

Source Link

Usage

From source file:com.gwtplugins.gwt.eclipse.gss.model.IndentationFixingGssContentAssistProcessor.java

License:Open Source License

@Override
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentPosition) {
    ICompletionProposal[] proposals = super.computeCompletionProposals(viewer, documentPosition);

    List<ICompletionProposal> wrappedProposals = new ArrayList<ICompletionProposal>();
    for (ICompletionProposal proposal : proposals) {
        wrappedProposals.add(new IndentationFixingCompletionProposal(proposal));
    }//from  w ww  .j a v  a  2  s . c  o m

    return wrappedProposals.toArray(new ICompletionProposal[wrappedProposals.size()]);
}