Package at.bestsolution.efxclipse.tooling.css.cssext.cssExtDsl

Examples of at.bestsolution.efxclipse.tooling.css.cssext.cssExtDsl.ElementDefinition


   * <!-- end-user-doc -->
   * @generated
   */
  public void setElement(ElementDefinition newElement)
  {
    ElementDefinition oldElement = element;
    element = newElement;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CssExtDslPackage.SUBSTRUCTURE_STYLECLASS__ELEMENT, oldElement, element));
  }
View Full Code Here


    return formatRule(rule) + javadoc;
  }
 
  protected String getDocForStyleClass(String styleClass) {
    Assert.isNotNull(styleClass);
    ElementDefinition element = findElementByStyleClass(styleClass);
    if (element != null) {
      return getDocForElement(element);
    }
    return null;
  }
View Full Code Here

    return null;
  }

  protected String getDocForElement(String elName) {
    Assert.isNotNull(elName);
    ElementDefinition element = findElementByName(elName);
    if (element != null) {
      return getDocForElement(element);
    }
    return null;
  }
View Full Code Here

    return "<b>"+propertyName+"</b>";
  }
 
  protected String getDocHeadForProperty(PropertyDefinition property) {
    Assert.isNotNull(property);
    ElementDefinition element = (ElementDefinition) property.eContainer();
   
    StringBuffer out = new StringBuffer();
    out.append("<nobr>");
    printImage(out, "property_16x16.png");
    printName(out, property.getName());
View Full Code Here

    out.append("</nobr>");
    return out.toString();
  }

  protected String getDocHeadForElement(String elName) {
    ElementDefinition element = findElementByName(elName);
    if (element != null) {
      // we only show docs for Elements which have no styleclass
      if (element.getStyleclass() == null) {
        return getDocHeadForElement(element);
      }
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }
 
  protected String getDocHeadForStyleClass(String styleClass) {
    ElementDefinition element = findElementByStyleClass(styleClass);
    if (element != null) {
      return getDocHeadForElement(element);
    }
    return null;
  }
View Full Code Here

  private void printSuperElements(StringBuffer out, List<ElementDefinition> superEls) {
    if (!superEls.isEmpty()) {
      out.append("<br/><span class=\"extends\"><span class=\"keyword\">extends</span> ");
      Iterator<ElementDefinition> supaIt = superEls.iterator();
      while (supaIt.hasNext()) {
        ElementDefinition supa = supaIt.next();
        out.append(elementLinks.createLink(XtextElementLinks.XTEXTDOC_SCHEME, supa, supa.getName()));
        if (supaIt.hasNext()) {
          out.append(", ");
        }
      }
      out.append("</span>");
View Full Code Here

      return getDocHeadForPackage((PackageDefinition)o);
    }
   
    // css lang elements
    if (o instanceof ClassSelector) {
      ElementDefinition element = findElementByStyleClass(((ClassSelector) o).getName());
      if (element != null) {
        return getDocHeadForElement(element);
      }
    }
    if (o instanceof ElementSelector) {
View Full Code Here

            return false;
          }
        }));
        final Set<ElementDefinition> allElements = new HashSet<>();
        while (!superElements.isEmpty()) {
          ElementDefinition cur = superElements.poll();
          if (cur.getSuper() != null && !cur.getSuper().isEmpty()) {
            superElements.addAll(cur.getSuper());
          }
         
          allElements.add(cur);
        }
       
View Full Code Here

      else if (node.getSemanticElement() instanceof Doku) {
        acceptor.addPosition(node.getOffset(), node.getLength(), CssExtHighlightingConfiguration.CSSDOC_ID);
      }
     
      else if (node.getSemanticElement() instanceof ElementDefinition) {
        ElementDefinition el = (ElementDefinition) node.getSemanticElement();
        BidiTreeIterator<INode> innerIt = node.getAsTreeIterable().iterator();
        while(innerIt.hasNext()) {
          INode n = innerIt.next();
          if (n.getText().equals(el.getName())) {
            acceptor.addPosition(n.getOffset(), n.getLength(), CssExtHighlightingConfiguration.ELEMENT_ID);
            break;
          }
        }
      }
     
      else if (node.getSemanticElement() instanceof PseudoClassDefinition) {
        acceptor.addPosition(node.getOffset(), node.getLength(), CssExtHighlightingConfiguration.ELEMENT_ID);
      }
     
      else if (node.getSemanticElement() instanceof PropertyDefinition) {
        PropertyDefinition el = (PropertyDefinition) node.getSemanticElement();
        BidiTreeIterator<INode> innerIt = node.getAsTreeIterable().iterator();
        while(innerIt.hasNext()) {
          INode n = innerIt.next();
          if (n.getText().equals(el.getName())) {
            acceptor.addPosition(n.getOffset(), n.getLength(), CssExtHighlightingConfiguration.PROPERTY_ID);
            break;
          }
        }
      }
     
      else if (node.getSemanticElement() instanceof CSSRuleDefinition) {
        CSSRuleDefinition el = (CSSRuleDefinition) node.getSemanticElement();
        BidiTreeIterator<INode> innerIt = node.getAsTreeIterable().iterator();
        while(innerIt.hasNext()) {
          INode n = innerIt.next();
          if (n.getText().equals(el.getName())) {
            acceptor.addPosition(n.getOffset(), n.getLength(), CssExtHighlightingConfiguration.RULE_ID);
            break;
          }
        }
//        acceptor.addPosition(node.getOffset(), node.getLength(), CssExtHighlightingConfiguration.RULE_ID);
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.css.cssext.cssExtDsl.ElementDefinition

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.