Examples of skipFirst()


Examples of org.eclipse.xtext.naming.QualifiedName.skipFirst()

            ? 0
            : 1));

        // turn global references '::x' into non global
        if(fqn.getSegmentCount() > 1 && fqn.getSegment(0).length() == 0)
          fqn = fqn.skipFirst(1);

        // normal converter does not add trailing empty segment, do so here to enable search in xxx::* namespace
        if(prefix.endsWith("::") && fqn.getSegmentCount() > 0)
          fqn = fqn.append("");

View Full Code Here

Examples of org.eclipse.xtext.naming.QualifiedName.skipFirst()

        proposal.setCursorPosition(proposalReplacementString.length());
        document.replace(proposal.getReplacementOffset(), proposal.getReplacementLength(), proposalReplacementString);
        return;
      }
     
      IEObjectDescription description = scope.getSingleElement(qualifiedName.skipFirst(qualifiedName.getSegmentCount() - 1));
      if (description != null) {
        // there exists a conflict - insert fully qualified name
        proposal.setCursorPosition(proposalReplacementString.length());
        document.replace(proposal.getReplacementOffset(), proposal.getReplacementLength(), proposalReplacementString);
        return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.