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

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


    return "not documented!";
  }

  protected String getDocHeadForProperty(String propertyName) {
    Assert.isNotNull(propertyName);
    PropertyDefinition property = findPropertyByName(propertyName);
    if (property != null) {
      return getDocHeadForProperty(property);
    }
    return "<b>"+propertyName+"</b>";
  }
View Full Code Here


    }
    else if (obj instanceof PackageDefinition) {
      PackageDefinition pkg = (PackageDefinition) obj;
      for (ElementDefinition el : pkg.getElements()) {
        for (Definition d : el.getProperties()) {
          PropertyDefinition prop = (PropertyDefinition) d;
          if (filter.filter(prop)) {
            result.add(prop);
            if (filter.returnOnFirstHit()) {
              return;
            }
View Full Code Here

      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

    }
   

    List<Proposal> result = new ArrayList<Proposal>();

    PropertyDefinition def = manager.findPropertyByName(propertyName);
    if (def != null) {
      final ParserInput input = new ParserInput(prefixToks);
     
      final ParserInputCursor cursor = input.createCursor();
     
      logger.debugf("starting with input: %s", cursor);
      final long parseBegin = System.nanoTime();
      final ResultNode res = parse(cursor, def.getRule(), ConsumeWS.MAY_CONSUME);
      final long parseDuration = System.nanoTime() - parseBegin;
      logger.debugf("parse needed %2.3fms returnd with %s", parseDuration*10e-6, res);
     
      for (ParseResultListener l : resultListener) {
        l.parseFinished(res);
View Full Code Here

      while (iterator.hasNext()) {
        logger.debugf(" * %s", TokUtil.toString(iterator.next()));
      }
    }
   
    PropertyDefinition def = manager.findPropertyByName(propertyName);
    if (def != null) {
     
//      ParserInput input = new ParserInput(tokens);
     
     
View Full Code Here

TOP

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

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.