Package org.eclipse.wst.xml.core.internal.document

Examples of org.eclipse.wst.xml.core.internal.document.ElementImpl$Attributes


  /**
   * Support for CustomControlCreator
   * @param interact
   */
  public ControlInteractAttributes(final InteractType interact) {
    this.attributes = new Attributes(interact.getAttributes());
  }
View Full Code Here


      final Nifty nifty,
      final Element element,
      final EffectEventId effectEventId,
      final Attributes effectsTypeAttibutes,
      final LinkedList < Object > controllers) {
    Attributes effectAttributes = new Attributes(getAttributes());
    effectAttributes.merge(effectsTypeAttibutes);

    Attributes attributes = effectAttributes;

    RegisterEffectType registerEffectType = getRegisteredEffectType(nifty, attributes);
    if (registerEffectType == null) {
      return;
    }

    Class < ? > effectClass = registerEffectType.getEffectClass();
    if (effectClass == null) {
      return;
    }

    EffectProperties effectProperties = new EffectProperties(attributes.createProperties());
    applyEffectValues(effectProperties);

    Effect effect = createEffect(nifty, effectEventId, attributes);
    effect.init(
        element,
View Full Code Here

    parent = parentParam;
    controlAttributes = controlAttributesParam;
  }

  public Attributes resolve(final Attributes attributes) {
    Attributes result = new Attributes(attributes);

    for (Entry entry : getParameterSet(attributes)) {
      String key = (String) entry.getKey();
      String value = (String) entry.getValue();
      if (controlAttributes.isSet(key)) {
        result.set(value, controlAttributes.get(key));
      }
    }

    Attributes res = parent.resolve(result);
    for (Entry entry : getParameterSet(attributes)) {
      String value = (String) entry.getValue();
      result.set(value, "");
    }
    return res;
View Full Code Here

  public RegisterEffectType() {
  }

  public RegisterEffectType(final String nameParam, final String classParam) {
    Attributes attributes = new Attributes();
    attributes.set("name", nameParam);
    attributes.set("class", classParam);
    try {
      initFromAttributes(attributes);
    } catch (Exception e) {
      logger.warning(
          "unable to register effect [" + nameParam + "] for class [" + classParam + "] (" + e.getMessage() + "]");
View Full Code Here

  protected void setTagName(String tagName) {
    super.setTagName(tagName);
  }
  public Node cloneNode(boolean deep) {
    ElementImpl cloned = new ElementImplForJSP(this);
    if (deep)
      cloneChildNodes(cloned, deep);
    return cloned;
  }
View Full Code Here

  protected void setTagName(String tagName) {
    super.setTagName(tagName);
  }

  public Node cloneNode(boolean deep) {
    ElementImpl cloned = new ElementStyleImpl(this);
    if (deep)
      cloneChildNodes(cloned, deep);
    return cloned;
  }
View Full Code Here

  protected boolean isNestedClosed(String regionType) {
    return regionType == PHPRegionContext.PHP_CLOSE;
  }

  public Node cloneNode(boolean deep) {
    ElementImpl cloned = new ElementImplForPhp(this);
    if (deep)
      cloneChildNodes(cloned, deep);
    return cloned;
  }
View Full Code Here

   * Highlights the given element in the sourceview of the document
   *
   * @param element The element that should be highlighted
   */
  public void jumpToElement(Element element) {
    ElementImpl elementImpl = (ElementImpl)element;

    dozerEditor.getSourceEditor().setHighlightRange(elementImpl.getStartOffset()+1, elementImpl.getLength(), true);
    dozerEditor.changeToSourcePage();
  }
View Full Code Here

        return regionType == TwigRegionContext.TWIG_STMT_CLOSE;
    }

    public Node cloneNode(boolean deep)
    {
        ElementImpl cloned = new ElementImplForTwig(this);
        if (deep)
            cloneChildNodes(cloned, deep);
        return cloned;
    }
View Full Code Here

      LinkedModeModel linkModel = new LinkedModeModel();
      boolean hasPositions = false;
      for (Element element : constructorArgs) {
        formatter.formatNode(element);
        if (element instanceof ElementImpl) {
          ElementImpl elementImpl = (ElementImpl) element;
          int nodeOffset = elementImpl.getStartEndOffset() - 1;

          LinkedPositionGroup group = new LinkedPositionGroup();

          try {
            group.addPosition(new LinkedPosition(document, nodeOffset, 0));
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.document.ElementImpl$Attributes

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.