Пример #1
0
  /** Update symbol. */
  private void updateSymbol() {
    if (!Controller.getInstance().isPopulating()) {
      FieldConfigBase fieldConfig =
          fieldConfigVisitor.getFieldConfig(new FieldId(FieldIdEnum.FUNCTION));

      Expression functionString = fieldConfig.getExpression();

      if (functionString != null) {
        System.out.println(functionString.toString());
      }
    }
  }
Пример #2
0
  /* (non-Javadoc)
   * @see com.sldeditor.ui.iface.UpdateSymbolInterface#dataChanged(com.sldeditor.ui.detail.config.xml.FieldIdEnum)
   */
  @Override
  public void dataChanged(FieldId changedField) {
    FieldConfigBase fieldConfig = fieldConfigVisitor.getFieldConfig(changedField);

    Expression expression = fieldConfig.getExpression();

    if (expression instanceof FunctionExpression) {
      FunctionExpression functionExpression = (FunctionExpression) expression;

      this.insertGroupConfig(getClass(), this, functionExpression, fieldConfig, true);
    }

    updateSymbol();
  }