Package at.bestsolution.efxclipse.tooling.css.cssDsl

Examples of at.bestsolution.efxclipse.tooling.css.cssDsl.simple_selector


    }
    if (o instanceof css_property) {
      return getDocHeadForProperty(((css_property) o).getName());
    }
    if (o instanceof simple_selector) {
      simple_selector s = ((simple_selector)o);
      String elementName = null;
      if (s.getElement() instanceof ElementSelector) {
        elementName = ((ElementSelector)s.getElement()).getName();
      }
      return getDocHeadForElement(elementName);
    }
    // TODO add some color support here
    // we may need some kind of type info before
View Full Code Here


    EList<ruleset> _ruleset = model.getRuleset();
    final ruleset rs = _ruleset.get(0);
    EList<selector> _selectors = rs.getSelectors();
    final selector sel = _selectors.get(0);
    EList<simple_selector> _simpleselectors = sel.getSimpleselectors();
    final simple_selector simpleSel = _simpleselectors.get(0);
    ElementSelector _element = simpleSel.getElement();
    Assert.assertNotNull(_element);
    ElementSelector _element_1 = simpleSel.getElement();
    String _name = _element_1.getName();
    Assert.assertEquals("ElementSelector", _name);
  }
View Full Code Here

    EList<ruleset> _ruleset = model.getRuleset();
    final ruleset rs = _ruleset.get(0);
    EList<selector> _selectors = rs.getSelectors();
    final selector sel = _selectors.get(0);
    EList<simple_selector> _simpleselectors = sel.getSimpleselectors();
    final simple_selector simpleSel = _simpleselectors.get(0);
    EList<CssSelector> _subSelectors = simpleSel.getSubSelectors();
    int _size = _subSelectors.size();
    Assert.assertNotSame(Integer.valueOf(0), Integer.valueOf(_size));
    EList<CssSelector> _subSelectors_1 = simpleSel.getSubSelectors();
    CssSelector _get = _subSelectors_1.get(0);
    final ClassSelector subsel = ((ClassSelector) _get);
    String _name = subsel.getName();
    Assert.assertEquals("ClassSelector", _name);
  }
View Full Code Here

    EList<ruleset> _ruleset = model.getRuleset();
    ruleset _get = _ruleset.get(0);
    EList<selector> _selectors = _get.getSelectors();
    selector _get_1 = _selectors.get(0);
    EList<simple_selector> _simpleselectors = _get_1.getSimpleselectors();
    final simple_selector simpleSel1 = _simpleselectors.get(0);
    EList<CssSelector> _subSelectors = simpleSel1.getSubSelectors();
    int _size = _subSelectors.size();
    Assert.assertNotSame(Integer.valueOf(0), Integer.valueOf(_size));
    EList<CssSelector> _subSelectors_1 = simpleSel1.getSubSelectors();
    CssSelector _get_2 = _subSelectors_1.get(0);
    final ClassSelector subsel = ((ClassSelector) _get_2);
    String _name = subsel.getName();
    Assert.assertEquals("future", _name);
    EList<ruleset> _ruleset_1 = model.getRuleset();
    ruleset _get_3 = _ruleset_1.get(1);
    EList<selector> _selectors_1 = _get_3.getSelectors();
    selector _get_4 = _selectors_1.get(0);
    EList<simple_selector> _simpleselectors_1 = _get_4.getSimpleselectors();
    simple_selector _get_5 = _simpleselectors_1.get(0);
    EList<CssSelector> _subSelectors_2 = _get_5.getSubSelectors();
    CssSelector _get_6 = _subSelectors_2.get(0);
    String _name_1 = ((ClassSelector) _get_6).getName();
    Assert.assertEquals("current", _name_1);
  }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.css.cssDsl.simple_selector

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.