Package org.cfeclipse.cfml.dictionary

Examples of org.cfeclipse.cfml.dictionary.Value


        if(folderRes != null) {
          try {
            IResource children[] = folderRes.members();
            for(int i = 0; i < children.length; i++) {
              if(children[i] instanceof IFolder) {
                suggestions.add(new Value(children[i].getName() + "/"));
              } else if(children[i] instanceof IFile) {
                suggestions.add(new Value(children[i].getName()));
              }
            }
          }catch(CoreException ex) {
            ex.printStackTrace();
          }
View Full Code Here


      ArrayList valueContributors = ((ICFEFileDocument)assistState.getIDocument()).getContentAssistManager().getValueAssistors();
      Iterator CACorIter = valueContributors.iterator();
      Set proposals = new TreeSet();
      while(CACorIter.hasNext())
      {
          Value valueProps[] = ((IAssistAttrValueContributor)CACorIter.next()).getAttributeValueProposals(attrState);
          if(valueProps == null)
              continue;
         
          for(int i = 0; i < valueProps.length; i++)
          {
View Full Code Here

      Set attrProps = this.sourceDict.getFilteredAttributeValues(state.getTagName(), state.getAttribute(), state.getValueSoFar());
      if(attrProps == null)
          return null;
     
      Iterator attrIter = attrProps.iterator();
      Value retArray[] = new Value[attrProps.size()];
      int i = 0;
      while(attrIter.hasNext())
      {
          Object tempAttr = attrIter.next();
          //Assert.isTrue(tempAttr instanceof Value,"DefaultTagAssistContributor::getAttributeValueProposals()");
View Full Code Here

    Iterator fileIter = surroundingFiles.iterator();
    while(fileIter.hasNext()) {
      IResource res = (IResource)fileIter.next();
      String name = res.getName();
      name+= (res instanceof IFolder) ? "/" : "";
      attrProps.add(new Value(name));
    }
        return valueArrayFromSet(attrProps);
    }
View Full Code Here

    {
        //Assert.isNotNull(sourceSet, "Parameter sourceSet is null");
        if(sourceSet == null)
      throw new IllegalArgumentException("Parameter sourceSet is null");
       
        Value retArray [] = new Value[sourceSet.size()];
        Iterator sourceIter = sourceSet.iterator();
        for(int i = 0; sourceIter.hasNext(); i++)
        {
            Object tempObj = sourceIter.next();
           
View Full Code Here

      int x = 0;
      while (i.hasNext()) {
       
        Object o = i.next();
        if (o instanceof Value) {
          Value val = (Value)o;
          boolean wee = val.toString().matches("^\"");
          if (cleanParamText.length() == 0
                  || val.toString().toLowerCase().startsWith(cleanParamText.toLowerCase())) {
              String insertion = val.toString().substring(cleanParamText.length(),val.toString().length());
              if(activeParam.getType().equalsIgnoreCase("string") && !insertion.matches("^[\"|'].*")) {
                insertion = strDelim + insertion + strDelim;
              }
              int cursorOffset = insertion.length()+suffix.length();
             
View Full Code Here

      int x = 0;
      while (i.hasNext()) {
       
        Object o = i.next();
        if (o instanceof Value) {
          Value val = (Value)o;
          if (cleanParamText.length() == 0
                  || val.toString().toLowerCase().startsWith(cleanParamText.toLowerCase())) {
              String insertion = val.toString().substring(cleanParamText.length(),val.toString().length());
              int cursorOffset = insertion.length()+suffix.length();
             
              if (!paramText.endsWith("\"")
                      && paramText.startsWith("\"")) {
                  insertion += "\"";
                  cursorOffset ++;
              }
              else if(paramText.startsWith("\"")){
                  cursorOffset ++;
              }
              if (!paramText.endsWith("'")
                      && paramText.startsWith("'")) {
                  insertion += "'";;
                  cursorOffset ++;
              }
              else if(paramText.startsWith("'")){
                  cursorOffset ++;
              }
             
          CompletionProposal proposal = new CompletionProposal(
                  insertion+suffix,
                  offset,
                  0,
                  cursorOffset,
                  CFPluginImages.get(CFPluginImages.ICON_PARAM),
                  activeParam.toString() + " - " + val.toString(),
                  null,
                  extraInfo);
         
          //System.out.println("Added " + val.toString());
          tmpResult[x] = proposal;
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.dictionary.Value

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.