Package org.eclipse.jface.text.link

Examples of org.eclipse.jface.text.link.ProposalPosition


            document.addPosition(getCategory(), pos);
            proposals[j]= new PositionBasedCompletionProposal(values[j], pos, length);
          }
         
          if (proposals.length > 1)
            first= new ProposalPosition(document, offsets[0] + start, length, proposals);
          else
            first= new LinkedPosition(document, offsets[0] + start, length);
        }

        for (int j= 0; j != offsets.length; j++)
View Full Code Here


                if (i == 1) {
                    firstParameterLen = len;
                }
                int location = offset + iPar + offs + 1;
                LinkedPositionGroup group = new LinkedPositionGroup();
                ProposalPosition proposalPosition = new ProposalPosition(doc, location, len, 0,
                        new ICompletionProposal[0]);
                group.addPosition(proposalPosition);
                model.addGroup(group);
            }
View Full Code Here

            LinkedModeModel model = new LinkedModeModel();
            LinkedPositionGroup group = new LinkedPositionGroup();

            //the len-3 is because of the end of the string: " = " because the replacement string is
            //something like "xxx = "
            ProposalPosition proposalPosition = new ProposalPosition(document, fReplacementOffset,
                    fReplacementString.length() - 3, 0, new ICompletionProposal[0]);
            group.addPosition(proposalPosition);

            model.addGroup(group);
            model.forceInstall();
View Full Code Here

                    int len = req.initialName.length();
                    Tuple<Integer, Integer> foundAt = new Tuple<Integer, Integer>(offset, len);

                    if (!found.contains(foundAt)) {
                        i++;
                        ProposalPosition proposalPosition = new ProposalPosition(document, offset, len, i,
                                new ICompletionProposal[0]);
                        found.add(foundAt);
                        groupPositions.add(proposalPosition);
                        if (offset <= absoluteCursorOffset && absoluteCursorOffset < offset + len) {
                            firstPosition = i;
View Full Code Here

            document.addPosition(getCategory(), pos);
            proposals[j]= new PositionBasedCompletionProposal(values[j], pos, length);
          }

          if (proposals.length > 1)
            first= new ProposalPosition(document, offsets[0] + start, length, proposals);
          else
            first= new LinkedPosition(document, offsets[0] + start, length);
        }

        for (int j= 0; j != offsets.length; j++)
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.link.ProposalPosition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.