Exemplo n.º 1
0
  /** @noRefGuide */
  public int initialize() {

    super.initialize();
    dataSource1 = (DataSource) mp_d1.getValue();
    dataSource2 = (DataSource) mp_d2.getValue();

    if (dataSource1 instanceof Initializable) {
      ((Initializable) dataSource1).initialize();
    }
    if (dataSource2 instanceof Initializable) {
      ((Initializable) dataSource2).initialize();
    }
    return ResultCodes.RESULT_OK;
  }
Exemplo n.º 2
0
  /** @noRefGuide */
  public int initialize() {

    super.initialize();
    m_dataSource = (DataSource) mp_data.getValue();

    if (m_dataSource instanceof Initializable) {
      ((Initializable) m_dataSource).initialize();
    }
    m_threshold = mp_threshold.getValue();
    m_thickness2 = (mp_thickness.getValue()) / 2;

    return ResultCodes.RESULT_OK;
  }