Package at.ssw.coco.ide.model.detectors

Examples of at.ssw.coco.ide.model.detectors.WordFinderAdaptor


   
    // create AST and visit nodes to gain information
    gainASTInformation(fSyncer.mapToJava(offset));
       
    //locate the prefix of the current written word
    wordFinder = new WordFinderAdaptor(doc, fIdentDetector);
    String prefix = wordFinder.getPrefix(offset);
   
    //locate the end of the current semantic operation
    int lastWordPos = offset - prefix.length()-1;
   
View Full Code Here


   */
  private ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset, ArrayList<VarProposal> fields, ArrayList<MethProposal> methods, ArrayList<VarProposal> locals){
   
   
    ITextSelection selection = (ITextSelection)viewer.getSelectionProvider().getSelection();
    WordFinderAdaptor wordFinder = new WordFinderAdaptor(viewer.getDocument(), fIdentDetector);
    String prefix = wordFinder.getPrefix(offset);
    ICocoRegion region = new CocoRegion(offset - prefix.length(), prefix.length() + selection.getLength());

    String prefixLow = prefix.toLowerCase();
   
    LinkedList<ICompletionProposal> completionProposals = new LinkedList<ICompletionProposal>();
View Full Code Here

      ITextViewer viewer, int offset, Object[] keywords,
      Object[][] segments) {

    ITextSelection selection = (ITextSelection) viewer
        .getSelectionProvider().getSelection();
    WordFinderAdaptor wordFinder = new WordFinderAdaptor(viewer
        .getDocument(), fIdentDetector);
    String prefix = wordFinder.getPrefix(offset);
    IRegion region = new Region(offset - prefix.length(), prefix.length()
        + selection.getLength());

    prefix = prefix.toLowerCase();
    LinkedList<ICompletionProposal> completionProposals = new LinkedList<ICompletionProposal>();
View Full Code Here

TOP

Related Classes of at.ssw.coco.ide.model.detectors.WordFinderAdaptor

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.