Package org.eclipse.wb.internal.css.semantics

Examples of org.eclipse.wb.internal.css.semantics.Semantics


  ////////////////////////////////////////////////////////////////////////////
  /**
   * @return the {@link SimpleValue} to edit.
   */
  protected final SimpleValue getValueObject() throws Exception {
    Semantics semantics = getSemantics();
    return (SimpleValue) ScriptUtils.evaluate(m_valueObjectPath, semantics);
  }
View Full Code Here


  ////////////////////////////////////////////////////////////////////////////
  /**
   * @return the underlying semantic {@link AbstractSidedProperty}.
   */
  protected final AbstractSidedProperty getSemanticProperty() throws Exception {
    Semantics semantics = m_accessor.getSemantics(m_styleName);
    return (AbstractSidedProperty) ScriptUtils.evaluate(m_valueObjectPath, semantics);
  }
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  /**
   * @return the {@link LengthValue} to edit.
   */
  protected final LengthValue getValueObject() throws Exception {
    Semantics semantics = getSemantics();
    return (LengthValue) ScriptUtils.evaluate(m_valueObjectPath, semantics);
  }
View Full Code Here

   */
  public Semantics getSemantics(String styleName) throws Exception {
    RuleDesc ruleDesc = getRule(styleName);
    // if no rule, use empty Semantics, to avoid null checks in many places
    if (ruleDesc == null) {
      return new Semantics();
    }
    // create Semantics for rule
    CssRuleNode rule = ruleDesc.rule;
    Semantics semantics = m_semantics.get(rule);
    if (semantics == null) {
      semantics = new Semantics();
      semantics.parse(rule);
      m_semantics.put(rule, semantics);
    }
    return semantics;
  }
View Full Code Here

  /**
   * Applies the {@link Semantics} into the source file.
   */
  public void applySemantics(String styleName) throws Exception {
    RuleDesc ruleDesc = getRule(styleName);
    Semantics semantics = getSemantics(styleName);
    semantics.update(ruleDesc.rule);
    m_updatedContexts.add(ruleDesc.contextDescription);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.css.semantics.Semantics

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.