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

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


    if (!known) {
      warning("Unknown property: \""+property.getName()+"\"", CssDslPackage.Literals.CSS_DECLARATION__PROPERTY);
    }
    else {
     
      ruleset rs = (ruleset) dec.eContainer();
      List<selector> selectors = rs.getSelectors();
//      Set<CssProperty> selectorProps = new HashSet<>();
//      for (selector selector : selectors) {
//        selectorProps.addAll(extension.getPropertiesForSelector(uri, selector));
//      }
     
View Full Code Here


    StringConcatenation _builder = new StringConcatenation();
    _builder.append("ElementSelector {}");
    _builder.newLine();
    final stylesheet model = this.parse(_builder.toString());
    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);
View Full Code Here

    StringConcatenation _builder = new StringConcatenation();
    _builder.append(".ClassSelector {}");
    _builder.newLine();
    final stylesheet model = this.parse(_builder.toString());
    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();
View Full Code Here

    _builder.append(".current {}");
    _builder.newLine();
    final stylesheet model = this.parse(_builder.toString());
    Assert.assertNotNull(model);
    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);
View Full Code Here

    _builder.append("}");
    _builder.newLine();
    final stylesheet model = this.parse(_builder.toString());
    Assert.assertNotNull(model);
    EList<ruleset> _ruleset = model.getRuleset();
    ruleset _get = _ruleset.get(0);
    EList<css_declaration> _declarations = _get.getDeclarations();
    final css_declaration declA = _declarations.get(0);
    EList<ruleset> _ruleset_1 = model.getRuleset();
    ruleset _get_1 = _ruleset_1.get(1);
    EList<css_declaration> _declarations_1 = _get_1.getDeclarations();
    final css_declaration declB = _declarations_1.get(0);
    InputOutput.<css_declaration>println(declA);
    InputOutput.<css_declaration>println(declB);
    return;
  }
View Full Code Here

  // for now i try to get the current model, but in case we fail i return the full list
  public void completeRuleset_Declarations(stylesheet model, Assignment assignment, ContentAssistContext context,
      ICompletionProposalAcceptor acceptor) {
   
    if (context.getPreviousModel() instanceof ruleset) {
      ruleset ruleset = (ruleset) context.getPreviousModel();
      final List<Proposal> proposals = cssExt.getPropertyProposalsForSelector(ruleset.getSelectors());
      filterDuplicates(ruleset, proposals);
      acceptProposals(proposals, context, acceptor);
    }
    else {
      final List<Proposal> proposals = cssExt.getPropertyProposalsForSelector(null);
View Full Code Here

TOP

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

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.