Examples of AssistInfo


Examples of tk.eclipse.plugin.htmleditor.assist.AssistInfo

   */
  protected AssistInfo[] getAttributeValues(String tagName,String value,AttributeInfo info){
      String[] values = info.getValues();
      AssistInfo[] infos = new AssistInfo[values.length];
      for(int i=0;i<infos.length;i++){
        infos[i] = new AssistInfo(values[i]);
      }
      return infos;
  }
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.assist.AssistInfo

        }
      }
    }
    if(info.getAttributeType()==SCOPE){
      return new AssistInfo[]{
          new AssistInfo("application"),
          new AssistInfo("page"),
          new AssistInfo("request"),
          new AssistInfo("session")
      };
    }
    return super.getAttributeValues(tagName,value,info);
  }
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.assist.AssistInfo

    if (values.length == 0) {
      return getClassAttributeValues(value, attrInfo.getAttributeName());
    }
    AssistInfo[] infos = new AssistInfo[values.length];
    for (int i = 0; i < infos.length; i++) {
      infos[i] = new AssistInfo(values[i]);
    }
    return infos;
  }
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.assist.AssistInfo

            }
            else {
              proposalString = prefix + proposalString + suffix;
            }
          }
          AssistInfo assist = new AssistInfo(proposalString);
          assist.setOffset(dotIndex);
          if (proposal instanceof WodDeprecatedCompletionProposal) {
            assist.setDeprecated(true);
          }
          attributeValuesList.add(assist);
        }
      }
      catch (JavaModelException e) {
        e.printStackTrace();
      }
      attributeValues = attributeValuesList.toArray(new AssistInfo[attributeValuesList.size()]);
    }
    else if ("name".equals(attrInfo.getAttributeName()) && WodHtmlUtils.isWOTag(tagName)) {
      List<AssistInfo> attributeValuesList = new LinkedList<AssistInfo>();
      try {
        IWodModel wodModel = _cache.getWodEntry().getModel();
        if (wodModel != null) {
          for (IWodElement wodElement : wodModel.getElements()) {
            String wodElementName = wodElement.getElementName();
            if (wodElementName.toLowerCase().startsWith(value.toLowerCase())) {
              AssistInfo assist = new AssistInfo(wodElementName);
              attributeValuesList.add(assist);
            }
          }
        }
      }
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.assist.AssistInfo

          return values;
        }
      }
    }
    if (attrInfo.getAttributeType() == SCOPE) {
      return new AssistInfo[] { new AssistInfo("application"), new AssistInfo("page"), new AssistInfo("request"), new AssistInfo("session") };
    }
    if (attrInfo.getAttributeType() == CLASS && this._file != null) {
      return _classNameProcessor.getClassAttributeValues(this._file, value);
    }
    return super.getAttributeValues(tagName, value, tagInfo, attrInfo);
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.