List of usage examples for com.google.gwt.eclipse.core.uibinder.text IndentationFixingCompletionProposal IndentationFixingCompletionProposal
public IndentationFixingCompletionProposal(ICompletionProposal originalProposal)
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()]); }