Package org.eclipse.xtext.naming

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


      for(IEObjectDescription d : descs) {
        if(searchPath.searchIndexOf(d) == -1)
          continue; // not visible
        EClass ec = d.getEClass();
        QualifiedName name = d.getName();
        if(name.startsWith(prefix)) {
          if(name.getSegmentCount() == prefix.getSegmentCount()) {
            // exact match, check if this is the correct type
            if(DEF_AND_TYPE[0].isSuperTypeOf(ec) || DEF_AND_TYPE[1].isSuperTypeOf(ec)) {
              String parentName = d.getUserData(PPDSLConstants.PARENT_NAME_DATA);
              if(parentName != null && parentName.length() > 0)
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.