Package org.eclipse.wst.html.core.internal.contentmodel.TapestryElementCollection

Examples of org.eclipse.wst.html.core.internal.contentmodel.TapestryElementCollection.ElemDecl


              }
            }
           
           
            //Add Tapestry components into autocomplete menu
            ElemDecl temp = null;
            jcmdoc = getDefaultTapestryCMDocument();
            CMNamedNodeMap tapestryelements = jcmdoc.getElements();
            for (int j = 0; j < tapestryelements.getLength(); j++) {
              if(j == 0) temp =  (ElemDecl) tapestryelements.item(j);
              CMElementDeclaration ed = (CMElementDeclaration) tapestryelements.item(j);
              if (!rejectElements.contains(ed.getNodeName())) {
                nodeList.add(ed);
              }
            } 
           
            //load tapestry 5 custom components
            if(temp != null){
              collectCustomComponents();
              if(tapestryCustomComponents != null){
                for(int i=0; i<tapestryCustomComponents.size(); i++){
                  TapestryComponentModel tcm = tapestryCustomComponents.get(i);
                  ElemDecl cloneElement = (ElemDecl) temp.clone(tcm.nodeName, tcm.attributes);
                  nodeList.add(cloneElement);
                }
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.html.core.internal.contentmodel.TapestryElementCollection.ElemDecl

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.