Examples of Define


Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.Define

  }
 
  @Override
  protected void _createNode(IOutlineNode parentNode, EObject modelElement) {
    if( modelElement instanceof Define ) {
      Define d = (Define) modelElement;
      if( d.getElement() != null ) {
        _createNode(parentNode, d.getElement());
        return;
      }
    }
   
    super._createNode(parentNode, modelElement);
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.Define

                    System.err.println("TODO");
                  }
                  parent.getProperties().add(p);
                } else if ("fx:define"
                    .equals(getStructuralParent())) {
                  Define d = FXGraphFactory.eINSTANCE
                      .createDefine();
                  d.setElement(e);
                  model.getComponentDef().getDefines().add(d);
                } else {
                  if (!isSpecial(getStructuralParent())) {
                    Property p = createProperty(
                        getStructuralParent(), e);
View Full Code Here

Examples of com.sun.tools.txw2.model.Define

        // no need to generate anything for this.
        return new Empty(wc.getLocator());
    }

    public Leaf modelGroupDecl(XSModelGroupDecl mg) {
        Define def = modelGroups.get(mg);
        if(def==null) {
            def = grammar.get(mg.getName()); // TODO: name collision detection and avoidance
            modelGroups.put(mg,def);

            def.addChild(mg.getModelGroup().apply(this));
        }
        return new Ref(mg.getLocator(),def);
    }
View Full Code Here

Examples of com.sun.tools.txw2.model.Define

        nodeSet.add(el);
        return el;
    }

    public Leaf complexType(XSComplexType ct) {
        Define def = complexTypes.get(ct);
        if(def==null) {
            // TODO: consider name collision and such
            String name = ct.getName();
            if(ct.isLocal()) {
                name = ct.getScope().getName();
            }
            def = grammar.get(name);
            complexTypes.put(ct,def);

            XSType baseType = ct.getBaseType();
            if(baseType.isComplexType() && !isAnyType(baseType)) {
                // copy inheritance
                def.addChild(baseType.apply(this));

                if(ct.getDerivationMethod()==XSType.EXTENSION) {
                    XSContentType explicitContent = ct.getExplicitContent();
                    if(explicitContent!=null)
                        def.addChild(explicitContent.apply(this));
                    attHolder(ct, def);
                }
            } else {
                // just start from fresh
                def.addChild(ct.getContentType().apply(this));
                attHolder(ct, def);
            }
        }

        return new Ref(ct.getLocator(),def);
View Full Code Here

Examples of com.sun.tools.txw2.model.Define

            def.addChild(attGroupDecl(ag));
        }
    }

    public Leaf attGroupDecl(XSAttGroupDecl ag) {
        Define def = attGroups.get(ag);
        if(def==null) {
            def = grammar.get(ag.getName());
            attGroups.put(ag,def);
            attHolder(ag,def);
        }
View Full Code Here

Examples of com.sun.tools.txw2.model.Define

        // TODO
        throw new UnsupportedOperationException();
    }

    public void define(String name, Combine combine, Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
        Define def = grammar.get(name);
        def.location = locator;

        if(combine==null || def.leaf==null) {
            def.leaf = leaf;
        } else {
View Full Code Here

Examples of org.apache.cocoon.template.instruction.Define

            loc.setDocumentLocator(ev.getLocation());

            // ContentHandler methods
            if (ev instanceof StartElement) {
                StartElement startElement = (StartElement) ev;
                Define def = (Define) executionContext
                        .getDefinitions().get(startElement.getQname());
                if (def == null) {
                    ev = ev.execute(consumer, objectModel,
                            executionContext, macroContext, namespaces, startEvent, endEvent);
                    continue;
View Full Code Here

Examples of org.apache.cocoon.template.instruction.Define

            loc.setDocumentLocator(ev.getLocation());

            // ContentHandler methods
            if (ev instanceof StartElement) {
                StartElement startElement = (StartElement) ev;
                Define def = (Define) executionContext
                        .getDefinitions().get(startElement.getQname());
                if (def == null) {
                    ev = ev.execute(consumer, expressionContext,
                            executionContext, macroContext, startEvent, endEvent);
                    continue;
View Full Code Here

Examples of org.apache.cocoon.template.instruction.Define

            loc.setDocumentLocator(ev.getLocation());

            // ContentHandler methods
            if (ev instanceof StartElement) {
                StartElement startElement = (StartElement) ev;
                Define def = (Define) executionContext
                        .getDefinitions().get(startElement.getQname());
                if (def == null) {
                    ev = ev.execute(consumer, objectModel,
                            executionContext, macroContext, namespaces, startEvent, endEvent);
                    continue;
View Full Code Here

Examples of org.apache.cocoon.template.instruction.Define

            loc.setDocumentLocator(ev.getLocation());

            // ContentHandler methods
            if (ev instanceof StartElement) {
                StartElement startElement = (StartElement) ev;
                Define def = (Define) executionContext
                        .getDefinitions().get(startElement.getQname());
                if (def == null) {
                    ev = ev.execute(consumer, expressionContext,
                            executionContext, macroContext, startEvent, endEvent);
                    continue;
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.