Package org.cfeclipse.cfml.dictionary

Examples of org.cfeclipse.cfml.dictionary.Tag


   */
  public boolean addAttribute(AttributeItem newAttr)
  {
    boolean addOkay = true;
   
    Tag tag = syntax.getTag(itemName);
   
    if (tag == null || !tag.allowsAnyAttribute()) {
      Set attributes = syntax.getFilteredAttributes(this.itemName.toLowerCase(), newAttr.getName());
     
      if(attributes.size() == 0) {
        /*
         * if we don't know the tag why tell the user about invalid attributes? :denny
View Full Code Here


  public boolean hasClosingTag() throws NullPointerException
{
    if (itemName.equals("ScriptItem") || itemName.equals("FunctionInfo")) {
      return false;
    }
    Tag tag = syntax.getTag(itemName);
    if(tag == null)
    {
        if (itemName.indexOf("_") != 2) {
        //System.err.println("TagItem::hasClosingTag() - The tag I've retrieved is null! Tag name is \'" + itemName + "\' Line number: " + this.lineNumber);
        //
        // Should really raise an exception?
          this.isUnknownTag = true;
        parseMessages.addMessage(new ParseWarning(lineNumber, startPosition, endPosition, itemData,
                      "Unknown cf tag \'<" + itemName + ">\'."));
        }
      return true// Let's say it's a single tag.
    }
   
    return !tag.isSingle();
  }
View Full Code Here

   */
  public boolean isHybrid() {
    if (itemName.equals("ScriptItem")) {
      return false;
    }
      Tag tag = syntax.getTag(itemName);
    if(tag == null)
    {
        return true;
    }
    else {
        return tag.isHybrid();
    }
       
  }
View Full Code Here

   
   
    public EditCustomTagDialog(Shell parentShell){
      super(parentShell);
      this.title = "New Custom Tag";
      this.tag = new Tag("cf_newtag", true);
     
    }
View Full Code Here

    ITextEditor thisEdit = (ITextEditor)activeEditor;
    IDocument doc =  thisEdit.getDocumentProvider().getDocument(thisEdit.getEditorInput());
    ISelection sel = thisEdit.getSelectionProvider().getSelection();
    final ITextSelection textSelection = (ITextSelection) thisEdit.getSelectionProvider().getSelection();
   
    Tag tagToOpen = null;
    if(this.tag !=null){
      tagToOpen = this.tag;
    }
    else if(this.tagname !=null ) {
      //Get the tag
View Full Code Here

TOP

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

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.